Sean's Javascript tutorials, demos and examples
I've been playing with Javascript since my first website, and it's used extensively throughout this site. By way of Javascript examples, you can see a widget of famous writing quotes, chat to a virtual me, or play a game of Hangman or play one of several other Javascript games I've made.
In this part of my website, I share some tips and tricks for using Javascript to achieve various effects on your website.
For help taking your first steps with Javascript, see my book Web Design in Easy Steps.
If Goya had learned Javascript
It's a little known - and somewhat made-up - fact that the artist Goya was working on a Javascript rollover demonstration. Here, he shows you what he wanted to do with his painting 'La Maja Vestida' and gives you some advice on creating Javascript rollovers for your own site.
Free javascript advent calendar for your website
Help your visitors count down to Christmas with this free and easily customised javascript advent calendar for your website. Each door could hide videos, songs, games, books, or software. There are basic controls to stop people opening doors early.
The script includes instructions so you can customise the image, the layout of the doors and what's behind each one.
More javascript tutorials and free Javascripts
- Using Javascript to hide and reveal text and graphics - a tiny script that makes it easy to make stuff appear and disappear on the screen
- Javascript string compression and search and replace routines - cut filesizes with this tutorial for optimising your text string handling in Javascript.
- Daily Background changer - make your website's background change colour each day of the week with this mildly daft script
- Javascript delay / wait / pause script - want to set something to happen after a delay or want to pause the program? See this concise guide and naughty script.
- Javascript include file creator - takes the hard work out of making Javascript syndication files
- Download the Javascript Gamelib - this toolkit by Scott Porter makes it easier to write Javascript Games
- Javascript Smart Marketing Toolkit - make your site more responsive with these tools for managing cookies, reacting to times and dates and cycling banner adverts
- Syndication scripts - promote your website by syndicating its content to other sites. This tutorial shows how.
- Free navigation Javascripts - menus, keypress control and more using a dash of Javascript
What else would you like to see?
If there's a Javascript tutorial you're looking for, drop me a line to let me know and I'll see if I can add it here for you.




