`
不要骗我
  • 浏览: 15614 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

鼠标移动--图片放大

阅读更多
2011-05-23 01:07

<html>
 <head>
 </head>
 
 <body>
  <div align="center">
   <img src="2.jpg" width="200px" height=250px" id="image" onmouseover="showPicture()" onmouseout="showPicture1()">
  </div>
  <script type="text/javascript">
    function showPicture(){
    document.getElementById("image").style.width="532px";
    document.getElementById("image").style.height="608px";
   }
   function showPicture1(){
    document.getElementById("image").style.width="200px";
    document.getElementById("image").style.height="250px";
   }
  </script>
  <script type="text/javascript">
//   document.getElementById("image").attachEvent("onmouseover",showPicture);
//   document.getElementById("image").attachEvent("onmouseout",showPicture1);
  </script>
 </body>
</html>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics