View Full Version : scrollable content ll -- using script more than once on a page help

10-04-2005, 12:43 PM
Script: Scrollable Content 2
url: http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

I am trying to use this script in more than one place on my web page, but the scrollers on all the frames after the first one only move the text in the first frame and not in the frame they are designated to. Obviously there's a conflict. How do I fix this?

Thanks so much.

10-04-2005, 06:30 PM
This is a stock response:


Aside from the tutorial above, which usually is the solution when the problem is two different scripts, you may need to consult:


Which explains how two scripts on the same page may not use the same set of variable names, id names, etc. This is especially important if the problem is two copies of the same script on a page but, can come into play with two different scripts when the first step won't fix it.

One other approach that works in both situations, if adaptable to one (or more) of the scripts, is to put one script in a borderless iframe. It will look like it is on the same page but, since it really is on a separate page, conflicts are no longer an issue.