Top javascript tricks for browsers

Discussion in 'Bing' started by rony888, Aug 11, 2007.

Thread Status:
Not open for further replies.
  1. #1
    [​IMG]

    Found a cool Javascript trick for you to try. Paste the codes below in your internet browser address bar, press enter and bang!



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

    Effect: Any website that appears below the address bar where you put the code will have its images’ position altered.


    Or do you want more? How about shaking the internet browser window? (via izzatz).

    javascript:function Shw(n) {if (self.moveBy) {for (i = 35; 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); } } }} Shw(6)

    A good way to scare your non-tech savvy colleagues out eh?

    Anyway, the tricks that I’ve mentioned above have been tested with Firefox and Internet Explorer (not sure about other internet browsers though whether it will still working).
     
    rony888, Aug 11, 2007 IP
  2. CoffeePlay

    CoffeePlay Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    good one thanks!
     
    CoffeePlay, Aug 15, 2007 IP
  3. Synchronium

    Synchronium Active Member

    Messages:
    463
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I like how this post directly relates to Microsoft's search engine and is henceforth incredibly useful to me and everyone else.


    </sarcasm>
     
    Synchronium, Aug 15, 2007 IP
  4. reuben0207

    reuben0207 Peon

    Messages:
    243
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hey cool stuff lol.....
     
    reuben0207, Aug 15, 2007 IP
  5. DonMecca

    DonMecca Peon

    Messages:
    820
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5

    LOL, although your right these javascript apps are pretty neat.
     
    DonMecca, Aug 15, 2007 IP
  6. Overseas

    Overseas Well-Known Member

    Messages:
    1,098
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    140
    #6
    i can't find the bang key? which keyboard are you using?
     
    Overseas, Aug 15, 2007 IP
  7. rony888

    rony888 Peon

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i am using i key
     
    rony888, Aug 15, 2007 IP
  8. PoderOdunk

    PoderOdunk Active Member

    Messages:
    267
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #8
    lol, nice ... highly relavent....
     
    PoderOdunk, Aug 15, 2007 IP
  9. Jasonb

    Jasonb Well-Known Member

    Messages:
    4,486
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    195
    #9
    iv known these for years, im thinking of making a firefox extension were you just click and it randomly does it... dont know if there would be a point in that or what but.... :D

    anyways, :)
     
    Jasonb, Aug 15, 2007 IP
  10. RobertDoc

    RobertDoc Active Member

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #10
    Doesn't work on Opera.
     
    RobertDoc, Aug 15, 2007 IP
  11. geneuine

    geneuine Peon

    Messages:
    292
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #11
    The shaking code is awesome, lol.
     
    geneuine, Aug 15, 2007 IP
  12. Coder

    Coder Banned

    Messages:
    311
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #12
    This is really good one...

    Thanks,
     
    Coder, Aug 15, 2007 IP
  13. pfek

    pfek Member

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #13
    haha funny, I got a friend with that!
     
    pfek, Aug 15, 2007 IP
  14. Carey

    Carey Active Member

    Messages:
    370
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #14
    try this one:

    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(O);
     
    Carey, Aug 15, 2007 IP
  15. JimmyRP

    JimmyRP Active Member

    Messages:
    456
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #15
    The last one doesnt work for me, but the shake one is great!
     
    JimmyRP, Aug 15, 2007 IP
Thread Status:
Not open for further replies.