<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 一下吧!!

解决方案 »

  1.   

    <img src="1.gif" onmouseover="this.src='2.gif'" onmouseout="this.src='1.gif'" onmousedown="this.src='3.gif'" onmouseup="this.src='4.gif'">
      

  2.   

    用flash做
    不然就用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'">
      

  3.   

    <img src="pic1.gif" onmouseover="this.src='pic2.gif'" onmouseout="this.src='pic3.gif'" onmousedown="this.src='pic4.gif'" onmouseup="this.src='pic5.gif'">
      

  4.   

    不用flash,以上各位给的方法虽然能实现
    但是有问题:
    1。大量按钮脚本编写太复杂
    2。没有setcapture,鼠标如果按下,然后划出按钮,将不能触发mouseup谁又比较完善的?谢谢