Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4182816
  • 博文数量: 291
  • 博客积分: 8003
  • 博客等级: 大校
  • 技术积分: 4275
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-30 18:28
文章分类

全部博文(291)

文章存档

2017年(1)

2013年(47)

2012年(115)

2011年(121)

2010年(7)

分类: 系统运维

2012-05-10 12:51:54

下面的代码click事件无效,而mouseover和mouseout有效

点击(此处)折叠或打开

  1. <html>
  2.     <script src="">
  3.         </script>
  4.         <script>
  5.             $(function(){
  6.                     $("#weiboButton").mouseover(function(){
  7.                                                 $("#msg").html($("#msg").html()+"
    mouseover"
    );
  8.                     });
  9.                     $("#weiboButton").mouseout(function(){
  10.                         $("#msg").html($("#msg").html()+"
    mouseout"
    );
  11.                     });
  12.                     $("#weiboButton").click(function(){
  13.                         $("#msg").html($("#msg").html()+"
    click"
    );
  14.                     });
  15.                 });
  16.             </script>
  17.     <body>
  18.         
  19.         <iframe name="weiboButton" id="weiboButton" width="63" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="" ></iframe>
  20.         <div id="msg"></div>
  21.     </body>

阅读(4792) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~