
29/03/2005, 03:57
|
 | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 4 meses Puntos: 61 | |
Para no usar el maldito target="_blank": Código PHP: <html>
<head>
<title>Untitled</title>
<script>
dominio="forosdelweb.com";
function inicio(){
for(a=0;a<document.links.length;a++){
enlace=document.links[a];
if(enlace.href.indexOf("http://")==0 && enlace.href.indexOf(dominio)==-1){
enlace.onclick=function pepe(){window.open(this.href);return false;}
}
}
}
</script>
</head>
<body onload="inicio()">
<a href="http://forosdelweb.com">Foros del Web</a><br>
<a href="http://www.forosdelweb.com">Otra vez Foros del Web</a><br>
<a href="index.php">Enlace a una página</a><br>
<a href="http://karlankas.net">Visitar KarlanKas.net</a><br>
<a href="http://maestrosdelweb.com">Visitar maestros del web</a><br>
</body>
</html>
Un saludo a los dos!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |