Text Color

I'm using the following JavaScript to change the font color whenever the mouse pointer is over it. It works fine for Internet Explorer but not Netscape communicator. Is there a way to make it also works on Netscape communicator?

function barover(i) {
     switch (i)
         case 1:  Menu1.style.color = "#00FF00"
                      Menu1.style.cursor = "hand"
         case 2:  Menu2.style.color = "#00FF00"
                     Menu2.style.cursor = "hand"

function baroff(i) {
        case 1:  Menu1.style.color = "#FFFFFF"
        case 2:  Menu2.style.color = "#FFFFFF"
        <td ID="bar1" onMouseOver="barover(1)" onMouseOut="baroff(1)" width="100%"
        background="images/bar.GIF" height="32" align="right"><a
        STYLE="color:#FFFFFF;text-decoration:none;" href="index.htm"><font ID="Menu1"><strong>History&nbsp;&nbsp;&nbsp;
Please Help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

manh2000Author Commented:
Edited text of question.
I had the same problem.
You could fix it with just made the web site with FrontPage 2000.
There is this efect and it found with Netscape and Explorer.
manh2000Author Commented:
I don't have FP2K
Try using a HTML mark-up of

<style type="text/css">
<!--a:link {*insert option here*}
    a:hover {color=*insert color*}
    a:visited {*insert option here*}-->

Some options are as follows:
 background-color=*select color*

For example I usually use:
<!--a:link {text-decoration=none}
    a:hover {text-decoration=underline; color=*selected color*}
    a:visited {text-decoration=none}-->
Try it and change the css yourself.:)

<style type="text/css">
a { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #ffffff ; text-decoration: none; font-weight:bold}
a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #cc0000 ; text-decoration: none}
a.hover { font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #cc0000 ; text-decoration: none}
<script language="JavaScript1.2" type="text/javascript">
var ns = document.layers ? true : false;

function HoverInit()
  if (onLoadOld)
  tmpLayer = new Layer(1);

var obj = null;
var tmpLayer = null;
var onLoadOld = null;

if (ns) {
  if (window.onload)
    onLoadOld = window.onload;
  window.onload = HoverInit;
  document.onmouseover = Hover;

function Hover(evt)

  if (tmpLayer && tmpLayer.visibility == 'hide' && evt.target.text) {

    obj = evt.target;

    tmpLayer.left = obj.x;
    tmpLayer.top  = obj.y;
    tmpLayer.width = 10;

    with (tmpLayer.document) {
      write('<nobr><a href="'+obj.href+'" target="stage" class="hover">'+obj.text+'</a></nobr>');

    tmpLayer.visibility = 'show';

    document.onmousemove = Hoveroff;



function Hoveroff(evt)
  if (tmpLayer && evt.target != tmpLayer.document.links[0] && evt.target != obj) {

    tmpLayer.visibility = 'hide';


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.