问答详情
源自:10-1 编程挑战

哪里出错了呢?

<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
    <title></title>
    <script type="text/javascript">
        function myMouseOver() {
         document.getElementById('mouse').src="logo.gif";
        }
        function myMouseOut(){
            document.getElementById('mouse').src="serchss.gif";
        }
    </script>
</head>
<body>
<a href="www.imooc.com"
 onmouseover="myMouseOver()"
  onmouseout="myMouseOut()">
<img  src="logo.gif" id="mouse">
</a>
</body>
</html>

提问者:小小小小小鲸鱼 2016-12-31 15:17

个回答

  • liuyang_1555
    2017-02-03 13:56:24

    <a href="www.imooc.com"
     onmouseover="myMouseOver()"
      onmouseout="myMouseOut()">
    <img  src="logo.gif" id="mouse">

    检查嵌入JavaScript函数之间分号有无和大小写