Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-04-2011, 01:52 PM   #1 (permalink)
Tech Freak Digitian.
 
TSPatange_1309's Avatar
 
Join Date: Oct 2010
Location: Mumbai
Posts: 33
Cool Webpage on Drugs - Javascript


Hey Hello Guyzz...i just found one vry funny javascript...& i wanna share it with u...! the name of tht javascript is "webpage on drugs"...!

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("div"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}se tInterval('A()',5); void(0);

just Ctrl + V (Copy-Paste) the above code in your browsers address bar and see the magic...!
__________________
CEO of http://megatricks4u.blogspot.com
TSPatange_1309 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-04-2011, 02:05 PM   #2 (permalink)
What The.... !!!
 
funkysourav's Avatar
 
Join Date: Jan 2009
Posts: 825
Default Re: Webpage on Drugs - Javascript

why dont you post a screenshot of what happens?
i am not exactly comfy of the idea of running any unknown script in my browser
funkysourav is offline  
Old 05-04-2011, 03:02 PM   #3 (permalink)
Resistance is Futile.
 
coolpcguy's Avatar
 
Join Date: Oct 2007
Location: Borg Cube
Posts: 534
Default Re: Webpage on Drugs - Javascript

Meh, just applies sin() * cos() to x,y,z variables to each div element. been seeing these since eternity.
__________________
Super User ♦ Moderator | chip/tech2 forum Mod | About me

Gadgets: HP Envy 14 | Google Cr-48 | D-Link DGL 4500 | Denon AH-C360 | Fiio E5 | Galaxy SII GT-I9100 | Dell U2312HM
coolpcguy is offline  
Old 05-04-2011, 03:03 PM   #4 (permalink)
ico
.
 
ico's Avatar
 
Join Date: Jun 2007
Location: New Delhi
Posts: 8,944
Default Re: Webpage on Drugs - Javascript

Locking this thread.
ico is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2