<?php $banners = glob('path/to/banners/*.jpg'); $banner = $banners[array_rand($banners)]; header('Content-Type: image/jpeg'); readfile($banner); ?> PHP: I love you too!
http://snooz.mantis.0lx.net/b-upload/ or <?php $ban1 = "http://image url"; $url1 = "http://link url"; $randomNum = rand (1,6); //set this to the amount of banners //Select the banner of the random number $image = ${'ban'.$randomNum}; //Url of the random number $url= ${'url'.$randomNum}; //Prints out the link of the banner and the image of the banner Print "<a href=".$url." mce_href=".$url."><img src=".$image." border=0></a>"; ?> PHP:
http://www.designplace.org/scripts.php?page=1&c_id=13 http://smoothgallery.jondesign.net/getting-started/faq/ http://simplythebest.net/scripts/DHTML_scripts/dhtml_images.html