Accept Cookies / Cookie Consent Script (EU Cookie Law)
The EU cookie law went into effect in the UK in May 2012. UK's implementing guidance requires web sites to:
- Explain what the non-essential cookies are and what they do
- Obtain consent to store non-essential cookies on the visitor's device
For more information, please see this nice "Everything You Need to Know About the Cookie Law in Five Minutes" article.
The cookie consent bar uses CSS3 transitions to fade in from the bottom of the screen. 'OK' dismisses the bar and sets a cookie for 90 days to keep it hidden.
Works in all browsers, but IE8/9 users forego the fade effect.
Please view the source of this page for HTML markup, CSS and JS.
- Briefly explain what cookies are and why they might be used
- Advise people that they can change cookie settings in their browser
More demos and snippets
Did you find this useful? There are more demos and code snippets this way.