KDC KHMER DIGITAL CLOCK
number number number number number number number number

created by Thomas M. Meine, Germany
for BSDA, Kampong Cham, Cambodia

Visit Website at:  www.bsda-cambodia.org

Cross-Browser!
HTML validated!

image

ycorner ycorner

By using images to display the clock's numbers, everyone will see it in their browser,
even if no Khmer fonts have been installed.


You may use the Khmer Digital Clock freely on your own website.
Download and installation instructions below:


 

  • 1. Download the following images (11 images in total, Khmer numbers 0 - 9 and the colon). Put them into a folder called 'numbers'.

zero   one   two   three   four   five   six   seven   eight   nine   colon

or grab all images in a .zip file: khmernumbers.7z

All images are transparent .gif files and can therefore be used on all appropriate backgrounds!


  • 2. Download the following java file:

khmerclock.js


  • 3. Put the following code into the HEAD section of your web page (you have to copy to a text editor first):

<script type="text/javascript" language="JavaScript" src="khmerclock.js"></script>


  • 4. Put the following code into the BODY section of your web page where you want the clock to appear (you have to copy to a text editor first):

<img name="time0" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">
<img name="time1" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">
<img src="numbers/colon-kh.gif" width="6" height="20" border="0" alt="number">
<img name="time2" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">
<img name="time3" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">
<img src="numbers/colon-kh.gif" width="6" height="20" border="0" alt="number">
<img name="time4" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">
<img name="time5" src="numbers/0-kh.gif" width="20" height="20" border="0" alt="number">


Put everything - the folder 'numbers' containing your numbers and the colon and the khmerclock.js file - into the same folder as your web page.

You can also change height and width of the images in the above code to make the clock larger or smaller (the height of the numbers and the colon should preferably be of the same size). Everything will be adjusted automatically. The images have a size of 50x50 pixels for the numbers and 16x 50 for the colon. The clock on this page has been set to 20x20 pixels for the numbers and 6x20 pixels for the colon.


Disclaimer: All use of the Khmer Digital Clock at your own risk.

ycorner ycorner
xcorner www.bsda-cambodia.org xcorner