VIRUS!!!

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.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Sep 4th, 2003, 21:25
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Sep 6th, 2003, 06:30
Anonymous User
Guest
Posts: n/a
You are like a child with new toys!....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Sep 6th, 2003, 06:32
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Personally, I was entertained for hours... I just watched the mouse, over, and over, and over, and over again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Sep 6th, 2003, 12:09
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
If I use my wheel mouse to scroll, then it gets left behind!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Sep 8th, 2003, 02:20
vor vor is offline
Junior Member
Join Date: Aug 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Sep 8th, 2003, 06:57
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
virus

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
best free internet security/anti virus? unitedcraig Webforumz Cafe 28 Dec 15th, 2007 00:31


All times are GMT. The time now is 22:10.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42