Shoutbox

Cool Javascript :P (tested on IE and FireFox) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Cool Javascript :P (tested on IE and FireFox) (/showthread.php?tid=62936)

Cool Javascript :P (tested on IE and FireFox) by prashker on 07-09-2006 at 10:00 PM

go to a website.....then paste this in the address bar

code:
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);

rox :P

PS: there is a space between the 'function' and 'rt' in the javascript code thing :P


RE: Cool Javascript :P (tested on IE and FireFox) by Nathan on 07-09-2006 at 10:01 PM

lol, This is soo cool. Its driving me mental :P


RE: Cool Javascript :P (tested on IE and FireFox) by lordy on 07-09-2006 at 10:03 PM

rofl wtf? that's crazy man


RE: Cool Javascript :P (tested on IE and FireFox) by ddunk on 07-09-2006 at 10:07 PM

Other trig functions give different effects.
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);

Change the bolded parts to a combination of sin, cos, tan, asin, acos, or atan


RE: Cool Javascript :P (tested on IE and FireFox) by prashker on 07-09-2006 at 10:08 PM

nice ddunk :P


RE: Cool Javascript :P (tested on IE and FireFox) by M73A on 07-09-2006 at 10:25 PM

how annoying:P theres got to be some more useful things this can be used for!


RE: Cool Javascript :P (tested on IE and FireFox) by wooki on 07-09-2006 at 10:43 PM

yeah that's cool^^ thanks


RE: Cool Javascript :P (tested on IE and FireFox) by Jimcando on 07-09-2006 at 10:53 PM

wow, that is awesome!


RE: Cool Javascript :P (tested on IE and FireFox) by Chrono on 07-10-2006 at 03:32 AM

It does nothing here O.o unless im doing something wrong :P


RE: Cool Javascript :P (tested on IE and FireFox) by L. Coyote on 07-10-2006 at 03:35 AM

:rofl:

I feel like I'm in a boat.... +o(


RE: Cool Javascript :P (tested on IE and FireFox) by Eddie on 07-10-2006 at 04:13 AM

lmao thats so cool, nice job :D -getting dizzy woh- :lol:


RE: Cool Javascript :P (tested on IE and FireFox) by Shezi on 07-10-2006 at 10:53 AM

superb..............(Y)
nice script enjoying computer quake :P


RE: Cool Javascript :P (tested on IE and FireFox) by stoshrocket on 07-10-2006 at 11:03 AM

quote:
Originally posted by Chrono
It does nothing here O.o unless im doing something wrong :P

bah, try IE, doesnt work for me with firefox =P
RE: Cool Javascript :P (tested on IE and FireFox) by andrewdodd13 on 07-10-2006 at 11:50 AM

I think it leaks in Firefox, it's making my WinAmp stutter after a few minutes of being de-active-tabified.


RE: Cool Javascript :P (tested on IE and FireFox) by Mentality on 07-10-2006 at 12:07 PM

Try catching a link why it's doing that lol.


RE: Cool Javascript :P (tested on IE and FireFox) by Rik on 07-10-2006 at 02:08 PM

great find :) and works in Opera


RE: Cool Javascript :P (tested on IE and FireFox) by vaccination on 07-10-2006 at 03:11 PM

:rofl: thats amazing.

EDIT: Try that it gives a good effect.

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


RE: Cool Javascript :P (tested on IE and FireFox) by alegator on 07-11-2006 at 04:58 AM

What am I doing wrong? I see nothing..Opened IE, then went to a website , typed the js in the address bar and nothing...


RE: Cool Javascript :P (tested on IE and FireFox) by welshboy222 on 07-11-2006 at 05:23 AM

Only works if you have IE or opera just copy and paste the code into the address bar! Nice code!


RE: Cool Javascript :P (tested on IE and FireFox) by Chrono on 07-11-2006 at 05:23 AM

quote:
Originally posted by alegator
What am I doing wrong? I see nothing..Opened IE, then went to a website , typed the js in the address bar and nothing...
i couldnt get it to work either :P
RE: Cool Javascript :P (tested on IE and FireFox) by welshboy222 on 07-11-2006 at 05:24 AM

Thats strange :p


RE: Cool Javascript :P (tested on IE and FireFox) by x2zen on 07-11-2006 at 08:47 AM

quote:
Originally posted by Chrono
quote:
Originally posted by alegator
What am I doing wrong? I see nothing..Opened IE, then went to a website , typed the js in the address bar and nothing...
i couldnt get it to work either :P
Do you remember to hit enter?
RE: Cool Javascript :P (tested on IE and FireFox) by Salem on 07-11-2006 at 05:26 PM

quote:
Originally posted by SonicSam
go to a website.....then paste this in the address bar

code:
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);

rox :P

PS: there is a space between the 'function' and 'rt' in the javascript code thing :P


Heeeheeee, just tried it. This is cool.

Where did u find this?

~Salem(@)
RE: Cool Javascript :P (tested on IE and FireFox) by Thor on 07-11-2006 at 05:31 PM

For me all of these worked, but it's a bit difficult to click the page numbers while it's in action :D