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 3 of 3
  1. #1
    Join Date
    Dec 2004
    Posts
    121
    Tokens
    0

    Default Random Banner Script

    Heres a really simple script that you can use to create a Random Banner, it's php so you will need a host that supports php. You can get javascript ones of these, but this isnt as short.

    PHP Code:
    <?php
    $banner
    [1]="banner1url.png";
    $banner[2]="banner2url.png";
    $banner[3]="banner3url.png";
    $random rand(1,  count($banner);
    ?>
    My brother posted this on HabboForum for me as i am banned but im not banned on this so i will post it personally.

    Then place this whereever you want the banners
    PHP Code:
    <img src="<?php echo $banner[$random]; ?>">

  2. #2
    Join Date
    Aug 2005
    Location
    Webdesign Section
    Posts
    1,032
    Tokens
    0

    Latest Awards:

    Default

    Wow, thanks nice + rep

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    "/ Thats been posted here quite few times now, plus the javascript one, well if u use a decent one, will be roughly the same lengh exspet base code will sit with the image is to go "/

    Also note with that script just ad more $banner[NUM] = "IMAGE URL"; varibles to the list, to ad more to the randomizer, keep in mind the NUM must count up, and that it can use any image media type.

Posting Permissions

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