Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/11/2005, 12:51
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
Mira a ver si te sirve este ejemplo

Código:
<script type="text/javascript">
<!--
function funcion1(el){
	alert('va la uno!')
	el.href = "va la dos"
	el.firstChild.nodeValue = "función 2"
	el.onclick = function(){funcion2(this);return false}
}
function funcion2(el){
	alert('va la dos!')
	el.href = "va la uno"
	el.firstChild.nodeValue = "función 1"
	el.onclick = function(){funcion1(this);return false}
}
//-->
</script>
</head>

<body>
<a href="va a la uno" onclick="funcion1(this);return false">función 1</a>
</body>