RE: Down to One Question: Javascript (was Two Questions: One Java script, One Tab
by Ben Ocean <lists(at)TheWebsons.com>
|
Date: |
Tue, 12 Feb 2002 05:58:18 -0800 |
To: |
hwg-techniques(at)hwg.org |
In-Reply-To: |
pdc |
|
todo: View
Thread,
Original
|
|
This is a summary response to all you who took the time to try to help me:
Klaas de Waele wrote:
><.font size=7 onmouseover="this.size='7'; this.color='magenta';"
>onmouseout="this.size='7'; this.color='black';">test me<./font>
>
>- this should do it -
The problem here is that an original font color of white is not specified.
If it is, then this code fails.
Michah Condon writes (and proctest wrote essentially the same):
<font style="font: 13px antique
olive, arial;color:white;"
onMouseOver="javascript:this.style.color='black'"
onMouseOut="javascript:this.style.color='white'">Home</font>
Nope. This is what I originally tried. I took the color out of the tag in
an effort to isolate that which was causing the trouble.
Jeremy Duncanson writes:
You don't say which browser you are using and it might be assumed
that you are using MSIE, but changing fonts using javascript will
not work in NN 4.x. (Actually, it will change, but it won't show on
the page after it's been rendered when the page loads.)
Also, when you have multi-part font names like antique olive you
need to enclose them in quotes. "Home" is the only menu option
that displays in my browser.
I'm using IE5.5. I don't care too much about NN4.x since, thank God, it's
finally being put to rest (and NN6.x was a non-event). And no, *antique
olive* does not need to be contained in quotes in a style statement. In
fact, quotes break code.
In short, I *still* don't have the answer to this javascript riddle! Any
more tries?
TIA,
BenO
P.S. You're all good sports!
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA