1   var t;
 2         function showportal() {
 3             if ($("#图片ID").is(":hidden"))
 4                 $("#图片ID").show();
 5             else
 6                 $("#portal").hide();
 7             t = setTimeout('showportal()', 300);
 8         }
 9 
10 闪动11  showportal() ;
12 停止闪动13 clearTimeout(t);
14 鼠标移动到图片图片停止闪动 移开继续闪动 15 $("#图片ID").bind("mouseover", function () { clearTimeout(t); }); 16 $("#图片ID").bind("mouseout", function () { showportal(); })
17 移出鼠标事件 18 $("#图片ID").unbind("mouseover"); 19 $("#图片ID").unbind("mouseout");

 

相关文章:

  • 2022-02-08
  • 2022-01-02
  • 2021-05-10
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2022-03-02
  • 2021-11-03
  • 2022-02-01
  • 2021-06-08
相关资源
相似解决方案