2
I have a floating div with a 'close' button, which makes Hidden / Visible.
<script language="JavaScript">
function controlaLayer(layerover)
{
if( document.getElementById(layerover).style.visibility == "hidden" )
{
document.getElementById(layerover).style.visibility = "visible";
} else {
document.getElementById(layerover).style.visibility = "hidden";
}
}
</script>
<div id="1">
<div id="2">
<div id="3">
<div id="layerover">
<a href="#" onmouseover="controlaLayer('layerover')"><b>X</b></a>
<img></img>
</div>
</div>
</div>
</div>
I would like this div to load only after 2 seconds the user enters the page. I read a little about setTimeout but saw that creates a loop and I open the div only once.
I’m a JS layman, I’m counting on you.