마우스가 올라오면 랜덤으로 색갈이 변하는 소스
<p align="center">표위에 마우스를!!</p>
<table align="center" border="1" width="200" height="200" cellpadding="0" cellspacing="0">
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
</table>
<script language="JavaScript">
<!--
function gogo(str){
var rnd1
var rnd2
var rnd3
rnd1 = Math.round(Math.random()*255)
rnd2 = Math.round(Math.random()*255)
rnd3 = Math.round(Math.random()*255)
str.style.background = 'rgb(' + rnd1 + ',' + rnd2 + ',' + rnd3 + ')'
}
//-->
</script>
<table align="center" border="1" width="200" height="200" cellpadding="0" cellspacing="0">
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
<tr>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
<td onmousemove="gogo(this)">
<p> </p>
</td>
</tr>
</table>
<script language="JavaScript">
<!--
function gogo(str){
var rnd1
var rnd2
var rnd3
rnd1 = Math.round(Math.random()*255)
rnd2 = Math.round(Math.random()*255)
rnd3 = Math.round(Math.random()*255)
str.style.background = 'rgb(' + rnd1 + ',' + rnd2 + ',' + rnd3 + ')'
}
//-->
</script>