Click to See Complete Forum and Search --> : Need help on layers, close layer


ovisopa
03-29-2003, 08:05 AM
Hello ppl,

I wanna ask you to give me some help , i will explain below what I wanna do.

I want to make a popup banner for my page (http://www.sibiul.ro) but i don't want to use a new browser window for this popup, I want to make a layer which apears on the page after load complete and a button which can hide the layer, like a close button [X] .

Can somebody help me with this ?

10x

see ya

gil davis
03-29-2003, 08:48 AM
<body onload="document.getElementById('pop').style.visibility='visible'">
<div id="pop" style="position: absolute; visibility: hidden; border: 3pt lightgrey ridge">
Put whatever you want in here
<form>
<input type="button" value="X" onclick="document.getElementById('pop').style.visibility='hidden'">
</form>
</div>
</body>
You could add code to position the DIV anywhere you want in the window.

ovisopa
03-29-2003, 10:03 AM
I'll try this and and modify it for my own needs, if i will have problems i'll be back :)

10x again

bye