PDA

View Full Version : 2 of the same script. Not working.



elli
12 Apr 2007, 07:47 PM
I am trying to place two of the same scripts on a page.

Their purpose is to create a scrollable box which then can be filled with your content.

I am using dynamic drive's free script: http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

The problem I am having is: when I use both scripts, the first script's arrows scroll the second script's content.


I have tried the suggestion they gave to fix it but, it has not worked for me.
Their suggested resolution was to delete the:
window.onload=getcontent_height in both scripts and add this:
<body onload="dothis();dothat()"> to the body tag.

So I added this to the body tag:
<body onload="getcontent_height(); getcontent_height()">
nothing happened.

I don't know any java script. I have only used their free scripts. So I am at a loss with this.
elli

bjk2007
13 Apr 2007, 06:11 PM
Can you link to a live version of the page or paste your entire page's code up here? There's quite a few things that could be screwing this up right now, such as the fact that your onload attribute is just running the same function twice or that you may have redeclared a function by pasting it in twice. In order to fully figure out what's going on I need to be able to see everything.