I know nothing of java or html except the basics for forum use, but I wanted rollovers. So I followed a tutorial and got them working on my website.
here's the code.
It works great, it makes my website look so much better. But as you can see if you visit my site, http://web.me.com/lipton_lover/Eversoft/Home.html
It doesn't always go back to the unpressed image when it's supposed to. This happens especially when I move the mouse sideways right to another button. Is there a way to improve the code I already have, or use another person's code to fix this problem?
here's the code.
Code:
<script type="text/javascript">
function mouseOver()
{
document.rollover_one.src ="http://web.me.com/lipton_lover/Site/Blank_files/pressed.png"
}
function mouseOut()
{
document.rollover_one.src ="http://web.me.com/lipton_lover/Site/Blank_files/unpressed.png"
}
</script>
<a href="http://web.me.com/lipton_lover/Eversoft/Home.html">
<img alt="Eversoft downloads" src="http://web.me.com/lipton_lover/Site/Blank_files/unpressed.png" name="rollover_one" width="120" height="40" onmouseover="mouseOver()" onmouseout="mouseOut()" style="border: none;"/></a>
It works great, it makes my website look so much better. But as you can see if you visit my site, http://web.me.com/lipton_lover/Eversoft/Home.html
It doesn't always go back to the unpressed image when it's supposed to. This happens especially when I move the mouse sideways right to another button. Is there a way to improve the code I already have, or use another person's code to fix this problem?