Hello all, I guess this is a bit of a simply question, but I am looking for a banner rotation script. I have looked on hotscripts, but not really found anything at a glance. Basically I am looking for a rotation script that displays images of any size, which can have link/can't have links on each image. Anyone got any good SIMPLE links or scripts, do let me know! Thanks in advance.
Which language do you want this banner rotator in? Essentially, its all about querering the same data but in a random fashion. I know google analytics even allows you to do A-B banner testing so if you build it from the ground up, you could incorporate realtime stats
Well, if your server supports PHP, and you are able to change the file names of the banner images to numbers, you could implement something like this: <? // Example using random display of one image out of five. Each image is named "1.gif, 2.gif, etc." $image_number = rand(1,5); // Picks a random number between 1 and 5. ?> <a href="#"><img src="<? echo $image_number; ?>.gif" alt="Banner Image" /></a> Code (markup): There is a way to do this without modifying the image file names, but you would need to know the names and locations of them in advance. Hope this helps.