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?
Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.
Need JavaScript or jQuery notification bar to comply with EU cookie law?
Tags:
Need, JavaScript, jQuery, notification, bar, comply, with, cookie, law
Splash screen
Download: https://www.cookiechoices.org/cookiechoices.zip
Make sure the patch to cookiechoices.js is correct!
Notification bar
Download: https://www.cookiechoices.org/cookiechoices.zip
More info: https://www.cookiechoices.org/
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/
Similar Topics:
- Google cookie?
- What are the different JavaScript types?
- JavaScript compressor?
- PHP set cookie?
- How to set a cookie with PHP code?
- How to get HTTP status from JavaScript
- How many of you open Google+ notification you get in your Inbox
- Analytics and web-browser with JavaScript disabled?
- Adsense: Does my website has to comply with EU cookie when monetized?
- Does Google crawl pages generated with jQuery and AJAX?
User(s) browsing this thread: 1 Guest(s)