This is a discussion on "VIRUS!!!" within the JavaScript Forum section. This forum, and the thread "VIRUS!!! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
VIRUS!!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
VIRUS!!!
I think I have a virus...
Even my posts behave funny. <script language="JavaScript">image=new Image(); image.src='cursor.gif'; var ns=(document.layers)?1:0; var step=1; var cstep = 0; var a=0; var b=100; var Xpos=0; var Ypos=0; var n=7; var colours=new Array('ffffff','00ff00','aaaaff','ff00ff','ffa500' ,'ff0000','fff000'); (document.layers)?window.captureEvents(Event.MOUSE MOVE):0; function Mouse(evnt){ Ypos = (document.layers)?evnt.pageY:event.y; Xpos = (document.layers)?evnt.pageX:event.x; } (document.layers)? window.onMouseMove=Mouse:document.onmousemove=Mous e; if (ns){ for (i=0; i < n; i++) document.write('<LAYER NAME="nsstars'+i+'" TOP=-200 LEFT=0>[img]'+image.src+'[/img]</LAYER>'); } else{ document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">'); for (i=0; i < n; i++) document.write('[img]'+image.src+'[/img]'); document.write('</div></div>'); } function MorphSpin(){ var wdth=(document.layers)?window.innerWidth-100:document.body.clientWidth; var dot=(document.layers)?document.layers["nsstars"+0]:iestars[0].style; var vsblty=(document.layers)?'show':'visible'; var nvsblty=(document.layers)?'hide':'hidden'; for (i = 0; i < n; i++){ dot.visibility=vsblty; dot.top=Ypos+a*Math.cos((cstep+i*4.5)/5); dot.left=Xpos+a*Math.sin((cstep+i*4.5)/5); } a+=1; cstep+=step; setTimeout('MorphSpin()',10); for (i = 0; i < n; i++){ var dots=(document.layers)?document.layers["nsstars"+i]:iestars[i].style; if (a >= 100){ a=100; step=2.5; dots.visibility=vsblty; dots.top=Ypos+a*Math.cos((cstep-100)*i/90); dots.left=Xpos+a*Math.sin((cstep-100)*i/90); } if (cstep > 182){ step=0.5; dots.top=Ypos+b*Math.cos(((cstep-182)+i*4.5)/5)*Math.cos((cstep-182)/5); dots.left=Xpos+b*Math.sin(((cstep-182)+i*4.5)/5); } } if (cstep > 210) b-=10; if (b < -wdth){ for (i = 0; i < n; i++){ (document.layers)?document.layers["nsstars"+i].top=-200:iestars[i].style.top=-200; } cstep=0; step=1; a=0; b=100; } } MorphSpin(); </script>
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|
|
#2
|
||||
|
||||
|
You are like a child with new toys!....
|
|
#3
|
|||
|
|||
|
Personally, I was entertained for hours... I just watched the mouse, over, and over, and over, and over again.
|
|
#4
|
|||
|
|||
|
If I use my wheel mouse to scroll, then it gets left behind!
|
|
#5
|
|||
|
|||
|
DamN Thats kewl.. BUT DanG... its also Mad Annoying after the first 10 seconds. hahah.
I have saved your script to take apart and learn its mathmatical secrets, at some night i have nothing better to do. ha ha. Sorry that I have neglected My Duties as MoD, Been Absolutely swamped with freelance work. I'm talking about 10 hour a days, arg. And I'll looking around for an apartment. Busy Busy busy. I'll try To PoP in more often with answers, source and witty remarks. |
|
#6
|
|||
|
|||
|
Hey Vor, don't worry too much!
We all get busy from time to time and it just happens. If anyone really needed some advanced javascript coding or something then we'd e-mail you and demand to know where the hell you were :razz: |
![]() |
| Tags |
| virus |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| best free internet security/anti virus? | unitedcraig | Webforumz Cafe | 28 | Dec 15th, 2007 00:31 |