Results 1 to 5 of 5

Thread: Carousels?

  1. #1
    Join Date
    Sep 2005
    Location
    In a house.
    Posts
    262
    Tokens
    0

    Default Carousels?

    Hey.. I've noticed some fansites have started doing carousels to advertise DJ Perm Shows.

    www.habboxlive.com do it underneath the main banner.. I was wondering how you did this and what codes you need?

    Basically it's when the image changes everytime you refresh the page.

    Thanks
    +rep for helpers!

    Kris
    Founder/Owner

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

    Latest Awards:

    Default

    Im not really sure what a Carousel is in this context? if its the random banner bit though its easy and can be done with php or just js even "/

    Just google it for ether, or if u want a php one i have a tut on it on me site: http://thybag.co.uk/?p=Tutorials&ind=24

    Although you in this circumstance probs dont need the slef contaiend element so maybe just...
    PHP Code:
    //add the images you want to the array
    $stuff = array (
                    
    => "image1.gif",
                    
    => "image2.gif",
                    
    => "image3.gif",
                    );
    $display=rand(0sizeof($stuff)-1);

    //output the image, here:
    echo "<img src='".$stuff[$display]."' />"
    would do..

  3. #3
    Join Date
    Sep 2005
    Location
    In a house.
    Posts
    262
    Tokens
    0

    Default

    Thanks. +rep on your way

    Haven't tried it yet but hopefully it works!
    Founder/Owner

  4. #4
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Should work Mentor's really good with coding skills so he knows what he is talking about.
    Looking for a good desiner to design a social networking template.

    PM me.

  5. #5
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    I'd use one that takes all images from a directory and randomizes them, much easier to add a banner
    EDTALKING


Posting Permissions

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