PDA

View Full Version : cmotion script: more than one image scroller on one page???????



BlackLinen
07-22-2005, 01:27 PM
the script im refering to is located under image effects/gallerys and viewers/cmotion gallery script. I want to be able to use this script multiple times per pages. I would like to have the image scroller script to be present multiple times on one page. I have discovered that i need to some how manipulate the windows.onload function, but im not sure what to do, because i have modified it but i can only get one scroller to work at a time. Any help would be crucial. Thanks~
Raja

BlackLinen
07-22-2005, 01:30 PM
here is the path: http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm
i dint see the format post. Sorry~

jscheuer1
07-22-2005, 01:53 PM
.

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

http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=0&TOshow=allshow#refcon

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.

Hyve
08-09-2005, 04:29 PM
did somebody manage to have two cmotion scripts on one page? thanx for help.