3) We would like to remind you of some opportunities for contribution. I provided to you at no charge, and you have every right to redistribute the software. I depend on people willing to contribute their time and support to the project to ensure that my work remains free and available at no cost.
Congratulations, you’ve just downloaded the comTime.zip file, which contains a sample set of
files that will allow you to quickly set up your own Menu Bar on your server and web pages.
This process will detail the steps needed to install and use comTime on your web
server.
After downloading the comTime.zip file, the included files have to be extracted at
the location specified by the user on the server and have to respect the following hierarchy.
The comTime.zip file contains the following files:
comTime.htm (sample html file that will display the comTime component, open this file to see the resulting sample),
comTime.js (set of javascript functions that will build the comTime component. This file has to be placed into the comTime folder),
Sample set of images (these images have to be placed in the images folder).
If for some reason the comTime.zip file is damaged or you don’t have winzip or equivalent
installed on your computer, please copy the following contents to the
respective folders as described above.
Define a <FORM> tag in your webpage in which the comTime control will be held.
It is requested to define as many FORM tags as comTime controls needed in the
page. Call the function that will create the comTime control on your webpage
inside the FORM tags.
<Script language="javascript">
build_Timer("time1");
document.getElementById("time1").value="23:58:58"
;</script>
You can change the default value of the timer by changing the value property of the
object, like you would do for a classical textbox object. It is as simple as
this: document.getElementById("time1").value="23:58:58"; in the sample given
above.
Note that the function build_Timer has only 1
parameter:
Value of the time you want to display by default
You can also change the pictures used to represent to up and down arrows and use
your own, simply by copying your images over the one already placed in the
images folder. There are 3 images for each arrow representing the pressed, up
and over states. The original name has to be maintained unless you change the
code included in the comTime.js file.
Improve the component
Well, this
component is far from being perfect, and if you have the will to improve it,
nothing can prevent you to open the comTime.js file and dive in the code.