The EU cookie law went into effect in the UK in May 2012. UK's implementing guidance requires web sites to: Inform site visitors when a site uses cookiesExplain what the non-essential cookies are and what they doObtain 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. Accept Cookies / Cookie Consent Bar Demo: http://fofwebdesign.co.uk/template/_...ie-consent.htm ...
Updated 08-21-2015 at 05:54 PM by Beverleyh
Here is a simple PHP script to change stylesheets or load in alternative content (conditional loading), with cookies to store user selection. The nice thing about a PHP-based solution over JavaScript content/CSS switchers, is that all the checking and switching is done on the server side, before the web page even finds it's way to the browser, so you don't get any flash of unstyled content. Plus, you can conditionally load HTML or external files (improve performance and save on load ...
Updated 12-20-2014 at 06:55 AM by Beverleyh
As announced in this document, it's no longer possible to disable related (YouTube) videos in iframe embeds using the rel parameter. This means that we can no longer use it to prevent suggested videos from appearing after an embedded video has come to an end. So what can we do if we don't want them? Read this.
I was inspired by a recent forum thread, to write a click counter that can count clicks/hits to any HTML element (links, buttons, images, etc.). Multiple counts are saved to one text file (no database needed) using PHP, while AJAX displays the increasing numbers in real time. No page refresh required! It's very light-weight because no dependencies or large JavaScript libraries are used - it's all plain JS. DEMO - AJAX & PHP Click-Counter with Flat File Storage ...
Updated 11-17-2015 at 12:23 PM by Beverleyh
One of the most annoying things on touch devices is the way that CSS hover activated menus stay open until another link is clicked. Well, this example fixes that; UPDATED! Responsive CSS3 Multi-Level, Drop-Down Menu (Earlier releases of the Drop-Down menu have been replaced with better support for tap-activated sub-menus on touchscreen - reverted to using the arrow labels and checkbox hack [like the Fly-Out version does] - they're there for mobile view so why not use ...
Updated 09-06-2014 at 08:56 AM by Beverleyh