Pop-up Windows, are those small windows that 'pop-up' above the main page the visitor to a site is viewing. "Entertainment" sites have long used pop-ups to increase sales, and often drown visitors in a never ending stream of them - every time you close one pop-up another appears!
Whilst this kind of usage is overkill and definitely to be avoided, many other sites can use pop-ups to their advantage. One of the best uses of a pop-up window is eliciting subscriptions for a site's newsletter or ezine. Here a simple subscription form pops up in a small window, often automatically as the surfer enters the main page. You could also have the window pop up when the visitor leaves your site, though this requires a little more code to be added to your page.
Automatic pop-up windows can be used for many other purposes too. You might have a window pop up to display a special offer you are running, or to highlight any information you want to be sure the surfer will notice. You can use a pop-up to display an interactive survey or quiz. You may wish to use one to entice visitors to recommend the site to a friend, or vote for it in a top sites poll. The applications are limited only by your imagination.
Pop-ups can also be used to improve visitor experience on your site, by providing additional information in an easily accessible format, which can be dismissed with a click of the mouse, leaving the main page visible throughout. A common example of this application are 'Help' windows, opened by clicking on a link or button. I choose to use pop-up windows for this section because most of the pages in it are fairly short isolated topics, or contain a single application. Using a pop-up means that the information loads quickly and can be reached without leaving the section index, making it quicker for visitors to 'check out' a page.
If you want to use pop-ups on your site, but aren't good with technical things and code, this Advanced PopUp Generator Software is the best solution for you. With this neat tool, even a beginner can create any kind of pop-up or pop-under at the click of a button.
Place the following script between the <HEAD> and </HEAD> tags:
<script>
function popup(Site)
{
window.open(Site, '',
'toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=yes,width=275,
height=200')
}
</script>
And add the following into your <BODY> tag:
onLoad="popup('URL of pop-up page here')"
Your <BODY> tag should then look something like this:
<BODY bgcolor="#ffffff" text="#000000" link="#3300ff" alink="#ffff00" vlink="#3399cc" onLoad="popup('http://www.nowsell.com/subscribe.html')">
Note: you can change the attributes 'toolbar', 'statusbar', etc., to on or off as you prefer (or omit them), and set the width/height variables to the size you require.
Place the following script between the <HEAD> and </HEAD> tags:
<script>
var exit=true;
function exitwindow()
{
var url = 'URL of page to open goes here';
var win = 'toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=250,height=300';
if (exit)
open(url,'windowname',win); }
</script>
And add the following into your <BODY> tag:
onUnload="exitwindow()"
Your <BODY> tag should then look something like this:
<BODY bgcolor="#ffffff" text="#000000" link="#3300ff" alink="#ffff00" vlink="#3399cc" onUnload="exitwindow()">
And add the following into all internal links where you DO NOT want the new window to open:
onClick="exit=false"
e.g.
<A href="http://www.nowsell.com/subscribe.html" onClick="exit=false">Click here</A>
Use the following code:
<FORM>
<input type='button' value='close window' onClick='window.close();'>
</FORM>
|