This piece of Java works perfectly so that onmouseover of the text an image is placed above the text, my problem is I can't come up with a piece of code for onmouseout to remove the image and restore the site to the way it was before the onmouseover.
Right now the image remains on the screen until a refresh of the page happens.
You can view the actual page operation at http://www.swiftboats.net/extras/boat_specifications.htm scroll down slightly to "Construction:"
There are seven different examples there in use, what I want to do is only have the highlighted pictures show while onmouseover occurs and disappear onmouseout.
Text onmouseover to show image then remove
LastMitch commented: Thanks for sharing! +12
<script type="text/javascript">
function show(Id) {
document.getElementById(Id).style.display="inline";
}
</script>
<span onmouseover="show ('myImage1')">- <u>FORE PEAK (Peak Tank)</u></span></b>
<img src="../images/MarkILineDrawingForePeak.jpg" id="myImage1" border="0" style="display:none;"
LastMitch
almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS
MidiMagic 579 Nearly a Senior Poster
almostbob 866 Retired: passive income ROCKS
Troy III 272 Posting Pro
Larrywaz 12 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.