changing colour of word with mouse

Hi,

I used a word to make a link with a page. This word is underlined, ok. Now when I run the page I would a colour change (for the word) when the mouse is on the word. How can I do that, please?

regards

Hooky
hookyAsked:
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.

NickRackhamCommented:
hooky,

This is how I set up my hyperlinks to change from blue to red when the mouse passes over them. Note that the words appear as bold and I chose not to underline them.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>New Page 1</title>
<style>
<!--
      .bold {font-weight: bold; font-size: 8pt; color: #000080; font-family: Verdana, Helvetica, Arial;}
      A:link   {color: #000080; text-decoration:none}
      A:visited {color: #000080; text-decoration:none}
      A:active {color: #000080; text-decoration:none}
      
      
-->
</style>
<script>
//<!--
var ver = 0;

function doInit() {
    var ua = window.navigator.userAgent;
    var msie = ua.indexOf ( "MSIE " )
    if ( msie > 0 )        // is Microsoft Internet Explorer; return version number
        ver = parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) );
   
}

function DoOver(color) {
    if (ver >= 4) window.event.srcElement.style.color="#ff0000";
}

function DoOut() {
    if (ver >= 4) window.event.srcElement.style.color="#000080";
}
</script>
</head>

<body>
<a CLASS="BOLD" HREF="YourPage.htm" TARGET="MAIN"><span style="color: #000080"><font
color="#000080" face="Verdana, Arial, Helvetica" onmouseover="this.style.color='#FF3300'"
onmouseout="this.style.color='#000080'" size="0">

<p>Your Page</font></span> </p>
</a>
</body>
</html>


Regards

Nick
0

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
hookyAuthor Commented:
it works fine and I am able to change the original colour, witch it's not possible with the normal way

Thanks

Hooky
0
NickRackhamCommented:
No problem :o)
0
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.