|
Home / Free JavaScripts / Clocks, Calenders, And Timers / Here
![]() |
Cut & Paste Alarm clock
|
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!
Example:
| Current Time | |||
| Hour | Minute | am/pm |
| Message | ||
|
Play music? |
||
Directions
Step 1: Insert the below into the <HEAD> section of your page:
Step 2: Insert the below into the <BODY> section of your page:
This free script provided by
JavaScript
Kit
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.