PDA

View Full Version : DHTML:Manual Slideshow



CORRECTOMUNDOACE
04-30-2008, 10:37 PM
1) Script Title: Manual Slideshow

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

3) Describe problem:
How can I get this to be transition-less? Meaning no effect at all when switching between images.

thetestingsite
04-30-2008, 10:46 PM
In this function of the javascript code, just add the highlighted part:



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


Hope this helps.

CORRECTOMUNDOACE
04-30-2008, 10:51 PM
I tried this and now the images will not display at all.

Here's the url:

http://www.elnativogrowers.com/plantsPage.php?2/#

jscheuer1
05-01-2008, 05:27 AM
Actually, you need to modify these two functions as shown (additions red):


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()
}
}

Or you could just remove those lines with the // entirely.

Once they are commented out or removed, you can (but don't need to) also get rid of these two functions:


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()
}

as they will no longer be used.

And although it doesn't seem to matter one way or the other, you can get rid of:


style="filter:revealTrans(duration=2,transition=23)"

from the part of the code that goes in the body of the page. Doing so will lighten the load of the page slightly and make it more nearly valid (if that sort of thing concerns you).

CORRECTOMUNDOACE
05-01-2008, 07:03 PM
Thank You Brother! Will Make Valid When Get Time.