Multiple fade-in slideshows
I have a site which needs 'Ultimate' fade-in slideshows on a number of pages. The is being built using Dreamweaver's nested template system, so I have to work out how to allow for the different photos to be used on each page.
As it stands at the moment I have to use a different version of the slideshow script for each page (now converted into an external javascript file), because the script includes the data for the images.
Dreamweaver allows you to include editable regions in the <head> but not optional regions. So, I can change the name of the script, but I can't miss it out on pages that do not use it.
Someone on another forum suggested using:
Code:
@@(optionJS==""?'':'<script src="'+optionJS+'"
type="text/javascript"></script>')@@
in the head, and then using Modify>Template to add the necessary script each time. But this seems rather long-winded - particularly since there are are more pages that do have slideshows than don't.
I thought that, if I was to create a javascript which runs but does nothing (effectively a null javascript), and then edit the head to point to that when no slideshow is needed, that could solve the problem. This could then replace the name of slideshow.js But what's the minimum I could include in that file to ensure it didn't crash?
Or is there some way of running the same script, but getting it to call different data fles for the image data?
Or can anyone suggest another way round it?
Your comments are very much appreciated. I'm gradually learning!
still stumped by stagger - want 2nd slideshow to start a few seconds later
Hi There - I've been searching through posts trying to find the answer, and I think I'm close, but still having a problem.
I have 2 slideshows on the same page. No problem there, they're both working.
I want one slideshow to start on page load, but I want to start the 2nd slideshow about 6 seconds later (after the first one finishes).
It looks like the var stagger=3000 (or whatever) is the key, but I've tried adding it to the code and it's not working - the 2nd script is starting at the same time as the first one.
I am just using test images in a test location right now - when I get it working I'll put the script where it needs to go on the page:
http://65.110.73.56/prototype3/
THANKS! I truly appreciate it!