To use this code, you'll need to do the following:
  1. Replace the entries in $images with your own in the rotate.php file.
  2. Upload all files
    or use the css file code or copy the index.php code into the page you want, e.g.

    This is the only code you need to use in the page you want to have rotating backgrounds

    <style type="text/css">
    <!--
    body {
    background-image: url(rotate.php?i=3);
    }
    -->
    </style>

    and upload rotate.php and images

  3. (OPTIONAL) Change the $secondsFixed to decide for how long the list will stay the same before it's reordered. The timeframe should be large enough to allow all the PHP calls to be made easily within the time allotted.
    One note: setting the $secondsFixed value to 10 ensures that the random list reorders every ten seconds. So, if the PHP calls for a page straddle this boundary -- some within a ten second boundary, some outside it -- the list could still be poorly randomized. To avoid this, you can increase the value. For instance, at 3600, the list will stay the same for an hour, and it's the rare page load that will cross that boundary exactly.