Hola a todos,
Tengo este código javascript para pasar las imágenes:
<script language="JavaScript">
// Browser Slide-Show script.
// With image cross fade effect for those browsers that support it.
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all)
{
document.getElementById(pictureName).style.filter= "blendTrans(duration=2)";
document.getElementById(pictureName).filters.blend Trans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all)
{
document.getElementById(pictureName).filters.blend Trans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.l ength)
+ ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futu reImages+"',"+displaySecs+")",
displaySecs*1000);
// Cache the next image to improve performance.
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null) {
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}
</script>
y este el html:
Código HTML:
<img border="1" src="foto1.jpg" width="271" height="250" id="Fotos">
<script language="JavaScript">
RunSlideShow("Fotos","foto1.jpg;foto2.jpg;foto3.jpg;foto4.jpg;"
+ "foto5.jpg",5);
</script>
Lo que me hace es que en el Explorer al pasar las imagenes le da un tipo de efectillo a la imagenes, pero no en Firefox. Me gustaria saber como poder conseguirlo tambien en Firefox.
Gracias de antemano y saludos