下面的代码click事件无效,而mouseover和mouseout有效
- <html>
- <script src="">
- </script>
- <script>
- $(function(){
- $("#weiboButton").mouseover(function(){
- $("#msg").html($("#msg").html()+"
mouseover");
- });
- $("#weiboButton").mouseout(function(){
- $("#msg").html($("#msg").html()+"
mouseout");
- });
- $("#weiboButton").click(function(){
- $("#msg").html($("#msg").html()+"
click");
- });
- });
- </script>
- <body>
-
- <iframe name="weiboButton" id="weiboButton" width="63" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="" ></iframe>
- <div id="msg"></div>
- </body>
阅读(4848) | 评论(0) | 转发(0) |