954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Conflicting javascript slideshows on same page

I am new to this whole Javascript world being primarily a comedy writer. I pasted Photoslider II into my website and it worked fine but when I add additional Photosliders (same code) everything gets screwed up. I know this is due to duplicate variables but I don't know how to change them and what do I change them to? I'll paste the code below. Also how hard would it be to tweek the code so that when I click on a thumbnail pic in the slideshow a pop up window with a larger version of the same pic would appear in a separate window? For now I would be happy just to use three Photosliders on my index page. I've been trying to find this answer for two weeks now. Thanks for the help and your time. Tom [EMAIL="ComedyFarm@yahoo.com"]ComedyFarm@yahoo.com[/EMAIL] Kevin's pet dog <a href=http://www.javascriptsolutions.com/imagesOLD/Img002.jpg " width="400" height="264" name="photoslider">


Start Over






This free script provided by
JavaScript">http://javascriptkit.com">JavaScript
Kit

ComedyFarm
Newbie Poster
3 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

My initial instinct is to suggest renumbering your array subscripts in the second photo slider. (i.e. change photos[0] to photos[7], etc)

You could also try changing the variable names in the second script from photo and text to photo2 and text2.

I would have to see the entire code and html to make any suggestions beyond that.

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

Thanks for your help. I found a better slideshow script that was already written for mutliple slideshows on same page. Thanks again.
tom

ComedyFarm
Newbie Poster
3 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You