Selling Little Fun Java Trick! (Simple)

Discussion in 'Guides for Sale - Buy & Sell' started by Games, 7/29/15.

Thread Status:
Not open for further replies.
  1. Games

    Games
    Expand Collapse
    Bot Status (Automated): Handles automated general support inquiries

    Offline
    Joined:
    9/20/13
    Posts:
    525,068
    Likes Received:
    61
    So here is a little JavaScript trick I found

    Video Showing it:

    How to:

    Type this into Address bar to edit page:

    Code:

    javascript: document.body.contentEditable = 'true'; document.designMode = 'on'; void 0

    And this to make it dance:

    Code:

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

    In case the code is not working it could be D3Scene screwing up formatting so you can try this:



    Thats actually really cool

    Originally Posted by eZ]aCx

    Thats actually really cool

    I know it quite nice! Really fun to prank your friends or whatever has well saying you #

    And they will believe it most likely

    Its kinda funny, but its not Java, it is Javascript. It is a very big difference

    Old. I knew this since like 2 or 3 years before. There is 1 even funnier, that makes u able to destroy whole page by a plane (like a game.)

    Originally Posted by Serverman

    Its kinda funny, but its not Java, it is Javascript. It is a very big difference

    Yeah I forget about that all the time.

    Changed

    Originally Posted by fogest

    Yeah I forget about that all the time.

    And also the credits?

    Btw, nice share but have seen this earlier.

    Originally Posted by razathru

    And also the credits?

    Btw, nice share but have seen this earlier.

    Credits. You can just search JavaScript tricks in YouTube. That's all.

    Pretty cool but I prefer to use Firebug for Firefox to do this; it's a lot easier.

    i have some questions,

    1. whats the code which makes me ablte to destroy the whole site with a plane

    2. what is firebug?

    3. can u save the changes that u have done with this code? that would be rly funny
     
    #1 Games, 7/29/15
    Last edited by a moderator: 10/28/24
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.