I'm laoding variable then shuffling them then picking array[0] and using that as my background image. But sometimes there is no backgroud image. Why is this?
here's the code
<?
$pictures = array("dollar1.gif", "dollar2.gif", "dollar3.gif", "dolllar4.gif", "dollar5.gif", "dollar6.gif" , "dollar7.gif" , "dollar8.gif", "dollar9.gif");
shuffle($pictures);
echo "<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#F1C3EB' background='images/backgrounds/".$pictures[0]."'>";
?>
I have exactly 9 dollar images.
To see what I'm doing visit www.pixellux.com
Thanks in advance