I have a popup window on my index page that is loading on page load. Is there a way to integrate a cookie so that it only appearswhen a certain cookie doesnt exist? This is the Javascript I am using for the popup window:
$(function(){
var overlay = $('<div id="overlay"></div>');
overlay.show();
overlay.appendTo(document.body);
$('.popup').show();
$('.close').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});
$('.x').click(function(){
$('.popup').hide();
overlay.appendTo(document.body).remove();
return false;
});
});
$(document).ready(function(){
$('.wrapper').hide().fadeIn(1000);
});
Thank you in advance!