Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Location
    South East Kent
    Posts
    883
    Tokens
    250

    Default Script used on lol.com

    On www.lol.com what is the script used to refresh the joke and make it come up with another?

    +rep for those who reply.
    i kno im not the best repper but heyy :]
    !matt'#



  2. #2
    Join Date
    Oct 2005
    Posts
    401
    Tokens
    0

    Default

    Im guessing a random text display
    and the button is just refreshing the frame

    Have a go with this javascript i quickly whipped up
    Ok call the file anything and it will work now

    <SCRIPT LANGUAGE="JAVASCRIPT">
    <!--
    var r_text = new Array ();
    r_text[0] = "What do you get if you cross a snowman and a vampire?<br> <b>Frostbite</b>";
    r_text[1] = "These two canibals are eating a clown. The first canibal asks 'Do you taste something <b>funny?</b>'";
    r_text[2] = "Joke 2";
    r_text[3] = "Joke 3";
    r_text[4] = "Joke 4";
    r_text[5] = "Joke 5";
    r_text[6] = "Joke 6";
    var i = Math.round(6*Math.random());
    document.write(r_text[i]);
    //-->
    </SCRIPT>
    <br>
    <form>
    <INPUT TYPE="button" VALUE="Another joke!" onclick='location.reload()'>
    </form>
    Now features form button that reloads wherewever and whatever the file is named.
    Last edited by Call; 20-01-2007 at 08:21 PM. Reason: New code edition
    Musicicon is
    currently

  3. #3
    Join Date
    Sep 2006
    Location
    South East Kent
    Posts
    883
    Tokens
    250

    Default

    Ok, thanks alot.
    I cant try it at the moment, but i will later.
    +rep for trying and helping.
    !matt'#



  4. #4
    Join Date
    Oct 2005
    Posts
    401
    Tokens
    0

    Default

    Ok with tht just add new r_text
    for new jokes if you need more works fine for me
    Musicicon is
    currently

Posting Permissions

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