Results 1 to 3 of 3

Thread: Scroll script disables other script on website

  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Scroll script disables other script on website

    1) Script Title: Scrollable content script II

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

    3) Describe problem:

    I have used the 'Scrollable content script II' from the Dynamic Drive website. At first it seemed to work perfectly, but I have noticed that another part of the page does not function properly anymore. The website adres is: www.atelierscope.nl
    On the main page (index) I have used the script as you can see. The other script of the images (on the right side of the page) now does not work anymore (to see how it should work have a look at this page: http://www.atelierscope.nl/engelermeer.html).

    I made this website by using scripts offered by others, and I cannot write scripts myself, so for me it is copy paste, nothing more... I only understand the basics of making an simple website. Therefore I hope you can help me out here.

    Thank you.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Looks like a window.onload conflict. Inside the Scrollable Content script, try replacing the following line:

    Code:
    window.onload=getcontent_height
    with this instead:

    Code:
    if (window.addEventListener)
    	window.addEventListener("load", getcontent_height, false)
    else if (window.attachEvent)
    	window.attachEvent("onload", getcontent_height)
    DD Admin

  3. #3
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot! It works perfectly now.
    I find it admirable that you share your knowledge with others.

    Joppe.

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
  •