View Full Version : Using the same script twice


hayley28
01-02-2006, 03:21 PM
I'm currently making a website on dreamweaver for my school work and i'm using this....

http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm

I've put everything in and it works fine, but i want to add it again because i want to use this script 3 times on one page. is that possible of just a disaster waiting to happen?

I'd really appriciate it if anyone could help. I really want to use this script 3 times.

Thank You xx

allie
01-02-2006, 03:24 PM
I'm currently making a website on dreamweaver for my school work and i'm using this....

http://www.dynamicdrive.com/dynamicindex14/preloadslide.htm

I've put everything in and it works fine, but i want to add it again because i want to use this script 3 times on one page. is that possible of just a disaster waiting to happen?

I'd really appriciate it if anyone could help. I really want to use this script 3 times.

Thank You xx

Try it on a test page and see what happens. Sometimes you can use a script more than once, sometimes you can't :)

hayley28
01-02-2006, 03:30 PM
thanks. I did try and add another one but then both of them didn't work. I guess I'll just have to try something else....but thats mean....lol. xx thanks hun xx

pb&j
01-02-2006, 06:50 PM
it wont work because you are then declaring the same variables a second time which is confusing.

in the second set, you would need to change all of the variable and function names to something different. no conflict.

hayley28
01-02-2006, 08:41 PM
i tried that...but weren't sure of which ones to change! so, im going to just give up!! lol thanks though xx