If you mean disable auto rotation of the background image altogether and simply display a random background when the page loads, try the below code instead:
In the HEAD section of your page:
Code:
<style>
body{
/*Remove below line to make bgimage NOT fixed*/
background-attachment:fixed;
background-repeat: no-repeat;
/*Use center center in place of 300 200 to center bg image*/
background-position: 300 200;
}
</style>
In the BODY section of your page, such as at the very end:
Code:
<script language="JavaScript1.2">
//Background Image Slideshow- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
//Specify background images to slide
var bgslides=new Array()
bgslides[0]="bg1.jpg"
bgslides[1]="bg2.gif"
bgslides[1]="bg3.gif"
document.body.background=bgslides[Math.floor(Math.random()*bgslides.length)]
</script>
Bookmarks