Ver Mensaje Individual
  #9 (permalink)  
Antiguo 04/01/2011, 11:04
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: varias opciones en un href

a ver si es esto lo que quieres
Cita:
<html>
<head>
<script type="text/javascript">
var valor='';
function cambiarImagen(img) {
alert(img + ' - ' + valor);
document.getElementById('boton').style.display = valor == 1 ? 'block' : 'none';
}
</script>
</head>
<body>
<input type="button" id="boton" value="se muestra" style="display: none" />
<a href="#" onclick="valor2='1'; cambiarImagen('una imagen'); return false;">nueva imagen</a>
</body>
</html>