爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
录制的鼠标路径
录制的鼠标路径
日期:2014-05-18 浏览次数:20302 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<HTML> <HEAD> <TITLE> New Document -爱易网WEB开发www.aiyiweb.com</TITLE> <script language="JavaScript"> <!-- var mousex=new Array(); var mousey=new Array(); var i; var j=0; var k; var recordcount=0; var repeat; var repeat2; var repeat3; var speed=50; function startthis() { recordcount=1; i=0; mousex=new Array(); mousey=new Array(); recordthis(); } function recordthis() { if (maxnum.value=='' || isNaN(maxnum.value) == true || maxnum.value<0) { if (recordcount==1) { mousex[i]=mousefollow.offsetLeft; mousey[i]=mousefollow.offsetTop; i++; k=i; textfield.value='无时间限制'; } } else { if (recordcount==1) { if (i<maxnum.value) { mousex[i]=mousefollow.offsetLeft; mousey[i]=mousefollow.offsetTop; i++; k=i; textfield.value='剩余'+(maxnum.value-i)+'/50秒'; } else { recordcount=0; textfield.value='时间到';} } } repeat=setTimeout("recordthis()",20); } function stopthis() { clearTimeout("repeat"); recordcount=0; } function playthis() { clearTimeout("repeat"); clearTimeout("repeat3"); recordcount=0; if (j<i-1) { arrow.style.pixelLeft=mousex[j]; arrow.style.pixelTop=mousey[j]; arrow.style.visibility='visible'; j++; repeat2=setTimeout("playthis()",speed); } else {clearTimeout("repeat2"); arrow.style.visibility='hidden'; j=0; } } function rewindthis() { clearTimeout("repeat"); clearTimeout("repeat2"); recordcount=0; if (k>0) { arrow.style.pixelLeft=mousex[k-1]; arrow.style.pixelTop=mousey[k-1]; arrow.style.visibility='visible'; k--; repeat3=setTimeout("rewindthis()",speed); } else {clearTimeout("repeat3"); arrow.style.visibility='hidden'; k=i; } } function follow() { mousefollow.style.pixelLeft=document.body.scrollLeft+event.clientX; mousefollow.style.pixelTop=document.body.scrollTop+event.clientY; } // --> </script> <link rel="stylesheet" href="test.css" type="text/css"> </HEAD> <BODY onmousemove=follow()> <div id="arrow" style="position:absolute; width:12px; height:21px; z-index:1;visibility:hidden"><img src="http://www.aiyiweb.com/images/link.gif" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></div> <div id="mousefollow" style="position:absolute; width:12px; height:21px; z-index:1;visibility:hidden">.</div> <input type="text" name="maxnum" size="4" maxlength="4"><input type=button onclick=startthis() value=录制><input type=button onclick=stopthis() value=停止><input type=button onclick="speed=50;playthis()" value=播放><input type=button onclick="speed=2;playthis()" value=快放><input type=button onclick="speed=150;playthis()" value=慢放><input type=button onclick="speed=50;rewindthis()" value=倒放><input type="button" name="textfield" style="width:100px" value="无时间限制"> </BODY> </HTML> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:十字线效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
小米年度发布会遭围剿!多款新品难阻品牌危机
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
摩托罗拉移动裁员关闭德州Moto X手机工厂
微软不会被颠覆
郭美美事件推手被抓 “秦火火”拷问网络底线
小米移动芯片:英伟达退出,终会加强与联发科合作
支付宝曝平安破绽:转账信息被谷歌抓取
阿里马云:我觉得互联网还有十年可以做
史玉柱谈创业:5大建议 失败的教训最真实
推荐阅读
更多>
逆转猜想:如果阿里成为雅虎大股东会怎样?
微软张亚勤趋势判断:未来三十年属于物理化互联网
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
组建铁塔公司倒逼运营商改革 或加速4G网建设
巧用百度推行系统 突显竞价效果
联想架构调整后:Think品牌或推智能手机
中移动财报外的"五座大山":运营商沦为走秀陪衬
迅雷高管解读财报:收购快盘可快速融入小米
用友软件股价逆势下跌 再融资方案现曙光
Android版WhatsApp曝漏洞:聊天记录可被窃取
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
总部大楼已换微软Logo:回忆诺基亚的兴衰史
纸媒深探版权蓝海抗衡互联网的时机到来了
猎豹移动上市押海外市场 与小米有合作空间
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
【晚报】女子泰国游晒10照片 流量费2000
火一把就死: 百度魔图验证社交游戏衰亡宿命
论:三大运营商运用商店逆袭并非不能够
美国政府关门可能影响去哪儿等公司IPO
“世界杯+618”集体磨刀的本质是绑架全民