爱易网
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 浏览次数:20187 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
====1、将以下代码加入HTML的<body></body>之间: <script language="JavaScript"> if (!document.layers&&!document.all) event="test" function showtip2(current,e,text){ if (document.all&&document.readyState=="complete"){ document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>' document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10 document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10 document.all.tooltip2.style.visibility="visible"} else if (document.layers){ document.tooltip2.document.nstip.document.write('<b>'+text+'</b>') document.tooltip2.document.nstip.document.close() document.tooltip2.document.nstip.left=0 currentscroll=setInterval("scrolltip()",100) document.tooltip2.left=e.pageX+10 document.tooltip2.top=e.pageY+10 document.tooltip2.visibility="show"}} function hidetip2(){ if (document.all) document.all.tooltip2.style.visibility="hidden" else if (document.layers){ clearInterval(currentscroll) document.tooltip2.visibility="hidden"}} function scrolltip(){ if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width) document.tooltip2.document.nstip.left-=5 else document.tooltip2.document.nstip.left=150} </script> <script language="JavaScript"> function YY_Layerfx(yyleft,yytop,yyfnx,yyfny,yydiv,yybilder,yyloop,yyto,yycnt,yystep) { //v1.2 if ((document.layers)||(document.all)){ with (Math) {yynextx= eval(yyfnx)} with (Math) {yynexty= eval(yyfny)} yycnt=(yyloop && yycnt>=yystep*yybilder)?0:yycnt+yystep; if (document.layers){ eval(yydiv+".top="+(yynexty+yytop)) eval(yydiv+".left="+(yynextx+yyleft)) } if (document.all){ eval("yydiv=yydiv.replace(/.layers/gi, '.all')"); eval(yydiv+".style.pixelTop="+(yynexty+yytop)); eval(yydiv+".style.pixelLeft="+(yynextx+yyleft)); } argStr='YY_Layerfx('+yyleft+','+yytop+',"'+yyfnx+'","'+yyfny+'","'+yydiv+'",'+yybilder+','+yyloop+','+yyto+','+yycnt+','+yystep+')'; if (yycnt<=yystep*yybilder){eval(yydiv+".yyto=setTimeout(argStr,yyto)");} }} function YY_Mousetrace(evnt) { if (yyns4) {if (evnt.pageX) {yy_ml=evnt.pageX; yy_mt=evnt.pageY;} } else{ yy_ml=(event.clientX + document.body.scrollLeft); yy_mt=(event.clientY + document.body.scrollTop);} if (yy_tracescript)eval(yy_tracescript)} </script> <script language="JavaScript"> function PopWin() { var PopWin = window.open("new.htm","PopWin","toolbar=no,directries=no,scrollBars=yes,height=350,width=400"); } </script> <body> <div id="tooltip2" style="position:absolute;visibility:hidden;clip:rect(0 150 50 0);width:150px;background-color:lightyellow"> <layer name="nstip" width="1000px" bgColor="lightyellow"> </layer> </div> <div id="yyd0" style="position:absolute; left:10px; top:50px; width:3px; height:3px; z-index:1; background-color: #19636c; layer-background-color: #19636c; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div id="yyd1" style="position:absolute; left:20px; top:50px; width:3px; height:3px; z-index:1; background-color: #708574; layer-background-color: #708574; border: 1px none #000000; clip: rect(0 3 3 0)"></div><div id="yyd2" style="position:absolute; left:30px; top:50px; width:3px; height:3px; z-index:1; background-color: #379bbf; layer-background-color: #379bbf; border: 1px none #000000; clip: re
上一篇:狡猾的按钮特效
下一篇:任意用鼠标拖动图片
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
探析APP移动营销发扬实效的微妙
美剧讲硅谷创业者:远不及现实荒诞?
全球网络遭史上最大规模攻击:攻击数据每秒300G
华为任正非:家族成员不会成为接班人
易迅大众点评缩水执行“七天后悔权”被约谈
传陌陌或12月赴美IPO 估值约30亿美元
苏宁易购成世界最慢电商 专家称其涉嫌违约
惠普中国转型只是缩影 未来开展不可预期
优酷土豆携手新浪微博 谋攻移动视频失地
推荐阅读
更多>
屌丝程序猿发家机会来了 用大数据来做生意!
看,网络文学今日之繁盛;忆,纯真去哪了?
互联网情色众多 Facebook与9158态度大不同
联通丹东公司一高管造假套出手机变卖被判刑7年
Twitter收购印度手机营销公司ZipDial
国美苏宁线上首度正面PK 京东列席4月电商战
优酷土豆兼并一年:依然处于烧钱形状
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变
惠普中国转型只是缩影 未来开展不可预期
《中国三网融合业务运营管理》研讨报告征订函
亚马逊Fire Phone:请别拿我跟苹果三星比
从3G牌照发放看中国4G规划效果
Android应用审核乱象:诈骗软件冲上排行榜首
优酷土豆携手新浪微博 谋攻移动视频失地
广电总局回应美剧下架:不是所有信息可公开
诺基亚若没加入微软,只不过是另一个HTC而已
揭秘:阿里巴巴“无人认领”的三成股权都归谁
微软为避免代理权争夺 与大股东达成和解协议
微软大幅调整Bing在华策略:从高大上到接地气
中国雅虎邮箱今日关停 由盛及衰的背后