Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/01/2003, 06:06
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Buen día Kaopectate, hoy fuiste tú más rápido , jejejeje

Bueno yo le dejé los links tal y como están.

Ahí va mi solución para quien quiera hacerlo con links

Código PHP:
<html>
<
head>
<!-- 
PRIMER PASOCopiar dentro del tag HEAD -->

<
SCRIPT LANGUAGE="JavaScript">
<!-- 
OriginalMike Canonigo (mike@canonigo.com) -->
<!-- 
Web Site: [url]http://www.munkeehead.com[/url] -->

<!-- Begin
NewImg 
= new Array (

"images/1.gif",
"images/2.gif",
"images/3.gif"

);
var 
ImgNum 0;
var 
ImgLength NewImg.length 1;

//Time delay between Slides in milliseconds
var delay 3000;

var 
lock false;
var 
run;
function 
chgImg(direction) {
if (
document.images) {
ImgNum ImgNum direction;}
if (
ImgNum ImgLength) {
alert('No hay más imágenes')
ImgNum ImgNum direction;
if(
lock == true){auto()}
}
else{
}
if (
ImgNum 0) {
alert('No hay más imágenes')
ImgNum ImgNum direction;
}
document.slideshow.src NewImg[ImgNum];
}

function 
auto() {
if (
lock == true) {
lock false;
window.clearInterval(run);
}
else if (
lock == false) {
lock true;
run setInterval("chgImg(1)"delay);
}
}
// End -->
</script>

</head>

<body>
<!-- SEGUNDO PASO: Copiar dentro del tag BODY -->

<img src="images/1.gif" name="slideshow">
<table>
<tr>
<td align="right"><a href="javascript:chgImg(-1)">Previous</a></td>
<td align="center"><a href="javascript:auto()">Auto/Stop</a></td>
<td align="left"><a href="javascript:chgImg(1)">Next</a></td>
</tr>
</table>

</body>
</html> 
p.d. me gusta más la propuesta de desactivar los botones que la alerta

Saludos

Última edición por tunait; 02/01/2003 a las 06:10