Thread
:
Random image on refresh?
View Single Post
07-12-2008, 12:16 AM
#
6
Gurnk
Status:
Member
Join date:
May 2007
Location:
US
Expertise:
Software:
Posts:
380
iTrader:
12
/ 100%
Just don't put it as a background image. Keep the div, and put the image in that, in the HTML (which needs to now be in a .php file).
Code:
<div id="banner"> <img src="images/rand/<?php echo rand(0,2); ?>.jpg" alt="Banner" /> </div>
Gurnk
View Public Profile
Visit Gurnk's homepage!
Find More Posts by Gurnk