PDA

View Full Version : Javascript Trick



bread
07-31-2006, 19:42:52
look at what i found

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

paste that into the address bar :D

I.N.V.U
08-01-2006, 00:53:34
whoa! that is awesome! it's confusing and very dizzy too. since i'm typing this while this thing is spinning. ahh!!!!! crap! i just missed the button post quick reply. i must try again! 2 misses. 3 misses.

Adventure
08-01-2006, 01:00:32
I got a security message when I try the open the URL, that never happened before, so I didn't proceed. But It sounds like fun. :D

Hollandgirl
08-01-2006, 16:16:35
Hahaha it's really very funny :D Didn't know such thing existed ! Omg I already had a headache, it's getting worse ..

ReD33SoX
08-03-2006, 14:26:58
this is pretty cool but if its permanant , im pised

Jellybean
08-03-2006, 15:31:34
makes me feel drunk

GTgirl
08-04-2006, 15:42:03
Woah so dizzy....I already have a big big big(2 hours later)big big big headache yesterday night because I touched my friends perfume and then it effects my whole body to the perfume and that makes me so dizzy!

bige92
08-04-2006, 16:40:16
ahh, i just put it in... lol i like it

BeanMan3
08-04-2006, 19:48:45
that is crazy!where'd u get it from?

bread
08-04-2006, 19:50:15
i got it from another forum by stealing it
stealing=copy
or does it
<<
>>
forum=???

OneBun
08-04-2006, 20:17:27
http://smileys.smileycentral.com/cat/10/10_3_1v.gif (http://www.smileycentral.com/?partner=ZSzeb001_ZNxmk895IYUS) It can have a dizzy affect! lol Yeah, this java action scripting algorithm works on most forums...but will not work on a regular webpage.

Hollandgirl
08-08-2006, 12:52:23
http://smileys.smileycentral.com/cat/10/10_3_1v.gif (http://www.smileycentral.com/?partner=ZSzeb001_ZNxmk895IYUS) It can have a dizzy affect! lol Yeah, this java action scripting algorithm works on most forums...but will not work on a regular webpage.

Well, it did work for me on a regular webpage.. Unless it actually is a forum but looks like a regular webpage..

crazy mad0
09-10-2006, 19:25:43
itwont work for me do i just copy it instead of current address?

doglover
09-10-2006, 19:27:24
itwont work for me do i just copy it instead of current address?
It doesn't work with me too... :?

murph_3
09-10-2006, 19:29:41
me neither...

crazy mad0
09-10-2006, 20:08:15
some1 fix it pwease

the dunce
09-10-2006, 20:45:57
ya it also wont wont work for me

Mistery
09-10-2006, 20:52:58
No, it doesn't seem to work anymore. I don't know why because the post wasn't changed.
But I'm not familiar with javascript that much, so I can't explain it or even fix it.

the dunce
09-10-2006, 20:53:55
thats strange

Freakshow59
09-10-2006, 21:31:05
anyone have java?

OneBun
09-10-2006, 21:50:05
ahh I found the error. my computer compensates for the error. Here is what you need to use:

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

GamersHood site leaves an error that cannot be corrected. I have fixed it by changing the color. So it should work now! :D

1. right click, hold & highlight the info. & select copy (found when right clicking)

2. go to the main page. Click in the gamershood forum url & delete it

3. leave cusor in the url box then right click to paste the new info.

4. Click "enter" on your key board

that should do it. I have corrected the first post. :D

darknessinferno
09-10-2006, 21:58:52
it dosent work 4 me

Mistery
09-10-2006, 21:59:59
It only works for bunnies currently ;)
(or we just should enable some more java somewhere...or eat more carrots)

EDIT:

I have just eaten 10 carrots and it's working for me :D

murph_3
09-10-2006, 22:08:11
it works for me....wow...dizzy!!! even my husband is...sorta!!!

doglover
09-10-2006, 22:20:23
Wow...It's freakin COOL!!!

Adventure
09-10-2006, 22:25:35
Hmm, it doesn't work for me anymore, I only get a blanc screen.

Mistery
09-10-2006, 22:28:31
Did you eat 10 carrots as I recommended?

(Maybe OneBun will have an idea when she logs in again)

Lilliputt
09-10-2006, 22:28:32
OK, so that is kinda creepy...lol! Liked it though. Thanx Bread!

doglover
09-10-2006, 22:28:56
Hmm, it doesn't work for me anymore, I only get a blanc screen.
That's because you can't do it in a new window. You have to do it on a window with a page already opened...like this page for example.
Do exactly what OneBun tells you to...

