-
mouseover effects with links netscape and IE
Hello All,
Im new to stylesheets and have been looking into creating a simple mouseover
effect to underline my links. I placed this snippet of code on my pages:
<style>
<!--
a{text-decoration:none;}
a:hover{text-decoration:underline;}
-->
</style>
It worked fine as far as I can tell - but only on IE. Is there a way to
get my desired effect on both IE and Netscape?
thanks much -
eric
"Michael" <msanchez@devx.com> wrote:
>
>Brian, you can still use styles to keep it simple. Just add this code to
your
>style sheet.
>
>A.redtext:hover {color:yellow}
>
>The class has to be the same or the effect will not execute. I suggest using
>a different class name or none at all if it is for all links.
>
>
>"Brian" <brian.martens@wcom.com> wrote:
>>I realize this crosses over from HTML somewhat, but I'll ask anyway. If
>I
>>have one or more links that I want to have a specific color I can simply
>>create a style with the syntax:
>>
>>A.redtext:link {color:red}
>>
>>and create the link with the code:
>>
>><A HREF=whatever CLASS="redtext">
>>
>>My question is that I need to incorporate that with a mouseover effect
that
>>will change the link text to a different color (yellow for example) when
>the
>>user moves their mouse over the link as well as change it back to red when
>>the mouse is removed from the link.
>>
>>Any suggestions? Thanks in advance.
>>
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks