View RSS Feed

Recent Blogs Posts

  1. Accept Cookies / Cookie Consent Bar

    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 cookies
    • 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.

    Accept Cookies / Cookie Consent Bar Demo: http://fofwebdesign.co.uk/template/_...ie-consent.htm ...
  2. Show "new" content until visited (link tracking)

    Ever wanted to flag newly added content to individual visitors, and then remove the flag once they've read it? Here's how to do it using local storage (like cookies) to save tracked, internal links on your website.

    Demo: Tracked 'New' Links http://fofwebdesign.co.uk/template/_...g/new-content/

    Where you might use this script
    - to indicate new and unread blog entries
    - to highlight important notices on your home page
    - to track read chapters of ...
  3. PHP Stylesheet/Content Switcher with Save Cookie

    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 ...