The things I do to amuse myself :)

Discussion in 'Chit Chat' started by KD, 20 November 2006 Social URL.

  1. KD

    KD Gone fishing

    Posts:
    17,711
    Likes Received:
    757
    Diet:
    Was Cambridge, now maintaining
    Try this out
    Open a web page with plenty of images on it. Perhaps put something into the google images page?

    When the page and all images is fully loaded, cut and paste this java script into the url bar and hit enter. Watch the result.

    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()',50); void(0);
     
  2. Avatar

    MiniMins.com Matched Content

  3. Isis

    Isis Ancient Egypt Nut!

    Posts:
    12,598
    Likes Received:
    351
    Current Weight:
    18st3lb
    Goal Weight:
    11st0lb
    Diet:
    Slimming World

    gonna try this one.....:D
     
  4. MadamDotty

    MadamDotty Back again!

    Posts:
    4,752
    Likes Received:
    156
    Diet:
    The Harcombe Diet
    I just got Error on page :confused:
     
  5. Tinley

    Tinley Full Member

    Posts:
    497
    Likes Received:
    10
    Start Weight:
    12st13lb
    Current Weight:
    12st1lb
    Goal Weight:
    9st6lb
    Lost(%):
    0st12lb(6.63%)
    Diet:
    CD
    Me too :(
     
  6. punkass

    punkass Silver Member

    Posts:
    1,088
    Likes Received:
    34
    nothing happened for me :(

    What's supposed to happen? Curiosity killing me now.. hate feeling like i'm missing out!
     
  7. magickmel

    magickmel Loves VLCD's !

    Posts:
    1,312
    Likes Received:
    52
    Diet:
    Lighter Life and now CD
    I get a "done but with errors on the page" message but nothing has changed ?
     
  8. Lola

    Lola Regular Member

    Posts:
    243
    Likes Received:
    11
    Start Weight:
    14st7lb
    Current Weight:
    13st6lb
    Goal Weight:
    10st10lb
    Lost(%):
    1st1lb(7.39%)
    Diet:
    Cambridge
    didnt work for me either?
     
  9. KD

    KD Gone fishing

    Posts:
    17,711
    Likes Received:
    757
    Diet:
    Was Cambridge, now maintaining
    Ack... Sorry. Looks like a spare 'space' inserted itself amongst the code.

    Try this (not that it's that exciting:D)

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

    Edited: That's interesting. It put the space in again when I posted this message. Okay. take the space out of setInterval near the end of the code.
     
  10. Coley

    Coley Re-starter

    Posts:
    2,214
    Likes Received:
    111
    Start Weight:
    13st9lb
    Current Weight:
    11st5lb
    Goal Weight:
    10st0lb
    Lost(%):
    2st4lb(16.75%)
    Diet:
    Cambridge
    wheeeeeee!!!! funky!! how do you know these things??!!
     
  11. KD

    KD Gone fishing

    Posts:
    17,711
    Likes Received:
    757
    Diet:
    Was Cambridge, now maintaining
    I spent hours on it. Maybe even days....probably weeks! Bloody, sweat and tears. Comfort ate during times of frustration with the code. Starved myself when it went well. Burned the candles at both ends, eating the wick at the end when I had missed dinner working on it.

    Okay....I knicked it from someone else, but don't tell a soul :D
     
  12. nadhak

    nadhak LIGHTER LIFE FOR LIFE

    Posts:
    593
    Likes Received:
    53
    Diet:
    lighter life maintaining and occasional re-starting
    lol
    really funny - the kids loved it - so clever!
     
  13. magickmel

    magickmel Loves VLCD's !

    Posts:
    1,312
    Likes Received:
    52
    Diet:
    Lighter Life and now CD
    Ah that's neat ! I googled for piccies of Santa and it worked really nicely with them !
     
  14. Ivy

    Ivy Silver Member

    Posts:
    595
    Likes Received:
    17
    haha

    I have millions of Morrisseys all floating about!

    Pretty Swish

    Ivy
     
  15. lavender

    lavender Silver Member

    Posts:
    505
    Likes Received:
    32
    cant do it!!!!
     
  16. wannabeminime

    wannabeminime Gold Member

    Posts:
    2,877
    Likes Received:
    125
  17. Coley

    Coley Re-starter

    Posts:
    2,214
    Likes Received:
    111
    Start Weight:
    13st9lb
    Current Weight:
    11st5lb
    Goal Weight:
    10st0lb
    Lost(%):
    2st4lb(16.75%)
    Diet:
    Cambridge
    ahhhhh Helen...ta muchly for making my Johnny Depps fly round and round. It made me a happy panda. :D
     
  18. Avatar

    MiniMins.com Advert

  19. MadamDotty

    MadamDotty Back again!

    Posts:
    4,752
    Likes Received:
    156
    Diet:
    The Harcombe Diet
    Boo hoo still not working for me:( Not sure what I'm doing wrong, but still getting error on page. Hate missing out on something!
     
  20. KD

    KD Gone fishing

    Posts:
    17,711
    Likes Received:
    757
    Diet:
    Was Cambridge, now maintaining
    Did you take the space out? When I posted the code, for some reason it puts a space inbetween setInterval (se tInterval)

    You need to delete the space, then it should work.
     
  21. MadamDotty

    MadamDotty Back again!

    Posts:
    4,752
    Likes Received:
    156
    Diet:
    The Harcombe Diet
    Yep, took the space, still nothing! Just a clot - that's me;)
     
  22. KD

    KD Gone fishing

    Posts:
    17,711
    Likes Received:
    757
    Diet:
    Was Cambridge, now maintaining
    Aww :( Wonder why it's not working. It's nothing terribly exciting.

    It picks up all the pictures on the site and makes them spin around in a circle:cool:
     
Popular Forums
  1. MiniMins.com is a weight loss support community helping each other on their weight loss journey. We have a multitude of forums, from Slimming World and Exante, to Success Stories. Click the logo at the top right to return to the forum home page at any time.
Loading...