As you might have noticed to be compliant with new EU law about cookies (oh those evil dreaded virus spreading cookies LOL). I have created a generic EU Cookie / Privacy JavaScript Object that can be added to any site in a global footer which makes the site comply with the EU's new law on website privacy and cookies.
The EU Cookie Compliance JavaScript can be downloaded from here and added to any site. The parameters at the top of the script that display the message and the wording for the buttons are all customisable and you can modify the code to pass in different variables as you see fit.
The script also handles browsers where the user has totally disabled cookies either through a toolbar like the Web Developer Toolbar or through the browser itself and if the user has done this the message won't even appear.
If the user decides they don't want to use cookies and make use of the site then they are taken away to another customisable URL (see the source code) otherwise they have a cookie set called "EUCookie" for 365 days and everytime they re-visit the site it rolls over for another 365 days unless they have cleared the cookie from their browser. This other URL could be a "cookie free" version of your site or another site altogether. I have defaulted it to blog.strictly-software.com for now.As most non techie people don't know what cookies are I have tried explaining in my message what cookies are and how they don't lead to viruses etc. Feel free to use the code on your own site (with credit of course) and change the message as you feel fit.
To get the code working on your site just add in a <script src="http://www.mysite.com/scripts/EUCookieCode.js" ><script> reference to the scripts location at the bottom of your site before the closing <body> tag and the code will run automatically as it's wrapped in a self calling function.
You can download the EU Cookie Privacy Compliance code here.