Adventure
09-10-2006, 22:31:57
That's because you can't do it in a new window. You have to do it on a window with a page already opened...like this page for example.
Do exactly what OneBun tells you to...

Oh yes sorry, you were right. Thanks Doglover. ;)

the dunce
09-10-2006, 23:48:00
woah thats awsome

Vault
09-10-2006, 23:57:23
whoa... i'm typing this as its spinning and im getting rlly dizzy... i cant hit the reply button

Guys if you are drinking any alcohol you have to post this in your address bar:

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

Mistery
09-17-2006, 23:26:10
No Vault, this is working:

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

Oh, just trying to write this....

Vault
09-17-2006, 23:26:52
they are both the same mistery :what:

ThemePark
09-17-2006, 23:27:15
It moves the window 50 pixels down and right, every half second, right? :)

Vault
09-17-2006, 23:28:12
i think so... it makes it move circular and it kinda makes you dizzy :o

the dunce
09-17-2006, 23:28:14
*hands mistery some rum* here you go :)

Vault
09-17-2006, 23:29:54
NERD ALERT NERD ALERT

just kidding :P

Mistery
09-17-2006, 23:30:18
they are both the same mistery :what:

Yes, but they don't work, so I tried to copy-paste OneBun's version but a space is automatically added where it should not, not sure how OneBun could fix it :( Hers works.

ThemePark
09-17-2006, 23:30:39
NERD ALERT NERD ALERT

just kidding :P

Well, I study computer science, I'd damn well better be :D

Mistery
09-17-2006, 23:30:44
*hands mistery some rum* here you go :)


Thank you :)

Mistery
09-17-2006, 23:32:50
No Vault, this is working:

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

Oh, just trying to write this....


Okay, mine is working now aswell :D

You should be able to copy-paste it and look. And try to post :D

ThemePark
09-17-2006, 23:33:50
Well damn, I thought it was the browser window, not the webpage itself that would move, nor that it would move in a circle...I suck :S

the dunce
09-17-2006, 23:34:17
yay spinny screen!

Mistery
09-17-2006, 23:34:39
Well damn, I thought it was the browser window, not the webpage itself that would move, nor that it would move in a circle...I suck :S

Well, try to catch up before the final exam then :D

ThemePark
09-17-2006, 23:35:37
Well, try to catch up before the final exam then :D

Yeah, I'll have to study hard, I'll try my best :D

Maniac
10-20-2006, 10:02:40
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = "zzzzzzzzzzzzzzzzzzzzzzzzzB........ti ekil uoy oD"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

Put it in you address bar.
Dont click anywhere.

Mistery
10-20-2006, 10:05:07
OMG, I feel dizzy!!!

Maniac
10-20-2006, 10:20:21
try it again,i changed it.

Lilliputt
10-20-2006, 10:20:52
Hey, it's shakin'! :haha: Me likes :D

Maniac
10-20-2006, 10:22:34
its very easy to make.

Eternal Becky
10-20-2006, 16:43:40
LOL thats cool. I showed it to my sister and for a moment she thought something went wrong with the computer and it's a seroius problem :haha: :haha:

Maniac
10-20-2006, 16:53:47
heh,i made it using c++/

Eternal Becky
10-20-2006, 16:58:35
heh,i made it using c++/

You made it :o Fantastic job Maniac :applause::applause::applause:

Maniac
10-20-2006, 17:05:12
u remember bread had given one like this.
I took it and played wid it.

Eternal Becky
10-20-2006, 17:19:14
u remember bread had given one like this.
I took it and played wid it.

Ohh yes I remember. But I never tried it as everyone said the screen was spinning and stuff like that. So I guees it should be easy to just play with the code. But I like this one. It's fun ;)

murph_3
10-20-2006, 19:14:07
omg thats cool!!! i likey too!!!

LOLLLZZZ
12-17-2006, 21:49:08
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = "bmud si siht kcus ouy lol DREN A ERA UOY"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

bread
12-17-2006, 22:14:56
hehe

javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = "daerb yb lol,detnemed era uoy"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

OneBun
12-17-2006, 22:19:55
lol ....so are you ;) what a stale joke :P hehehe

Here's mine:

javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = "!!!elur em raeh !nub eht ma I"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

bread
12-17-2006, 22:30:22
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = "(:> elur annaw i tub"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

OneBun
12-17-2006, 22:36:09
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = " ?yekahs siht er'uoy nehw uoy nac woH"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();


:hmm:

bread
12-17-2006, 22:55:21
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = " ? sevom on neercs ym"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

