DOWNLOAD: Best tool to repair Windows problems & optimize system performance | Best driver update software for your PC
 
Results 1 to 8 of 8

Thread: Must try: Cool browser java trick

  1. #1
    Morrison58's Avatar
    Morrison58 is offline Beginner
    Join Date
    Sep 2009
    Posts
    45

    Thumbs up Must try: Cool browser java trick

    Here’s something really neat to try …
    go to any website, say TWC.

    Then in the Address bar copy and paste the following (to stop the effect, just type another website address into the address bar and hit enter):

    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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R+ +}setInterval('A()',5); void(0)


  2. #2
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,572

    Default

    I tried in FF and IE, nothing happened

  3. #3
    whs's Avatar
    whs
    whs is offline Gold Member
    Join Date
    Oct 2008
    Posts
    1,420

    Default

    Quote Originally Posted by HappyAndyK View Post
    I tried in FF and IE, nothing happened
    Same here.

  4. #4
    nithinr6's Avatar
    nithinr6 is offline Senior Member
    Join Date
    Aug 2008
    Location
    Kerala, India
    Posts
    268

    Default

    Remove the space between R+ and + in the last line after you paste it in the address bar.

    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(%22img%22); 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)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R+ +}setInterval('A()',5);void(0)
    Looks like vbulletin doesnt allow java scripts to be pasted as it is in the posts.
    Last edited by nithinr6; 22nd July 2010 at 11:49.

  5. #5
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,572

    Default

    ^ TWCF has disabled that

    But cool it really freaked out the TWC homepage


  6. #6
    Dude111 is offline Windows Enthusiast
    Join Date
    Jun 2010
    Posts
    62

    Default

    Yes i have seen that before

    Pretty kewl!!!!!!

  7. #7
    DeborahJ's Avatar
    DeborahJ is offline Senior Member
    Join Date
    Jul 2008
    Location
    Brighton
    Posts
    152

    Default

    Nice trick -- Thanks for sharing!

  8. #8
    Dillman is offline New Member
    Join Date
    Apr 2009
    Posts
    7

    Default

    worked for me in IE, but not opera or FF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22