PDA

View Full Version : text rollovers stopped working after adding DD slide show script



john5
09-23-2004, 02:35 AM
Hi,

Im having trouble figuring out how to resolve this problem. I dont receive any errors, but after installing the DD fade slide show, my rollovers stopped working?

Any ideas?

You can view the page here: http://www.meditationprograms.com/services.htm

BTW, great website and service here :)

John

ddadmin
09-24-2004, 08:45 PM
Firstly, please always post a link to the script in your question, in this case: http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

At a glance the problem seems to be the window.onload event for the Slideshow script conflicting with that for your rollovers script. Try changing the code at the end of the script:


if (ie4||dom)
window.onload=startit
else
setInterval("rotateimage()",pause)
to:


if (window.addEventListener)
window.addEventListener("load", startit, false)
else if (window.attachEvent)
window.attachEvent("onload", startit)
else if (document.getElementById)
window.onload=startit
else
setInterval("rotateimage()",pause)