/CookieWarning

A simple warning script to allow sites to be compatabul with EU law on cookies

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

Cookiewarning is a small script designed to display a warning to users about the use of cookies on a site in order to comply with the EU privacy directive (see http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/the_guide/cookies.aspx ).

To use:
Please a link to the javascript file in the body of your HTML document as per the example test files (i.e. <script language="JavaScript" type="text/javascript" src="js/cookiewarning.js"></script> ) 

Versions:
Currently their are four versions of the javascript file, 
version 1 (cookiewarning.js) darkens the page and superimposes a white box displaying the warning.
Version 2 (cookiewarning2.js) inserts a red box with white text at the top of the users screen. 
Version 3 (cookiewarning3.js) should be inserted in the <head> section of a page (as opposed to the <Body> section as version 1 and 2 are) and displays the warning in a pop-up box.
Version 4 (cookiewarning4.js) inserts a white header at the top of the page.

All four versions permit the developer to set a flag which, if the users doesn't allow cookies, either sets a "do not track" cookie or redirects the user to a third party site (aka google.com).

I belive all are compatabul with the EU directive, however I'm not a lawer.

Contact information for Scott Herbert email scott.a.herbert@googlemail.com blog http://scott-herbert.com/blog/ Twitter https://twitter.com/Scott_Herbert

A big thanks to Dimitri Kourkoulis (https://twitter.com/dimitrikourk and http://dimitros.net/en/home) for his work in makeing Version 4.

If you would like to donate please do so via paypal at http://bit.ly/XHnk3a
Or Flattr https://flattr.com/donation/give/to/scott-herbert
Or buy me something from my amazon wish list at http://amzn.to/SRxBMj
Or send some bitcoins to 1AYRuymjWdcANbHzi3LUX6ymhxW8MvFwKk
Or Donate to wikipedia via http://bit.ly/UHU7Um

Public key 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)

mQENBFCrelsBCADTV5xr4vjJy8QpTZVoBTq2QPwcG/Is2v5sWz35ZaG86SL/bunn
6BhWD1owiUEPqdvX6BQgS8HfDDwCmC3A0HNiVYvzCPhHsacnN2MdURECAS3OGP6I
trT6GO2zY4IUtQ4wR8zyFnpIy7MdpbTJuNYRnItzBc9eUtM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