<img type="image" name="pic" src="pic.gif" mousemove="test1();" mouseout="test2();" mousedown="test3();" mouseup="test4();" ><script>
function test1(){
.......
}
function test2(){
.......
}function test3(){
.......
}function test4(){
.......
}</script>是要这样吗 UP 一下吧!!
function test1(){
.......
}
function test2(){
.......
}function test3(){
.......
}function test4(){
.......
}</script>是要这样吗 UP 一下吧!!
不然就用filter做
有關filter請移玉步至︰
http://msdn.microsoft.com/workshop/samples/author/dhtml/DXTidemo/DXTidemo.htm
不然就自己弄四張照片
<img src="a.gif" onmouseover="this.src='b.gif'" onmousedown="this.src='c.gif'" onmouseout="this.src='a.gif'">
但是有问题:
1。大量按钮脚本编写太复杂
2。没有setcapture,鼠标如果按下,然后划出按钮,将不能触发mouseup谁又比较完善的?谢谢