PDA

View Full Version : DHTML Slide Show Script no transition



loulijn
05-23-2007, 11:15 AM
1) Script Title: DHTML Slide Show Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

3) Describe problem:

Hello!

I'm new here and I used the DHTML slide show. In IE you wil see all sorts of transitions, but I think this looks a bit like a circus . Is it possible to delete all the transitions so when you push the button it will quickly go to the other page?

Regards and thanks!

jscheuer1
05-23-2007, 04:00 PM
You can get rid of these:


function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

And get rid of the red parts in these:


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}