Archive image

Archive for February, 2013

How to detect a touch device using JavaScript

A while back I had to make a navigation menu which played a sound when you moused over the various menu points.

The problem was, that this feature didn’t play nicely with touch devices, as they don’t really have a concept of hover.

What happened instead was that the sound would play when the user selected one of the menu points, but would get cut off as the new page loaded – eurgh!

Read more…

Sliding panels with jQuery

Sliding panels are cool! jQuery is cool! Who doesn’t love sliding panels and jQuery??

This tutorial aims to show you how to build a menu, where the various items respond to a user click by sliding a panel into view containing relevant content.

Here’s a demo of what we’ll end up with.

Read more…