网络编程 
首页 > 网络编程 > 浏览文章

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

(编辑:jimmy 日期: 2025/5/11 浏览:3 次 )
其实老早之前就已经做完了,这次稍微改进一下
浏览地址:http://www.healdream.com/upload/html/autoclick.html

复制代码 代码如下:
<!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="/UploadFiles/2021-04-02/yahoo.js"><script src="event.js">
</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>

上一篇:用YUI做了个标签浏览效果
下一篇:初探jquery——表单应用范例
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 网站地图 SiteMap