Skip to content
View in the app

A better way to browse. Learn more.

Trials Central

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cool Trick

Featured Replies

A friend just showed me this.

Go onto any site, here now if you liek and type this into the address bar and hit go.

java script: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);

EDIT:

Okay, cos the forum is clever it's putting a space between the java and script at the beginning, so delete that space then try :icon_rendeer:

Edited by Felix

Do you leave the address in the bar and then type it in? I have tried it with and without but just get errors!

i got loads of yellow stuff, over all the "i"'s and everytime the word java appeared.

Dont get it

It worked fine for me...Its pretty cool...It makes you fall asleep after trying time after time to get it to do something.

I'm missing sumptin also.

  • Author
Man that is cool, only problem how do you catch that pesky "add reply" button?

Heh, true.

You just copy it all and paste it into your address bar instead of the website address, then you gotta take out the space between java and script and hit go, it should work.

Ok, its a piece of JS code that manipulates images on the page you are viewing. It works in IE , Firefox & Opera (edit after checking)

java script: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);

Type in http://www.youtube.com and copy and paste the code above and watch the images move around the screen ! (make sure you edit java script into one word removing the space as Felix said above)

Edited by AtomAnt

  • Author

I bet I look like a right coding noob, when really I'm not into it at all, a mate just showed me it.

Looks better on a page with more images on that google to be honest.

Works fine with Firefox for me, and apparently works with Opera too.

  • Author
so what is the point in doing it .

that is just stupid !!

Steady on!

Try refreshing the page :icon_rendeer:

Richard.

xxx

bloody hell Jamie chill out! lol Its only a little trick mate!

Worked on firefox for me! I went on youtube and just tried to click one of the pictures to see what the movie was! lol

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.