I-See 論壇 » 網上日記區 » XANGA專區 » [轉]]彩虹打圈追蹤(滑鼠)

2007-1-20 10:00 AM 梁粉
cccccccc

2007-1-20 10:11 AM ○限量○
<head><SCRIPT Language="JavaScript">
CoLoUrS=new Array('00ff00','ff00ff','fff000','3366ff');

var step=0.3,a_StEp=0.05,RunTime=0,currStep=0,Xpos=0,Ypos=0,cntr=70,count_a=0;
var count=0,move=1,Ay=0,Ax=0,dots=16;var x;brwsr=(document.layers)?1:0;
if (brwsr){
for (i=0; i < dots; i++){
document.write('<LAYER NAME="a'+i+'" LEFT=0 TOP=0 BGCOLOR=#3366ff CLIP="0,0,3,3"></LAYER>');
}
window.captureEvents(Event.MOUSEMOVE);
function nsMouse(evnt){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = nsMouse
}
else{
document.write('<div id="ys" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < dots; i++){
document.write('<div id="ieDivs" style="position:absolute;top:0px;left:0px;width:3px;height:3px;background:#3366ff;font-size:3px"></div>');
}
document.write('</div></div>');
function ieMouse(){
Ypos=event.y;
Xpos=event.x;
}
window.document.onmousemove = ieMouse
}

function MouseFollow(){
ay = Math.round(Ay+=(Ypos- Ay)* 4/40);
ax = Math.round(Ax+=(Xpos- Ax)* 4/40);
setTimeout('MouseFollow()',10);
}

function colourStep(){
count+=move;
if (count >= dots) {count=0;count_a+=move}
if (count_a == CoLoUrS.length) count_a=0;
if (brwsr) document.layers["a"+count].bgColor=CoLoUrS[count_a];
else ieDivs[count].style.background=CoLoUrS[count_a];
setTimeout('colourStep()',100)
}

function TwistnSpin(){
if (!brwsr) ys.style.top=document.body.scrollTop;
for (i=0; i < dots; i++)
{
var allLayers=(document.layers)?document.layers["a"+i]:ieDivs.style;
allLayers.top=ay+cntr*Math.cos((currStep+i*4)/10.2)*Math.sin(currStep/20);
allLayers.left=ax+cntr*Math.sin((currStep+i*4)/10.2)*Math.cos(1+currStep/20);
}
currStep-=step;
setTimeout("TwistnSpin()",10);
}
function CombineNstart(){
MouseFollow();TwistnSpin();colourStep();
}
window.onload=CombineNstart;
</SCRIPT></head>

2007-1-20 01:58 PM `鬼希大人xD
睇睇先...@@

2007-1-20 02:36 PM amy93093
睇下先...CC sin...@v@"

2007-1-20 03:32 PM chauhiukwan2004
俾我睇!!!!!

俾我睇!!!!!

2007-1-20 04:52 PM 提子水
5該..^^我想睇下

2007-1-20 05:13 PM EMALI
睇睇先xp t hxx"

2007-1-20 06:35 PM SIUJIME
比我睇啦..我想知呀!!!

2007-1-20 09:25 PM ^^妮``
比我睇下先...THX !!

2007-1-20 09:29 PM *小嵐.奀
ccccccc!!!!!!

2007-1-21 03:52 PM yuki88110
Let me cc!

2007-1-22 03:26 PM ★藍天使★
i want to see see !

2007-1-23 08:49 PM jessie0610
係咪真係得架,等我試下先~~~

2007-1-23 09:25 PM bee17289
CCCCCCCCCCCCCCCCCCCCCCCCCCC

2007-1-24 12:29 AM 3隻小熊
睇睇先唷=]..............................

2007-1-24 01:26 AM AngelAlan
會唔會好lag架?

2007-1-24 02:07 PM kuen311
cccccccccccccccccccccccccccccccccccccccccccccccccc[font=黑體]Sample Text[/font][box=#990000]Sample Text[/box]

2007-1-24 02:11 PM 楨.
c下先!!!!!!!!!

2007-1-24 10:10 PM WUYING2LOK
//////////////////////////5132

2007-1-25 06:49 PM 3312853ww
4545

545456464

頁: 11 12 13 14 15 16 17 18 19 20 [21] 22 23 24 25 26 27 28 29 30


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.