TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

CSS Mouseover/out?

Page: 1 Reply
Apr 23rd 2003#100772 Report
Member since: Mar 24th 2001
Posts: 3734
Current code:
[code]
.nav-over {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-color: #000000;
font-size: 11;
font-weight: bold;
}
.nav-out {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-color: #CCCCCC;
font-size: 11;
font-weight: bold;
}
[/code]
Yet, on mouseout, it doesn't change the color. Is it not a supported function? I can change the font on mouseout, but not the color. The color stays black. Any ideas?
Reply with Quote Reply
Apr 23rd 2003#100774 Report
Member since: Mar 24th 2002
Posts: 3114
why don't you just use

A:HOVER{
blah blah ;
}

? o_O
Reply with Quote Reply
Apr 23rd 2003#100776 Report
Member since: Mar 18th 2001
Posts: 6632
Yes, you have to use a:hover, silly. Unless you use javascript with an onMouseOut function or something. If you need a different class so just your navbar is that color, do this:

a.navbar:hover {}
Reply with Quote Reply
Apr 23rd 2003#100779 Report
Member since: Mar 24th 2001
Posts: 3734
No need for HOVER, it works fine. I changed "font-color" to simply "color" and it works fine.
Reply with Quote Reply
Apr 23rd 2003#100780 Report
Member since: Mar 24th 2001
Posts: 3734
CSS
[code]
.nav-over {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-color: #000000;
font-size: 11;
font-weight: bold;
}
.nav-out {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 11;
font-weight: bold;
}
[/code]

Link Code

[code]
.a onMouseOver="this.className='nav-over'" onMouseOut="this.className='nav-out'" class="nav" href="contactus.asp".Contact Us./a.
[/code]
Reply with Quote Reply
Apr 23rd 2003#100781 Report
Member since: Mar 18th 2001
Posts: 6632
Ew. Don't do it like that. What's the point of using all that javascript? Just do it like I showed you and it will be a whole lot cleaner and nicer. And will still work on browser with javascript turned off.
Reply with Quote Reply
Apr 23rd 2003#100783 Report
Member since: Mar 24th 2001
Posts: 3734
Show me the difference so I can see how much work it will be to change over.
Reply with Quote Reply
Apr 23rd 2003#100784 Report
Member since: Mar 18th 2001
Posts: 6632
[CODE]
a.navbar:link {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-color: #000000;
font-size: 11;
font-weight: bold;
}
a.navbar:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 11;
font-weight: bold;
}

< a href="link.htm" class="navbar">link< /a>
[/CODE]

Pretty Simpleā„¢
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum