----- Original Message -----
From: Philip Arnold - ASP <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 12:35 PM
Subject: RE: Seeking Text Rollover
> > (A little off topic, but, this may be a common need and worth
repeating.)
> >
> > Seeking JavaScript, DHTML, CF, etc. script/solution that will provide a
> > simple "change-in-color" text rollover (without the need for
> > images) in both IE AND NETSCAPE browsers.
> >
> > Have been looking in the obvious places, but have not found anything.
Does
> > anyone know of a source?
>
> From what I know of JavaScript, you can't in Netscape.
>
You can do it in Both IE and Netscape, but have to use different methods.
In IE it's simple as the color property is supported almost everwhere.
Something like the following in IE:
<SPAN ONMOUSEOVER="this.style.color='red'"
ONMOUSEOUT="this.style.color='black'">
Some Text
</SPAN>
Netscape is a bunch more complicated but it can be done with <layer>
(<layer> tag supports the bgColor property but NOT the text this.Color
property which is a pain. You can do the following though:
<STYLE TYPE="text/css">
.alternate {color: red }
</STYLE>
<layer ONMOUSEOVER="window.document.layers[1].visibility='visible' ;
this.visibility='hidden'">
Some Text
</layer>
<layer class="alternate" VISIBILITY="hide"
ONMOUSEOUT="window.document.layers[0].visibility='show' ;
this.visibility='hidden'">
Some Text
</layer>
Hope this helps you a little.
Regards,
Mark.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.