Look at this script:
<html>
<head>
<style>
#g{
display:none;
}
</style>
<a href=# onMOUSEOVER="document.getElementById('g').style.display='block'">
12</a><div id=g>hello world</div></html>
This is working but the
<div id=g>
is shown always when some one hover the link onetime. How to stop it so we can only see
the content in div id ‘g’ if the link is hovered?
Add an
onmouseouton the div tag like this: