javascripts
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Time & date > Popup calendar control script

 

Popup calendar control script

AUTHOR: Submitted by Bazillyo
TYPE: Freeware
BROWSERS: IE 4+, IE 6+, NS 4.75+, NS 6+

This is a DHTML popup calendar control. Features include configurable CSS colors and fonts, shows today's date, dropdown lists for month and configurable years, month by month scrolling buttons.


EXAMPLE



1) Insert this code in the <HEAD> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

2) Download this ZIP file with the spiffyCal.js and the spiffyCal.css files and unzip into the appropriate directory. The ZIP file also contains the images used in the popup calendar.

3) Insert this call in the <BODY> section where you want the popup calendar control to appear in the page.

then copy (CTRL-C) & paste (CTRL-V)

4) Insert the following HTML code right after the <BODY> tag:

then copy (CTRL-C) & paste (CTRL-V)

5) Define the path to the images in these lines of code in the spiffyCal.js file:

img_Del.src="calendar_files/btn_del_small_gif";
img_Close.src="calendar_files/btn_close_small_gif";

and a little bit further down inside the Function spiffyCalManager ():

this.DefBtnImgPath='calendar_files/';

6) Define the path to the cursor image in these lines of code (4 of them) in the spiffyCal.css file:

cursor: url(calendar_files/spiffycal.cur);


Don't forget to define the path to the script files in the <HEAD> section:

<link rel="stylesheet" type="text/css" href="calendar_files/spiffyCal.css">
<script language="JavaScript" src="calendar_files/spiffyCal.js"></script>


For more details on the popup calendar control script you can visit
Bazillyo's web site.


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.