I'd like to change the background on every refresh...
I looked this up on google and this is what I came up with:
(My problem is, I did all this but it didnt work!)
Add this to your php file:
Add this to your css:Code:<?php $imagearray=file('background.inc.php'); $imagenum=rand(0,count($imagearray)-1); ?>
And make a new file called "background.inc.php" and inside it put:Code:div.container { padding : 95px 20px 20px 161px; background : url(<?php echo $imagearray[$imagenum];?>) #FFFFFF repeat; margin-top: nem }
etc, no blank lines, no quotes, no spaces, no semi-colonsCode:images/image1.jpg images/image2.jpg images/image3.jpg
My problem is, I did all this but it didnt work!![]()


)
Reply With Quote
