Tengo este codigo:
Código HTML:
<style type="text/css"> #Fotos{ width: 200px; height: 175px; } </style> <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.blendTrans.Apply(); } document.getElementById(pictureName).src = nextImage; if (document.all) { document.getElementById(pictureName).filters.blendTrans.Play(); } var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage; setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+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> <!--<script language="JavaScript"> RunSlideShow("Fotos","images/escudos/escudo-velayos.jpg;images/escudos/escudo_color.jpg;images/escudos/EscudoAyto.jpg;images/escudos/images.jpg;" ,5); </script>--> </head> <body onload="RunSlideShow('Fotos','images/escudos/escudo-velayos.jpg;images/escudos/escudo_color.jpg;images/escudos/EscudoAyto.jpg;images/escudos/images.jpg;',5);"> <div id="Fotos"></div> </body> </html>
Gracias de antemano y saludos