Popup advert/offer on homepage

I'm a big fan of reveal because it's very lightweight.

I've not actually tested it, but I would do something simple like the following (using reveal and jquery cookies)..

Code:
// if cookie doesn't exist, fire the modal and set cookie
if ($.cookie('offer').length == 0){
  $('#offer').reveal();		
  $.cookie('offer', 'seen', { expires: 7 });
}
 
Last edited:
I'd seriously consider using cookies, as people tend to find persistent popups annoying.
At the very least, you could set a session cookie. That way, they won't see the popup again for the duration of their visit (ie: if they refresh the page, or go to another page and then back again), but will see it again if they return later on.
 
Back
Top Bottom