I've got a file that uses the blendTrans style for a photo slideshow. It works fine with Internet Explorer, but not with any other browsers. What do I need??? Thanks, here's my slideshow code...
[code=javascript]
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDurati on = 3;
function runSlideShow(){
if (document.form1 .automatic.chec ked){
if (currentIndx<im agesPreloaded.l ength){
currentIndx=cur rentIndx
}
else {
currentIndx=1
}
document.getEle mentById('photo ').style.filter ="blendTrans(du ration=2)";
document.getEle mentById('photo ').style.filter ="blendTrans(du ration=CrossFad eDuration)";
document.getEle mentById('photo ').filters.blen dTrans.Apply(); }
document.getEle mentById('photo ').src = imagesPreloaded[currentIndx].src
document.getEle mentById('numbe r').innerHTML=n umber[currentIndx];
if (document.form1 .automatic.chec ked) document.getEle mentById('photo ').filters.blen dTrans.Play();
currentIndx = currentIndx + 1;
if (currentIndx > (imagesPreloade d.length)) currentIndx=1;
var delay2 = setTimeout('run SlideShow()', SlideShowSpeed) ;
}
[/code]
LINKS
HTML: http://njn.net/edtest/photogalleryFADE.html
EXTERNAL JS: http://njn.net/edtest/pgfade.js
[code=javascript]
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;
// Set the duration of crossfade (in seconds)
var CrossFadeDurati on = 3;
function runSlideShow(){
if (document.form1 .automatic.chec ked){
if (currentIndx<im agesPreloaded.l ength){
currentIndx=cur rentIndx
}
else {
currentIndx=1
}
document.getEle mentById('photo ').style.filter ="blendTrans(du ration=2)";
document.getEle mentById('photo ').style.filter ="blendTrans(du ration=CrossFad eDuration)";
document.getEle mentById('photo ').filters.blen dTrans.Apply(); }
document.getEle mentById('photo ').src = imagesPreloaded[currentIndx].src
document.getEle mentById('numbe r').innerHTML=n umber[currentIndx];
if (document.form1 .automatic.chec ked) document.getEle mentById('photo ').filters.blen dTrans.Play();
currentIndx = currentIndx + 1;
if (currentIndx > (imagesPreloade d.length)) currentIndx=1;
var delay2 = setTimeout('run SlideShow()', SlideShowSpeed) ;
}
[/code]
LINKS
HTML: http://njn.net/edtest/photogalleryFADE.html
EXTERNAL JS: http://njn.net/edtest/pgfade.js
Comment