HOME SCRIPT ARCHIVE TUTORIALS SUBMIT A SCRIPT BOOK STORE
Free JavaScripts

HOME / DATE SCRIPTS / DYNAMICALLY DISPLAY TEXT ACCORDING TO DATE

BUG FIXED!


To keep visitors interested in your site it is necessary to keep it fresh. You can do this by changing the copy or images on your page. You can change them by hand, or use a script to do it automatically.

(If nothing is being displayed, then there is nothing in the date array. You can copy the code, plug in the dates, and it should work.)

This script will place a notice of upcoming events on your page. I used it to display a notice of special weekend events for the White Pines Roller Rink Website. At the end of every month I enter the next month's events into the array and we're good to go. Check out the working example there.

This code goes in between the HEAD tags on your web page:

This code goes in the BODY of your web page where you want your form to be displayed:


1