源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

懒就要懒到底——鼠标自动点击(含时间判断)

  • 时间:2022-01-21 07:07 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:懒就要懒到底——鼠标自动点击(含时间判断)
其实老早之前就已经做完了,这次稍微改进一下 浏览地址:[url=http://www.healdream.com/upload/html/autoclick.html]http://www.healdream.com/upload/html/autoclick.html[/url]
[u]复制代码[/u] 代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script src="yahoo.js" type="text/javascript"></script> <script src="event.js" type="text/javascript"></script> </head> <body> <p><a href="http://www.blueidea.com">鼠标放在这个链接上1.5秒以上,将进入蓝色理想网站,当然不到1.5秒就没有效果</a></p> <p><a href="http://www.healdream.com/blog">同理移到这里将进入我的blog</a></p> <script type="text/javascript"> var links=document.getElementsByTagName("a"); function return_obj(){ return source; } function auto_click(str){ window.location=str; } function mouseover_func(e){ source=event.srcElement; start=setTimeout("auto_click('"+source+"')",1500); } function mouseout_func(e){ clearInterval(start); } YAHOO.util.Event.addListener(links,"mouseover",mouseover_func); YAHOO.util.Event.addListener(links,"mouseout",mouseout_func); </script> </body> </html>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部