首页 > 其他 > 详细

当鼠标经过换一张相片

时间:2016-11-22 09:36:32      阅读:167      评论:0      收藏:0      [点我收藏+]
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>当鼠标经过换一张相片</title>
    <meta name="keywords" content="关键字列表" />
    <meta name="description" content="网页描述" />
    <link rel="stylesheet" type="text/css" href="" />
    <style type="text/css"></style>
    <script type="text/javascript"></script>
</head>
<body>

</body>
</html>
    <img src="jd1.png" id="img1">    
    <script type="text/javascript">
        var imgObj=document.getElementById("img1");//对象.属性=(""),对象.方法("")
        imgObj.onmouseover=function(){
        imgObj.src="jd2.png"                    
        }
        imgObj.onmouseout=function(){
        imgObj.src="jd1.png"                
        }
      
    </script>

技术分享技术分享

 

当鼠标经过换一张相片

原文:http://www.cnblogs.com/91xiaozhu/p/6087831.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!