[Javascript] Sorry, another question.

Ben ben at babelfish.co.uk
Wed Apr 18 09:52:20 CDT 2001


Thanks Peter, I had suspected this was the case.  I do have a work around
but don't want to start on it until I'm sure.

I'm sure i've read somewhere that NS4 can't change styles on the fly... i'm
not a hard-core NS developer tho.... life is too short, etc, :)

Thanks tho.

 .ben


----- Original Message -----
From: "Peter Brunone" <peter at brunone.com>
To: <javascript at LaTech.edu>
Sent: Wednesday, April 18, 2001 3:50 PM
Subject: Re: [Javascript] Sorry, another question.


> Ben,
>
>     AFAIK, you're outta luck when trying to change attributes on the fly
in
> Netscape 4.  I can't say for more than 95% sure, and I'd love to be wrong,
> but don't get your hopes up...
>
> ----- Original Message -----
> From: "Ben" <ben at babelfish.co.uk>
> To: <javascript at LaTech.edu>
> Sent: Wednesday, April 18, 2001 9:30 AM
> Subject: [Javascript] Sorry, another question.
>
>
> > Hi again.
> >
> > Slightly different question this time involving changing the font style
of
> > an anchor tag in Netscape 4.7.  Can it be done?
> >
> > I'm trying this way, :
> >
> > function changeLink(obj)
> > {
> >     obj.className = 'clsNewClassName';
> > }
> >
> > where clsNewClassName is the new class i want it to use.  no joy there,
it
> > doesn't even error.
> >
> > and this:
> >
> > function changeLink(obj)
> > {
> >     obj.style.fontColor= '#808080';
> > }
> >
> > that doesn't work either, and again it showed no error at all.
> >
> > any ideas?
> >
> > many thanks.
> >
> >  .ben
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list