Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Need JavaScript or jQuery notification bar to comply with EU cookie law?

Ads
make money online
ivan Offline referral

Posts: 717
Joined: Jul 2013
Reputation: 6

#1
Senior Member
How can I show a notification bar at the bottom or top of the screen similar to what Google has notifying users of my web-site about cookies and they will have to accept or close the message in order to use the website?
invisibe_dude Offline referral

Posts: 825
Joined: May 2013
Reputation: 24

#2
Posting Freak
Splash screen
Download: https://www.cookiechoices.org/cookiechoices.zip

Code:
<script src="/cookiechoices.js"></script>
<script>
  document.addEventListener('DOMContentLoaded', function(event) {
    cookieChoices.showCookieConsentDialog('Your message for visitors here.',
        'close message', 'learn more', 'http://example.com');
  });
</script>

Make sure the patch to cookiechoices.js is correct!

Notification bar
Download: https://www.cookiechoices.org/cookiechoices.zip

Code:
<script>
  document.addEventListener('DOMContentLoaded', function(event) {
    cookieChoices.showCookieConsentBar('Your message for visitors here',
      'close message', 'learn more', 'http://example.com');
  });
</script>

More info: https://www.cookiechoices.org/



Google this topic


User(s) browsing this thread: 1 Guest(s)