javascript - Remove an image brought up by on mouseover -
the following script opens image onmouseover, can't come way remove image onmouseout. know missing extremely simple can't seem find works.
<script type="text/javascript"> function show(id) { document.getelementbyid(id).style.display="inline"; } </script> <span onmouseover="show ('myimage')">- <u>lazarette</u></span></b> <img src="../images/markilinedrawinglazarette.jpg" id="myimage" border="0" style="display:none;"
you close! add onmouseout event!
html
<b> <span onmouseover="show('myimage',true)" onmouseout="show('myimage',false)">- <u>lazarette</u></span></b>
javascript
function show(id, show) { document.getelementbyid(id).style.display = show ? "inline" : "none"; }
Comments
Post a Comment