PDA

View Full Version : DHTML Slide Show Script - edit transitions?



dkvietzke
01-13-2006, 05:07 PM
Hello,

RE: DHTML Slide Show Script (http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm)

This works great for my photos, but I would like just have one type of transition. I like the one where the new photos comes in from the left, overlapping the previous photo.

What do I need to do?

Debbie V.

jscheuer1
01-13-2006, 06:21 PM
The transitions in this script only work in IE. I believe the effect you are describing is #6. Edit the scripts. There are two places where the random transition is established:


photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)

and:


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

Change them to:


photoslider.filters.revealTrans.Transition=6

and:


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