You could turn your stylesheet into a php file so instead of style.css it would be style.php. Then inside your style.php at the top put:
PHP Code:
<?php
header("Content-type: text/css");
$bg=rand(1,7);
?>
Name your background images and save them in your images folder or where ever you have them like so:
background1.jpg
background2.jpg
background3.jpg
background4.jpg
background5.jpg
background6.jpg
background7.jpg
Now in your styles where you set the background:
Code:
body{background:url(background<?=$bg?>.jpg);}
This should do it but you're still going to have to edit all 300 pages to change style.css to style.php.. I can think of a lot of ways to do it but none that allow you to do it without editing the pages somehow.
Bookmarks