the picture was replaced when the mouse move over the picture.

<script type="text/JavaScript">
    //换图片
    function changeImg(){
      var img=document.getElementById("img2");
           img.src= "button/query_1.gif";
     }
     function changeImgBack(){
        var img=document.getElementById("img2");
           img.src= "button/query.gif";
     }
   </script>

  <input type="Image" id="img2" name="Submit" src="button/query.gif" onmouseover="changeImg()" onmouseout="changeImgBack()" align="middle"/>

阅读更多
文章标签: function image input
个人分类: JS
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