Forum Moderators: coopster
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script>
function SetCookie(c_name,value,expiredays)
{
var exdate=new Date()
exdate.setDate(exdate.getDate()+expiredays)
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
}
</script>
<title></title>
</head>
<body>
<?php
if(!isset($_COOKIE["eucookie"]))
{ ?>
<div id="eucookielaw">
<a href="#" id="removecookie" onClick="SetCookie('eucookie','eucookie','100')">Accept this cookie</a>
</div>
<?php } ?>
<script>
$("#removecookie").click(function () {
$("#eucookielaw").remove();
});
</script>
</body>
</html>
document.cookie=c_name+ "=" +escape(value)+";path=/"+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
<?php
if(!isset($_COOKIE["eucookie"]))
{ ?>
Show this here
<?php } ?>