攻击鼠标的文字
攻击鼠标的文字
作者:
出处: 天极软件
责任编辑: 烈云
[ 2005-11-24 10:27 ]
推荐阅读 最新更新 继续阅读 相关主题 编辑新作 阅读排行 讨论本文讨论本文 相关产品

热点话题 bt下载技巧 下载方式横评 迅雷5 影音传送带 广告屏蔽 rss订阅 ie使用技巧 google秘闻 网络电视
免费申请gmail的方法 qq宠物外挂-qq宠物专家下载 qq宠物外挂,qq宠保姆2.0 b1121下载
转贴快手使用帮助,图片版 宠物连连看2.5版 gmail申请专用帖子9月20日版
三维世界地图(简直就是极品) gmail申请专用帖子9月21日版 firetv 4.96 绿色完美破解版


步骤一: 请将下面的原代码插入到<body>下面
<script language="JavaScript">
<!-- 
/****** Things you can change *****/
msg="欢迎光临细溪驿站";
msgSize=4;//1-7
FoNt='Arial';
CoLoR='777777';
speed=2;

/****** Things you shouldn't change *****/
ns=(document.layers)?1:0;
msg=msg.split(''),amount=msg.length,Y=0,X=0,ypos=0,xpos=0,ybase=new Array(),xbase=new Array();
angle = new Array(),divTop= new Array(),divLeft=new Array();
DocHeight=(document.layers)?window.innerHeight:window.document.body.offsetHeight;
DocWidth=(document.layers)?window.innerWidth:window.document.body.offsetWidth;

//initial layer placement!
for (i=0; i < amount; i++){
divTop[i]=Math.round(Math.random()*DocHeight);
divLeft[i]=Math.round(Math.random()*DocWidth);
}
if (ns){
for (i = 0; i < amount; i++)
{document.write('<layer name=nsd'+i+' top=0 left=0 width='+msgSize+' height='+msgSize+'><font face='+FoNt+' size='+msgSize+' color='+CoLoR+'>'+msg[i]+'</font></layer>');}
window.captureEvents(Event.MOUSEMOVE);
function nsMouse(evnt){
ypos = evnt.pageY-20;
xpos = evnt.pageX-10;
}
window.onMouseMove = nsMouse;
}
else{
document.write('<div id="hldr" style="position:absolute;top:0px;left:0px">')
document.write('<div style="position:relative">')
for (i=0; i < amount; i++)
{document.write('<div id=ied style="position:absolute;top:0px;left:0px;width:'+msgSize+';height:'+msgSize+'"><font face='+FoNt+' size='+msgSize+' color='+CoLoR+'>'+msg[i]+'</font></div>')}
document.write('</div></div>')
function ieMouse(){
ypos = event.y-20;
xpos = event.x-10;
}
document.onmousemove = ieMouse;
}




function GoToMouse(){
var DocHeight=(document.layers)?window.innerHeight:window.document.body.offsetHeight;
var DocWidth=(document.layers)?window.innerWidth:window.document.body.offsetWidth;
var iscrll=(document.all)?document.body.scrollTop:0;
var nscrll=(document.layers)?window.pageYOffset:0;
if (!ns)hldr.style.top=iscrll;
for (i=0; i < amount; i++){
Y = ypos - divTop[i];
X = xpos - divLeft[i];
angle[i] = Math.round(Math.atan2(Y,X) * 180/Math.PI);
if (angle[i] < 0) angle[i] += 360;
ybase[i]=Math.round(Math.random()*DocHeight);
xbase[i]=Math.round(Math.random()*DocWidth);
rep=Math.round(Math.random() * 3);
extra=Math.round(Math.random() * 200)
if (rep == 3)xbase[i] =-extra;
if (rep == 2)xbase[i] =DocWidth+extra;
if (rep == 1)ybase[i] =-extra;
if (rep == 0)ybase[i] =DocHeight;
y = Math.round(speed*Math.sin(angle[i]*Math.PI/180));
x = Math.round(speed*Math.cos(angle[i]*Math.PI/180));
divTop[i]+=y;
divLeft[i]+=x;                                                                    
if ((divLeft[i] > xpos-speed) && (divLeft[i] < xpos+speed/1.5) && (divTop[i] >= ypos-speed/1.5) && (divTop[i] <= ypos+speed/1.5))
{divTop[i]=ybase[i]+nscrll;divLeft[i]=xbase[i]}
var layer=(document.layers)?document.layers['nsd'+i]:ied[i].style;
layer.top=divTop[i];layer.left=divLeft[i];
}
S=setTimeout('GoToMouse()',10);
}
window.onload=GoToMouse;
//-->
</script>



推荐阅读 最新更新 继续阅读 相关主题 编辑新作 阅读排行 讨论本文讨论本文 相关产品
发表主题:(Html:禁止,UBB:允许)
笔名:
标题:
粗体 图片 Flash图片 Media Player视频文件 realplay视频文件 超级连接 Email连接 Shockwave文件


请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。
天极网拥有管理笔名和留言的一切权利。
各地网友会:
最新热评
pic
Copyright (C) 2005 Chinabyte.com, All Rights Reserved 版权所有 天极网络
渝ICP证B2-20030003号 如有意见请与我们联系 Powered by 天极内容管理平台CMS4i