View Full Version : Carousels?
Chease
25-06-2007, 01:26 AM
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
Mentor
25-06-2007, 01:59 AM
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...
//add the images you want to the array
$stuff = array (
0 => "image1.gif",
1 => "image2.gif",
2 => "image3.gif",
);
$display=rand(0, sizeof($stuff)-1);
//output the image, here:
echo "<img src='".$stuff[$display]."' />";
would do..
Chease
25-06-2007, 12:30 PM
Thanks. +rep on your way
Haven't tried it yet but hopefully it works!
Should work Mentor's really good with coding skills so he knows what he is talking about.
:Edzy
25-06-2007, 03:02 PM
I'd use one that takes all images from a directory and randomizes them, much easier to add a banner
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.