An Image Depending on the Date

View an image only between certain dates

Script by Chris Kelley

     This script displays different images between certain dates. It would be useful, for example, if your company has a logo on your site. But for Christmas you want your logo with a little snow and a Santa hat on it. Instead of changing the code by hand whenever you want to change your image, you can set it up to change automatically right from the start. Place the script in the body of your document where you want the image to appear. When you get the script you'll see where to put in the two images you want to rotate depending on the date.

Grab the Script

     Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.

Back to the Image Scripts