PDA

View Full Version : DHTML Slide Show Script - IE 4+ special random effect



olliep
09-26-2011, 10:59 AM
I'm using the DHTML Slide Show Script in my website which is very effective and perfect for my needs, but I would like to remove the transition effect in IE 4+ as it doesn't suit the style of my site.

Can anyone help here?

http://www.dynamicdrive.com/dynamicindex14/dhtmlslide.htm

my site http://www.oliverperrott.com

cheers

jscheuer1
09-26-2011, 11:21 AM
Near the end of the first part of the script, make 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()
}
}

Like so:


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

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

And in the second part of the script, get rid of the highlighted:


<script>
if (linkornot==1)
document.write('<a href="javascript:transport()">')
document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')
if (linkornot==1)
document.write('</a>')
</script>

So it looks like so:


<script>
if (linkornot==1)
document.write('<a href="javascript:transport()">')
document.write('<img src="'+photos[0]+'" name="photoslider" border=0>')
if (linkornot==1)
document.write('</a>')
</script>

olliep
09-26-2011, 12:08 PM
Thats great, thank you very much!