Results 1 to 2 of 2

Thread: Random Banner

  1. #1
    Join Date
    Aug 2006
    Location
    North Las Vegas, Nevada
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Random Banner

    I was reading through old posts and found this

    [QUOTE=zeropsi;46984]You could try this:
    Javascript:
    Code:
    function banner() {
    
    banner = array();
    number = 0;
    // bannerArray
    banner[number++] = ""; //banner_info
    banner[number++] = ""; //banner_info
    increment = Math.floor(Math.random() * number);
    document.getElementById('banners').innerHTML = banner[increment];
    }
    but i dont quite know where to put in different numbers and filenames. im trying to get it, as the topic suggests, to change banners randomly as you navigate my forums (forums in question http://z10.invisionfree.com/Jahs_vis...ex.php?act=idx )

    is this the best way to go about it? or is there a better way?

  2. #2
    Join Date
    Apr 2006
    Location
    London
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well I dont know about this one, but you can try this one, which looks pretty simple to me:
    http://jscode.com/js_random_image.shtml,

    or even other billions of random image scripts out on the web:
    http://www.google.com/search?q=random+image+script

Bookmarks

Posting Permissions

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