Scripts | JavaScript Tutorials | JavaScript Reference | Applets | DHTML | Design | Freewarejava

spacer.gif (810 bytes)

Home / Free JavaScripts / Clocks, Calenders, And Timers / Here

JavaScript Kit

Cut & Paste Alarm clock

Credit: Sandeep / JavaScript Kit

Description: This is a JavaScript alarm clock that either alerts a message or plays a midi file when the specified time is reached. Very cool!

Current Time

Alarm Time
Hour Minute am/pm

Play music?


Step 1: Insert the below into the <HEAD> section of your page:

Step 2: Insert the below into the <BODY> section of your page:

Step 3: Finally, inside your BODY tag itself, add in the onLoad event handler as shown:

<body onLoad="sivamtime()">

You can specify any midi file to use as the alert (inside script of Step 1). To use the one played in our demo, download the following midi file, and upload to your site:

apollo13.mid (download by right clicking, and selecting "Save As").

Copyright 1997-2005 JavaScript Kit. NO PART may be reproduced without author's permission.

Hotels & Vacations | JavaScript & DHTML Menus | CSS Drive | Car Insurance Quotes
Java Online Casinos