Forum Moderators: not2easy
HOME
LINK HERE
sub link here
possible sub
link two
LINK HERE
ALSO HERE
ETC
now my question is this, I have it all set up in css to do it this way and it works great, I was wondering how I could go about actually changing the text on a:hover. For example: I would like to make the seleted menu item have a carrot next to it like this:
HOME
LINK HERE <
sub link here
link two
LINK HERE
ALSO HERE
ETC
Is that possible without using images?
Thanks.
Create styles for on/off states:
.NAVoff {color:#FFFFFF; background-color:#FFFFFF; text-decoration:none}
.NAVoff a:link {color:#000000; background-color:#FFFFFF; text-decoration:none}
.NAVoff a:visited {color:#000000; background-color:#FFFFFF; text-decoration:none}
.NAVon {color:#0000CC; background-color:#FFFFFF; text-decoration:none}
.NAVon a:link {color:#FF0000; background-color:#FFFFFF; text-decoration:none}
.NAVon a:visited {color:#FF0000; background-color:#FFFFFF; text-decoration:none}
Then in the navigation table cell type a "> " (>) before/" <" after your link text -- JUST DONT LINK THE CARATS:
<td class="NAVoff" onMouseOut="ChangeStyle(this,'NAVoff')" onMouseOver="ChangeStyle(this,'NAVon')">> <a href="page.html">Page Link</a></td>
The mouseover script is:
<script language="JavaScript">
<!--
function ChangeStyle(obj, new_style) {
obj.className=new_style;
}
//-->
</script>
[edited by: tedster at 11:19 pm (utc) on Nov. 6, 2002]