at www.kartris.com/Knowledgebase/EU-cookie-law-and-compliance__k-39.aspx
slightly modified from that link, less intrusive.
easy to setup and just covers this pointless bit of legislation.
download the cookie zip, unzip to the root of your website
colour changes, font sizes etc etc etc can be made in CookieCompliance/stylesheet.css
edit skins/yourskin/customer/index.tpl
place directly under <head>
if you have search friendly urls enabled
<script type="text/javascript" src="/CookieCompliance/jquery.js"></script> <script type="text/javascript" src="/CookieCompliance/cookie-compliance.js"></script> <link type="text/css" href="/CookieCompliance/stylesheet.css" rel="stylesheet">
if you dont have search friendly urls enable
<script type="text/javascript" src="CookieCompliance/jquery.js"></script> <script type="text/javascript" src="CookieCompliance/cookie-compliance.js"> </script> <link type="text/css" href="CookieCompliance/stylesheet.css" rel="stylesheet">
place between </head> and <body>
change the link to your privacy policy / terms wherever you mention how you handle cookies etc
<div id="cookieMessageWrapper"> <div id="cookieMessage"> <a id="cookieClose" href="#">Accept</a> <p><strong>This site uses cookies. By continuing to use this site you agree to our use of cookies. To find out more, see our <a href="http://fudgefeast.co.uk/privacy-policy.html">privacy policy</strong></a> </div> </div>
this will give you the following popup
