Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cookie Bar by Corrosive

Discussion in 'Website Coding & Programming Forum:' started by Corrosive, May 29, 2012.


Do you think this solution works for compliance on the EU Cookie Law?

  1. Yes

    2 vote(s)
  2. No

    0 vote(s)
  1. Corrosive

    Corrosive Moderator Staff Member

    Hi all

    As promised here is a link to my 'solution' for EU Cookie Law Compliance in a zip file;

    Unzip the file and check out the readme folder first to see the latest ICO interpretation of the rules and the readme.txt file explaining some background, rules for usage and the instructions for implementation.

    You are free to use this code wherever you like but I will stress that this is my interpretation of compliance and you should seek legal advice before relying on it to be compliant with the law. I accept no responsibility for any prosecution or fines resulting from a website not being fully compliant with the EU Cookie Law.

    You can see the cookie bar in action at; Web Design and Print Design in Bristol | Yoto Creative

    Please also vote on the poll as to whether you think this is a good enough solution and leave a comment if you think anything could be improved or find any browser issues (not IE6 though, life is just too short...)
  2. Stationery Direct

    Stationery Direct Administrator Staff Member

    I think that once navigated away from the landing page it should automatically be removed from then on (i.e customer agreement for cookie use) whether clicked or not, like the BBC site does.
    Corrosive likes this.
  3. Corrosive

    Corrosive Moderator Staff Member

    Yep, good call. Will look at the options.
  4. Corrosive

    Corrosive Moderator Staff Member

    OK, I've made a couple of updates and the message now only appears once. It will disappear on the page you are on when the link is clicked to 'hide' but it will also disappear if you navigate to another page on the site. I agree this is a lot less obtrusive. It also made me consider another issue. That is that the javascript is actioned as the page is loading so we were getting 'flashes' of the bar on pages as they loaded, even if the option to hide was selected. I sorted this by setting the style of the containing #cookie-bar div to display: none; and then showing it if the cookie was not present. This means the default is set to not display the cookie bar message unless the javascript says it needs to. The link is the same above but, if you have already tried this, you might want to update your script and css files.

    Check it out on a 'slower' site at;
  5. Stationery Direct

    Stationery Direct Administrator Staff Member

    Nice mate, I was getting the bar flashing too which now seems to be sorted, that is a really nice fix to what is a really stupid law, will be putting it on my sites shortly.

    Thanks again
  6. Edge

    Edge Active Member

    Why did the cookie cry?

    Because his mummy was a wafer so long..

    Last edited: Jun 21, 2012

Share This Page