Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/03/2002, 18:23
ToKaTa
 
Fecha de Ingreso: marzo-2001
Ubicación: Gran Canaria
Mensajes: 381
Antigüedad: 23 años, 11 meses
Puntos: 2
Re: ayuda en boton

A ver si esto te sirve de algo:

Código:
  
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript1.2">
	numeroImagen=2;
	function cambiaImagen(){
		document.images['imagenQueCambia'].src="img"+numeroImagen+".gif";
		if (numeroImagen == 5)
			numeroImagen = 1
		else
			numeroImagen++
	}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<img src="img1.gif" name="imagenQueCambia" width="75" height="65">
<br>
<img src="boton.gif" width="100" height="50" onMouseUp="javascript:cambiaImagen();">
</body>
</html>


Saludos.



ToKaTa.