|
Chit-Chat Get to know your fellow players |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Somewhat neat javascript from another forum
Enter these into the location bar with javascript enabled:
Image gravity well: [code:61ba7]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.images; 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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setI nterval('A()',5); void(0);[/code:61ba7] Flashing text: [code:61ba7]javascript:var colors=['#FF0000','#00FF00','#FFFF00','#0000F F','#00FFFF','#000000','#F0F0FF','#456789','# 987654','#F00FF'];function g() {r("h1");r("font");r(&quo t;h2");r("h3");r("u" );r("a");r("span");r(&quo t;td");r("p");}function r(w){var a = document.getElementsByTagName(w);for (var i=0;i<a.length;i++){var l=colors.length;var q=Math.round(Math.random()*(l-1));a[i].style.color = colors[q];}}function s(){var id=setInterval('g()',100);}s();[/code:61ba7] Rotating, moving image wheel: [code:61ba7]javascript:R=0; x1=.1; y1=.05; x2=0; y2=1; x3=0; y3=0; x4=300; y4=200; x5=300; y5=300; DI=document.images; 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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setI nterval('A()',5); void(0);[/code:61ba7] These javascripts do neat things with the onscreen objects. They are not caused by drug abuse; they are caused by javascript. Warning: Some may trigger epilepsy or similar, so first read the description, and then, if you think it is safe, play it. I am not responsible for any injuries or fatalities caused by any javascript posted here. Use at your own risk. |
#2
|
|||
|
|||
Yeah. Entertaining is the word. Those were fun!
|
#3
|
|||
|
|||
The first one makes all the words go flashy and the second one blows your computer up. Thats why I'm on this ultra super $1,000,000 dollars computer!
|
#4
|
|||
|
|||
No. What makes you think that?
|
#5
|
|||
|
|||
Heh... my siggy is in the two image attractors a lot of times.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
D&D forum | felorn | Off Topic | 0 | 04-02-2012 04:25 PM |
Games Forum | Jacksparow | Off Topic | 1 | 03-12-2012 11:40 AM |
Closing this Forum | Arilou | Forum Feedback | 0 | 01-11-2012 09:54 AM |
Forum Moderators | Xerxes | Forum Feedback | 2 | 06-08-2011 04:43 PM |
Forum | Eruo | General | 1 | 02-09-2007 02:00 PM |