Link to home
Start Free TrialLog in
Avatar of manh2000
manh2000

asked on

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"
         break
         case 2:  Menu2.style.color = "#00FF00"
                     Menu2.style.cursor = "hand"
         break
              }
}

function baroff(i) {
     switch(i)
     {
        case 1:  Menu1.style.color = "#FFFFFF"
        break
        case 2:  Menu2.style.color = "#FFFFFF"
        break
      }
.
.
.
        <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;
        </strong></font></td>
Please Help
Avatar of manh2000
manh2000

ASKER

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.
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*}-->
</style>

Some options are as follows:
 text-decoration=none
                 underline
 text-transform=uppercase
                lowercase
 background-color=*select color*

For example I usually use:
<style>
<!--a:link {text-decoration=none}
    a:hover {text-decoration=underline; color=*selected color*}
    a:visited {text-decoration=none}-->
</style>
ASKER CERTIFIED SOLUTION
Avatar of renu
renu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial