View Full Version : Scroll script disables other script on website

04-10-2011, 01:50 PM
1) Script Title: Scrollable content script II

2) Script URL (on DD):

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.

04-10-2011, 08:41 PM
Looks like a window.onload conflict. Inside the Scrollable Content script, try replacing the following line:


with this instead:

if (window.addEventListener)
window.addEventListener("load", getcontent_height, false)
else if (window.attachEvent)
window.attachEvent("onload", getcontent_height)

04-11-2011, 04:27 PM
Thanks a lot! It works perfectly now.
I find it admirable that you share your knowledge with others.