PDA

View Full Version : using a script moere than once in diff variations


Elmo
02-18-2003, 01:02 PM
Hello all

for my website i was trying to use a java script to show diff pictures slide over one another.
Its is meant for frofiles

When i use the script for 1 profile (3 pics fading over one other) it worked

When i then tried to use it on another profile (in the same html page) they both did not work (same script, only diff pics)

i found a lot of help pages all saying i should start using onload dothis() ;dothat()

but how do i need to fill this in??
and when i tried using dreamweaver to make both script a seperate .js file, and link them in the site using dreamweaver they both do not work either.

here is a link to the page, where i have made 1 work (pics in the profile of LTA-Elmo
http://home.hetnet.nl/~marco_marks/LTA.htm

Hope u can and will help me out here
Thanks in advance for your help and trouble

Elmo
02-18-2003, 02:00 PM
in the first link u can see the original with 1 working script
http://home.hetnet.nl/~marco_marks/LTA.html
The script here is only at the pics of LTA-Elmo

in this link u can see the same page, with the script at LTA-Elmo (the picturs)
and the scrip at LTA-Wolf (same script diff picturs) and that it does not works
at this page the scripts have ben changed following the guidelines of the other helps and the faq on javascripkit.com
http://home.hetnet.nl/~marco_marks/LTA2.html

RoyW
02-19-2003, 04:12 AM
That script is simply not designed to work multiple times on the same page.
Take a look at these demo's
2 slideshows (http://www.javascript-fx.com/slideshows/simple/demo2.html)
4 slideshows (http://www.javascript-fx.com/slideshows/simple/demo3.html)
The download and install instructions are available here (http://www.javascript-fx.com/slideshows/index.html)

Elmo
02-19-2003, 12:07 PM
Thanks a lot, this is saving me a whole lot of stress
i am really gratefull for your help, going to try this tonight when i get back home.

Your slideshow even looks much much better, so it really si fantastic.

thanks
if ever i can return a favour, just mail me at m.marks@chello.nl