/    Sign up×
Community /Pin to ProfileBookmark

Need help on layers, close layer

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 ([url]http://www.sibiul.ro[/url]) 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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisMar 29.2003 — <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.
Copy linkTweet thisAlerts:
@ovisopaauthorMar 29.2003 — I'll try this and and modify it for my own needs, if i will have problems i'll be back ?

10x again

bye
×

Success!

Help @ovisopa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...