Blog (my web musings)

Find out what's interesting me, get tips, advice, and code gems that don't fit elsewhere.


Search Blog


Blog Entries

Blog: Log and block email spam IPs | 29th Aug 18
Read my latest entry in the blog; Using PHP to log spammer IPs in order to block them from further attacks on the mail server with .htaccess.


Blog: AJAX & PHP 5-Star Rating | 16th May 18
Read my latest entry in the blog; A 5-star rating system that saves votes to a text file, while AJAX displays average and total votes in real time.


Blog: Defer videos until scrolled-to | 21st Mar 18
Read my latest entry in the blog; Defer the loading of YouTube embeds until they're scrolled-to. Simple lazy-loading videos to make web pages load faster.


Blog: Keyboard tab-to menus | 1st Feb 18
Read my latest entry in the blog; Don't lose :focus! This script adds keyboard 'tab-to' support to CSS-only multi-level menus, for improved accessibility.


Blog: Defer imgs until scrolled-to | 7th Nov 17
Read my latest entry in the blog; Defer the loading of images until they're scrolled-to. Simple lazy-loading images to make web pages load faster.


Blog: Convert anchors to spans  | 21st Aug 17
Read my latest entry in the blog; Remove the rogue href generated by LinkAdv's id field in Moodle's Atto editor, and convert a elements to spans.


Blog: Element scrolled into viewport | 31st May 17
Read my latest entry in the blog; Add a class to a target-element when a trigger-element scrolls to an arbitrary distance from the top of the viewport.


Blog: Highlight Current Menu Button  | 21st Apr 17
Read my latest entry in the blog; Here's how to highlight the menu button for the currently viewed web page, with a small amount of JavaScript.


Blog: Form spambot observation  | 27th Mar 17
Read my latest entry in the blog; On pages with multiple forms, only the first form gets spammed. Can we use this as a simple anti-spam precaution?


Blog: Case against flipping pages  | 30th Jan 17
Read my latest entry in the blog; The case against online page flipping publications - the humble PDF and/or responsive web design, does it better.