Ever
wonder how some people can get little CSS PopUp’s without opening an
annoying window? I’ll explain how. One of its advantages is that it’s
not blocked by blockers and you can place it wherever you like on your
page. Apart from the short Javascript file that you don’t even have to
look at, it’s quite easy to understand.
Please note that whenever
I speak about a blanket, I’m referring to the transparent film that
goes over the content to draw attention to the PopUp.
What this
CSS does is position and style the general elements. The blanket, as
discussed earlier, is the translucent color block placed over the
content to bring out the popUp. popUpDiv is the name of our popUp div
element. It’s important to know that both elements have their position
attributes set to absolute. This means they are positioned at certain
pixel measurements on your website relative to what object they’re in.
Click
Here To Download the CSSPopUp.js file. Now, the first thing you need to
do, is download the Javascript file and put it in a folder you can
remember. If you’re curious, open it up, I’ll give a brief overview of
what each function does. (Keep in mind I am by no means a Javascript
coder, it probably looks a little messy to some pros out there).
Ever wonder how some people can get little CSS PopUp’s without opening an annoying window? I’ll explain how. One of its advantages is that it’s not blocked by blockers and you can place it wherever you like on your page. Apart from the short Javascript file that you don’t even have to look at, it’s quite easy to understand.
Please note that whenever I speak about a blanket, I’m referring to the transparent film that goes over the content to draw attention to the PopUp.
What this CSS does is position and style the general elements. The blanket, as discussed earlier, is the translucent color block placed over the content to bring out the popUp. popUpDiv is the name of our popUp div element. It’s important to know that both elements have their position attributes set to absolute. This means they are positioned at certain pixel measurements on your website relative to what object they’re in.
CSS CODE
The Javascript File
Click Here To Download the CSSPopUp.js file. Now, the first thing you need to do, is download the Javascript file and put it in a folder you can remember. If you’re curious, open it up, I’ll give a brief overview of what each function does. (Keep in mind I am by no means a Javascript coder, it probably looks a little messy to some pros out there).
Javascript CODE