I want a random header!

Started by chrsla, August 08, 2007, 02:23:48 PM

Previous topic - Next topic

chrsla

Hello,

for my forum i want a random header. How can i make it?

Deaks

depends on how you mean random if you want one that changes every refresh the try looking at javasccript
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

bloc

Or...you can make a series of images with a number prefix, put them in a folder and use a php statement to randomise which one to choose. Something like:


$myfolder = 'http://www.something.com/random_images_folder';
$which = rand(0,10);
echo '<img src="' , $myfolder , '/' , $which  , '.jpg" alt="" />';


Be sure to name the images like 0.jpg, 1.jpg, 2.jpg ..etc.

Advertisement: