Oftentimes, webmasters have a desire to launch a popup when
someone comes to their website. However, they don't want it to pop up for that
same person each and every time the visitor arrives. Below is a nice little
script we found that will launch a popup and cookie the visitor to prevent it
from popping again for a predetermined length of time.
You can set the time variable in the script from 0 (pop up all the time) to
whatever number of days you would like. The cookie that is set will ensure that
the popup will act the way you set it. You will then have control over the
frequency at which any particular visitor sees the popup. This script could be
used if you have a mailing list and want to remind visitors to join, or you can
run an advertisement through it, or what have you. The possibilities are limited
only by your imagination.