To make this code work, place on.gif and off.gif into your images folder. If you copy/paste graphics, Add just the preload script in the HTML to your web page.