Results 1 to 2 of 2

Thread: text rollovers stopped working after adding DD slide show script

  1. #1
    Join Date
    Sep 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation text rollovers stopped working after adding DD slide show script

    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

  2. #2
    Join Date
    Aug 2004
    Posts
    9,903
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Firstly, please always post a link to the script in your question, in this case: http://www.dynamicdrive.com/dynamici...nslideshow.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:

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

    Code:
    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)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •