PDA

View Full Version : Slide Show - starting point



El Commodore
03-01-2006, 10:01 AM
DHTML Slide Show Script
http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

nice sript. everything works as it should.

Is there a way to define different starting slides? E.g. depending on a variable or a preceeding link?

thanks for your help

Xiong Chiamiov
03-02-2006, 05:57 AM
My thought would be that in


document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')

you would change to a variable:


document.write('<img src="'+photos[variable]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')

or something like that.

ddadmin
03-02-2006, 02:07 PM
You should also change the line near the top of the script:


var which=0

near the top to reflect the new starting point, such as:


var which=1

El Commodore
03-03-2006, 07:43 AM
I finally figured it out. Thanks anyway.