Showing
the pop-up when your visitor arrives at your home
page
Everybody
knows what a pop-up is. It is the most irritating
yet the most effective attention grabbing tool
used today.
So,
when should you actually Pop-up your pop-up -
a.
When someone is entering your page, or
b. When someone is exiting your page
(but going to another page on your site itself),
or
c. When someone is totally exiting your web site.
There
is no one particular method which is the most
effective, as each of the above can be used in
different
ways to differing effectiveness.
This
script will show you how to do an 'Entry-Popup'.
Before
that, let me quickly tell you why an entry-popup
on your
home page may not be such a good idea:
Entry-popups
(in JavaScript parlance, an onload() event)
will always slow down the loading of the main
page from
which they are popping up. So, an entry-popup
on your
home page will unnecessarily slow down the loading
of your
home page, and will unnecessarily increase the
chances
of someone finding it slow enough to click away
to another
site (even your competitor's site) even before
your
home page loads.
Cookie
Tracking
This
script makes use of cookie-tracking to make sure
that
the pop-up does not pop-up every single time your
visitor leaves
your home page. So, basically, what this means
is, that your
pop-up will be shown to your visitor only
once per visit (once per
browser session), thus avoiding showing him the
same pop-up
again and again which could really irritate your
visitor to such an
extent that they may never come back to your
site again, let alone
buy your product!
Try
a Demo:
Demo
not available
Part
I: JavaScript Code for the pop-up
Cut and paste the following code anywhere between
the
following two tags within your HTML code: <HEAD>
& </HEAD>
Function
variables:
Read the following code carefully:
//CODE
REMOVED
|