Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/09/2004, 08:58
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola 00000.

Modificando un código de unKnown puesto en las FAQs de JavaScript, ha salido esto:
Código HTML:
<html> 
<head> 
<script language="JavaScript"> 
    function prende() { 
    anclas=document.getElementsByTagName("a").length; 
    for (i=0;i<anclas;i++) { 
    document.getElementsByTagName("a").item(i).onmouseover=new Function("window.status='Estás sobre un link';return true"); 
    document.getElementsByTagName("a").item(i).onmouseout=new Function("window.status='';return true"); 
    } } 
</script> 
</head> 

<body onLoad="prende()"> 
<a href="#">Enlace1</a> <a href="#">Enlace2</a> <a href="#">Enlace3</a> 
</body> 
</html> 
Saludos,