@Eyes_OnlyauthorJan 31.2009 — #allright, they didnt answer my question in the other post so ill post it here... i need a way of cycling the background of a web page each time the page is loaded. all of the images are of the same format and in the same directory. there are 67 images. perhaps someone can help and modify a script or create one similar to this? [CODE]<script type="text/javascript" language="JavaScript"> <!-- Copyright 2002 Bontrager Connection, LLC // // Type the number of images you are rotating.
NumberOfImagesToRotate = 67;
// Specify the first and last part of the image tag.
@astupidnameJan 31.2009 — #change the 'wall' and/or '.jpg' to suit, as well as NumberOfImagesToRotate, and then 'someId' is an id of element on page (change to suit):
[CODE]<script type="text/javascript">
window.onload = function () { var NumberOfImagesToRotate = 67; var r = Math.ceil(Math.random() * NumberOfImagesToRotate); var image = 'url(wall' + r + '.jpg)'; document.getElementById('someId').style.background = image; };