为啥网页看不到点击图片的效果呢?求大神解答

 <script type="text/javascript">
function load(){
    alert('hi!');
    }
function click(){
    var username=prompt('what is your name?','enter your name here.');
    if(username && username!='enter your name here.')
    alert('It is good to see you,'+username+'.');
        } 
</script>
<body onload="load()">
<div style="margin-top:50px;text-align:center">
 <img onclick="click()" id="rockman" src="../Html/pic/QQ图片20150625150634.jpg" alt="rockman" / height="250px" width="500px">
</div>
查看全部
qq_26199609
AwakenLee
2015/07/01 08:13
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复