1. Home
  2. Computing & Technology
  3. JavaScript

Event Calendar

1. Introduction

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Javascript Customize

Do you like the idea of being able to display a calendar on your web page and then depending on the date that is selected on the calendar you then display the event associated with that date?

While such a script will function best if a server side lookup is done to obtain the event to display for a particular date, not all web site owners have access to be able to install server side processing on their site. This version of the event calendar therefore works entirely in the browser using an array to contain the events and their associated dates. To reduce the need for multiple entries that repeat each year the calendar also allows you to specify '0000' as the year for repeating entries. These repeating entries will not display where there is a specific entry for that date where the exact year is specified.

Here's what the event calendar looks like using my choice of colour scheme (there are also a number of options in the code to allow you to set your own.

If you want to add a copy of this event calendar to your site then the first thing you need to do is to get the Javascript that generates the calendar.

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript
  4. Script Library
  5. Date and Time Scripts
  6. Event Calendar

©2008 About.com, a part of The New York Times Company.

All rights reserved.