Click to See Complete Forum and Search --> : popUp layer on mouseover


aclem
07-30-2003, 12:06 PM
I am trying to duplicate a popup layer effect on a mouseover that I found on another page but am having no luck.
My knowledge of JavaScript is little beyond simple cut and paste and hope to find someone who might assist me with this.
Either some direction on where I might find a cut and paste script that will do this (although I have searched my sources) or any other help would be greatly appreciated.
-Art

pyro
07-30-2003, 12:28 PM
Copy and paste this :p

<script type="text/javascript">
function showText() {
obj = document.getElementById("mydiv");
obj.style.display == "block" ? obj.style.display = "none" : obj.style.display = "block";
}
</script>
</head>

<body>
<a href="#" onmouseover="showText();" onmouseout="showText();">Show</a>
<div id="mydiv" style="display:none;">This is the block of text to show/hide onmouseover.</div>