ChatScript

Online forum about Creative Writing. Great prompts, ideas, tips and guides to help you develop your Masterpiece.
Home­FAQ­Search­Memberlist­Usergroups­Register­Log in
Reply to topicShare | 
 

 JavaScript Tricks

View previous topic View next topic Go down 
AuthorMessage
Bumbeak
Admin
Admin


Posts: 29
Join date: 2009-04-05

PostSubject: JavaScript Tricks   Sat May 09, 2009 6:37 pm

I used to be a real fan of these. Recently, I found a cool one, and I wanted to post it and start a collection.

Note that most JavaScript tricks don't work on ChatScript, since it uses a parked domain. In order to use these, you have to go to the URL chatscript.open-board.com and that will fix the problem. Anyway,

Code:
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("img"); 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++}setInterval( 'A()',5); void(0);


Paste this into your browser and it'll make all the icons on the page go crazy. I've added some smilies so that there will be more icons.


Surprised Wink @ Razz Idea cyclops Question Laughing afro lol! lol! elephant study flower Sleep confused rabbit clown tongue Evil or Very Mad Neutral Evil or Very Mad Crying or Very sad Smile Suspect Rolling Eyes Shocked Twisted Evil alien Basketball afro flower queen king elephant lol! study farao Surprised Wink @ Razz Idea cyclops Question Laughing afro lol! lol! elephant study flower Sleep confused rabbit clown tongue Evil or Very Mad Neutral Evil or Very Mad Crying or Very sad Smile Suspect Rolling Eyes Shocked Twisted Evil alien Basketball afro flower queen king elephant lol! study farao

In order to stop the trick, just refresh the page!

_________________
Back to top Go down
View user profile http://chatscript.open-board.com
 

JavaScript Tricks

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
ChatScript :: Forum :: General Chat-
Reply to topic