Rename this function:
Code:
function startgallery(){
if (document.getElementById("controldiv")) //if it exists
document.getElementById("controldiv").style.display="block"
getElementbyClass("gallerycontent")
totalDivs=partscollect.length
if (document.gallerycontrol){
populatemenu()
if (document.gallerycontrol.mode){
for (i=0; i<document.gallerycontrol.mode.length; i++){
if (document.gallerycontrol.mode[i].checked)
displaymode=document.gallerycontrol.mode[i].value
}
}
}
if (displaymode=="auto" && document.gallerycontrol)
document.gallerycontrol.menu.disabled=true
expandone()
}
to:
startgallery1(){
Then, make a new startgallery function:
Code:
function startgallery(){
setTimeout("startgallery1()", 30000)
}
Put it just below the original one in the code. 30000 is the number of milliseconds before the main function runs, 1000 = 1 second, adjust as desired.
Bookmarks