GTgirl
12-18-2006, 21:11:51
javascript:function flood(n) {if (self.moveBy) {for (i = 10; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} flood(6);{ var inp = " edoc terces"; var outp = ""; for (i = 0; i <= inp.length; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();

acasete
12-25-2006, 12:13:28
SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO cool!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Where did you find it??

This will make you feel even dizzyer!
javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);
Paste it into the adress bar.

bubbie92
12-25-2006, 19:54:30
this is awsome i put it on before i began typing and it is wierd to watch this go in circles.

acasete
12-25-2006, 20:07:49
He he he! It makes me to type slower!

GTgirl
12-26-2006, 01:25:46
I missed I.N.V.U.....

Rofl Red Sox!

bread
12-27-2006, 17:52:01
he edited it off the one i found...

bubbie92
12-27-2006, 21:40:22
these things are cool!wish i knew how to edit the words.

Zox_of_D00m
01-04-2007, 18:13:46
how do ya make these?? i want to too!!!

Eternal Becky
01-26-2007, 10:57:09
Note to all-Please post all the Javascript tricks that you want to share with others in this threas instead of creating a new thread.


Paste the following code into the address bar in a website with images. For example try this code in google images.
To stop the animation, just click on your browser's refresh button.

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()',50); void(0);

Hitman
02-20-2007, 18:07:31
None of the Java Codes works for my PC :S

Maniac
03-10-2007, 15:53:10
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++}setInterv al('A()',5); void(0);

Rannei
03-10-2007, 17:44:37
wow! that was cool

Hitman
03-10-2007, 18:14:40
How can I try this out? In the Internet Explorer Address bar for ex. where you write: www.''address''.com or where should I put these codes?

Maniac
03-10-2007, 19:04:00
just put it in the address bar and press enter.

zillah0625
03-16-2007, 13:22:59
wow this is cool..it's still spinning how do you end this stuff I feel kinda dizzy!

Edited:nvm it stoped when I posted...so cool

Chris-ov-Donny
03-19-2007, 19:23:24
i cant get them 2 work. i copy them in2 my address bar and i get a navigation cancelled error ??? im lost lol

Hitman
03-30-2007, 22:28:09
just put it in the address bar and press enter.
It's not working, it just shows the page that it shows whenever you got a wrong address.

Acelightning
04-21-2007, 01:35:04
this is making me feel sick

Hitman
04-21-2007, 15:11:57
For the third time I'm asking you all, where should I write that code?

Could you add a screenshot please?

I'm writing it into the address bar but it doesen't work, it shows the message that it always shows when you put a wrong address.

Darknight
04-21-2007, 15:13:19
Hitman - Use the very First one. Thats the Only one that works for ME

Hitman
04-21-2007, 15:19:17
I just typed it Darknight, but nothing shows up, just the homepage (google) and that's where it stays, nothing at all!

Darknight
04-21-2007, 15:32:14
It works for ME.

javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

Copy that, then Paste it into your address bar. But First Remove whats there.

Hitman
04-21-2007, 15:42:59
I just used Mozilla, but it doesen't work

I wrote this on the address bar:

javascript:x=0;e=document.body;e.style.position="a bsolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI /180))+"px";x+=5};setInterval("rt()",50);void(0);

but it never showed anything :(

Darknight
04-21-2007, 15:46:30
It just makes your screen move around

Did you hit enter?

Hitman
04-21-2007, 15:47:57
But OF COURSE :haha:

I entered the code, pressed enter but nothing shows up :(

What is wrong?

Darknight
04-21-2007, 16:13:47
I don't know? do you use explorer?

sum1
04-21-2007, 16:15:09
weeeee it turns round and round i keep missin the "post quick repley" thingy

Acelightning
04-22-2007, 04:15:05
lol

Hitman
04-23-2007, 20:39:55
I don't know? do you use explorer?
I used both, Explorer and Firefox, but none of them works :(

Can someone please make a screenshot

Darknight
04-23-2007, 20:47:44
Hitman - It just makes your screen move around in circles.

Hitman
04-23-2007, 20:50:47
Darknight - It doesen't work :'(

Acelightning
04-27-2007, 08:19:19
well i dont know

Anaboop
04-29-2007, 04:04:22
hehe fun

fmalover120
07-15-2007, 03:28:15
lol cool ones

SuzyE730
07-15-2007, 12:36:49
How Do I Stop It?????????????????



NVM I got it!

jenni.p123
07-17-2007, 15:53:11
doesnt work on mine :(

point click man
07-19-2007, 18:27:49
that was awsome lol i think im gonna fall outta my chair omg ow i just bumped my head

PrEtTy_pRiNcE$$
07-25-2007, 15:52:55
i love it! made me all dizzy! cool lol