Hi,
For some reason my onclick/off click pop up window is see through and the text underneath can still be viewed, which makes reading the popup difficult. Can anyone helpP This is my javascript
:
- <script language="Javascript">
-
function ShowPop(id)
-
{
-
document.getElementById(id).style.visibility = "visible";
-
}
-
function HidePop(id)
-
{
-
document.getElementById(id).style.visibility = "hidden";
-
}
-
</script>
And my HTML:
- <span style="position:relative;">
-
<span id="termName" class="popup">
-
<p>Blah
-
<p>Level: 1
-
<p>Points: 40>
-
</span><a href="javascript:void(0);" onMouseover="ShowPop('termName');" onMouseout="HidePop('termName');">Blah</a></span>
And the CSS
- .popup
-
{
-
position:absolute; left:10; top:30; width:390; height:220;
-
-
border-style:solid;
-
border-width:0;
-
border-color:white;
-
background-image: url(images/usercard.gif);
-
padding:5px;
-
color:black;
-
visibility:hidden;
-
z-index:2;
-
}
Thanks in advance
Hannah