
20/05/2006, 03:40
|
 | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 2 meses Puntos: 61 | |
Esto es lo que querrías? (he dado por hecho que el frame de la derecha se llama "derecha") Código PHP: <html> <head> <title>Untitled</title>
</head>
<body> <a href="#" target="derecha" >Enlace 1</a><br> <a href="#" target="derecha" >Enlace 2</a><br> <a href="#" target="derecha" >Enlace 3</a><br> <a href="#" target="derecha" >Enlace 4</a><br>
<script> var entradilla="Estás viendo ";
var texto="*"; var aquello; var en=document.links; for(a=0;a<en.length;a++){ en[a].onclick = function(){ if(this!=aquello){ if(texto!="*"){ aquello.firstChild.nodeValue=texto; } aquello=this; texto=this.firstChild.nodeValue; this.firstChild.nodeValue=entradilla+this.firstChild.nodeValue; } } } </script>
</body> </html>
Un saludo!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |