Hi, everyone. Sorry about this noobish question…
I am trying to create a text-based menu that when a user click on it, it will change to a none-link and different color.
The way I’m doing it is to make an additional text inside <span> and put it right next to the menu link. And when a user click it, the link will be hidden, and the <span> text will show.
Currently, my code doesn’t work. IE is giving me an error message showing that ” ‘style’ is null or not an object ” ?
my code looks like this:
[code]
…
<script language=”JavaScript” type=”text/JavaScript”>
function changefocus(offlink, onlink) {
offlink.style.display=’none’;
onlink.style.display=’inline’;
}
</script>
…
<a href=”javascript:changefocus(this,document.lmeducation-focus);” style=”Display:inline;” id=”lmeducation”>Education</a><span class=”hilite” style=”Display:none;” id=”lmeducation-focus”>Education</span>
Anyone knows what I did wrong? or is there a better way to do it?
I am trying to stay away from picture-base navigation…..
Thanks!