HTML, Change image when clicked on website?

Nikolas

New member
I have three images, one normal image that will be displayed when moused over, and one for when it is clicked. when it is clicked i want it to link to another webpage. So far all I have is the mouse over effect and a link, here's the code:

<script type="text/javascript">
function mouseOver()
{
document.rollover_one.src ="Mouseover"
}
function mouseOut()
{
document.rollover_one.src ="Normal"
}
</script>
<a href="Link">
<img alt="Link Title" src="Normal" name="rollover_one" width="158" height="40" onmouseover="mouseOver()" onmouseout="mouseOut()" style="border: none;"/></a>


Thanks!
 
Back
Top