Archive for April 13, 2010

How to toggle the light on your website?

Light switch buttonToday I’d like to show you a way to switch the light off on your website.

What’s the point? Simple … Imagine you’d like to display photos, or a video, or if a box should pop up (for authentication purposes for instance), it’s better if your visitors focus on what you’re trying to draw their attention to. We will help them concentrate by darkening everything else in the background.

In order to do just that we will mainly use some CSS and a bit of javascript to toogle the light on/off.

(more…)

April 13, 2010 at 8:34 pm 4 comments


Calendar

April 2010
M T W T F S S
    Jun »
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category


Follow

Get every new post delivered to your Inbox.