<table><tr>
<td onmouseover="this.style.filter='glow(color=#ff0000)';"
onmouseout="this.style.filter='glow(color=#ffffff)';">123</td>
</tr></table>我没有系统地学过JS,所以只能做到这些。
本来想做两个样式(一个有GLOW,一个没有),然后对两个事件分别调用这两个样式。
结果没有做出来,呵呵。只能变通了,也算耍赖吧!
关注……
<td onmouseover="this.style.filter='glow(color=#ff0000)';"
onmouseout="this.style.filter='glow(color=#ffffff)';">123</td>
</tr></table>我没有系统地学过JS,所以只能做到这些。
本来想做两个样式(一个有GLOW,一个没有),然后对两个事件分别调用这两个样式。
结果没有做出来,呵呵。只能变通了,也算耍赖吧!
关注……
.glow{filter:glow(color=#ff0000)}
.nonglow
</style>
<table><tr>
<td onmouseover="this.className='glow';"
onmouseout="this.className='nonglow';">Glow</td>
</tr></table>
function SetGlow(obj,sl) {
if (sl <= 0) {
obj.style.filter = "None;";
} else {
obj.style.filter = "glow(color=#ff0000,strength=2);";
}
}
</script>
<table><tr>
<td ID=xyz><a href="#" onmouseover="SetGlow(xyz,1);" onmouseout="SetGlow(xyz,0);">中国<img src="m1.png" border=0 width="143" height="30"><img src="oscar_w.gif" width="146" height="146" border=0>人民<a></td>
</tr></table>
另外,也不是只能用在TD上,还可以用在TABLE上,呵呵。应该还有其它标签可以用,不过我没有试。(查过资料,不过不准确。)