Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Works in IE but not Navigator.
Message
De
12/11/1999 15:37:17
 
 
À
29/10/1999 09:26:30
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00283755
Message ID:
00290738
Vues:
16
>Hi All!
>
>I have a simple javascript function that is meant to change the text color of links on mouseover and mouseout. The code looks like this:
>
>script
>var text
>function hm1(text) {eval(text+".style.color='Red'");}
>function lm1(text) {eval(text+".style.color='Yellow'");}
>/script
>A style="text-decoration: none"
> href="apage1.htm"
> id=m1
> onMouseOver="hm1('m1');window.status='Go to the top page'"
> onMouseOut="lm1('m1');window.status=''"
> target="tablet">Top Page
>A style="text-decoration: none"
> href="apage2.htm"
> id=m2
> onMouseOver="hm1('m2');window.status='Go to my telescopes page'"
> onMouseOut="lm1('m2');window.status=''"
> target="tablet">Telescopes
>
>etc....
>
>Everything works exactly right in IE 4.0 and does not work in Netscape Navigator 4.0. I'm guessing that Navigator doesn't recognize the ID attribute of the tag. Anyone have a solution? I really would like it to work in either browser.
>
>TIA!
>Tom.
The problem resides on the way the browsers dynamicaly updated themselves using dhtml, Explorer is not a problem, Netscape the only workaround is to create two separate ID with the pos absolute and relative, this will implicate a double work if you are to create a cross-browser app using DHTML.

mark oliva
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform