DampDog 0 Posted November 15, 2005 Report Share Posted November 15, 2005 Hello, I'm a novice at HTML so chances are I'm not doing this the correct way. What I want to do is have an image on the page either flip from one image to another, or prefrably have an image appear where there was no image before when I hover over the link. I've added this to a link.<tr><td class="links"><a href="StartPage.html" onMouseOver="document.pic1.src='index/Earth.gif'" onMouseOut="document.pic1.src='index/health.gif">Health Stuff</a></td></tr>The image.....<td class="peek"><center><span ><img name="pic1"></SPAN> </center></td>I see a change when I onMouseOver but no change onMouseOut.What am I doing wrong? Quote Link to post Share on other sites
Skemcin 13 Posted November 15, 2005 Report Share Posted November 15, 2005 Here is a site I built almost 10 years ago. Look at the source code and refer to javascript there - it's one of the cleanest mouseover scripts you'll find.http://www.deepcreeklakebreezmotel.com/If you want to replace an image that "isn't there" then put a blank/transparent gif/png as a place holder to where you want the image to go. Quote Link to post Share on other sites
DampDog 0 Posted November 15, 2005 Author Report Share Posted November 15, 2005 I feel such an idiot, a transparent image is exactly what I need. It's easy once someones told you how to do it! Thx for the help it's much appreciated. This is my fledgling site if your interested,My Webpagethanx again Quote Link to post Share on other sites
Skemcin 13 Posted November 15, 2005 Report Share Posted November 15, 2005 glad to help. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.