Hello friends,
I Already have an pop up window running on my website.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>ColorBox demo</title>
<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css" />
</head>
<body>
<h1>Hello, there!</h1>
<h2>This is some content</h2>
<p>The popup will open in five seconds</p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>
<script src="jquery.cookie.js"></script>
<script>
function openColorBox(){
$.colorbox({iframe:true, width:"80%", height:"80%", href: "http://www.sitepoint.com"});
}
if(!$.cookie("colorboxShown")){
openColorBox();
$.cookie('colorboxShown', true, { expires: 1, path: '/' });
}
</script>
</body>
</html>
This code is made by @James_Hibbard in This Thread.
I Have copied that code and putted it on my website , but i got complaints by my visitors to remove the popup window as it is loading everytime when the page loads.
Thats why i need an code :-
Popup window will only comes once in 24 hours for EACH VISITOR.
Thanks In advance.