Let's assume your HTML looks something like this:
<div class="container">
<img src="image.gif" onmouseover="changeLink('m
<a href="# id="myLink""></a>
</div>
The Javascript is attached as a code snippet. You would just have to add a new CSS class as follows:
<style>
a#myLink.LinkHover, a#myLink:hover {
text-decoration:underline;
color:red;
}
</style>
Hope that helps.
Main Topics
Browse All Topics





by: informaniacPosted on 2008-08-28 at 00:28:00ID: 22332289
<img onmouseover="jsFunc();" src=''>
function jsFunc()
{
//.. Write the code for changing the color of hyperlink here.
}