Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/07/2005, 09:01
furoya
(Desactivado)
 
Fecha de Ingreso: noviembre-2002
Ubicación: Ciudad Autónoma de Buenos Aires
Mensajes: 2.367
Antigüedad: 22 años, 3 meses
Puntos: 317
Ah!; y lo de los botones -aunque no entiendo bien qué quieres hacer- sería

Código:
<html>
<head>
<script language= "JavaScript">
function saberBoton(T){
if (T.value == "ALFA") alert("Botón 'A'.");
else if (T.value == "ZULU") alert("Botón 'Z'.");
}


function cambiarBoton(T){
if (T.value == "ALFA") T.value = "ZULU";
else T.value = "ALFA";
}
</script>
<style>
body{font:bold 16px monospace; }
</style>
</head>
<body>
A <input type="button" value="ALFA" onclick="saberBoton(this)" />
<br />
Z <input type="button" value="ZULU" onclick="saberBoton(this)" />
<br /><br />
A-Z <input type="button" value="ZULU" onclick="cambiarBoton(this)" />
</body>
</html>

saludos (mejor escritos)

furoya