"Dedicated to the Total production of you world wide web site".




A Digital Clock Java Applet

This is a simple digital clock written in Java. This clock can display time and date of any place in world. The time can be displayed in 12 hour or 24 hour format. The foreground and background colors of the digits can be changed. The clock can be wrapped with a ornamental frame as well.

This applet should be flicker free because it uses a double-buffering technique.

Examples


- It may take a moment time to transfer -

My Time: Sorry Your browser is not java capable Your time: Berlin:
New Zealand: New York: GMT:

What's new

  • Foreground and Background color can be changed.

    How to use the clock on your page

    If you want to use this applet in your web page, simply cut and paste the following to your home page html.
    
    <APPLET codebase="/icons/java/" code="Dgclock.class" width=100 height=30>
    <param name="TimeFormat" value="%I">
    <param name="TZ" value="GMT-0500">
    <param name="ShowDate" value="yes">
    <param name="ShowVersion" value="no">
    <param name="ShowFrame" value="no">
    <param name="fg" value="blue">
    <param name="bg" value="black">
    <b>You're Missin out! Your browser is not java capable!</b>
    </applet>
    


    Adjust the parameters as you like...

    To display the clock in 24 hour or military format remove the line:
        
        <param name="TimeFormat" value="%I">
        
    
    To display GMT, the param line will be:
        
        <param name="TZ" value="GMT+0000">
        
    
    To display date with time:
        
        <applet code="/icons/java/Dgclock.class" width=100 height=30>
        <param name="TZ" value="GMT-0500">
        <param name="ShowDate" value="yes">
        </applet>
        
    

    If you do not want to display the frame around the clock, use:

        
        <applet code="/icons/java/Dgclock.class" width=89 height=20>
        <param name="ShowFrame" value="no">
        
    

    If you move the mouse cursor on the clock while it is running, the version information is displayed on netscape's status area. If you do not want this, use:

        
        <param name="ShowVersion" value="no">
        
    
    If ShowVersion is "no", when the mouse pointer is moved over the clock, it will display the timezone offset from GMT in the netscape status area.

    To change the foreground and background color of the digits, the parameters fg and bg can be used respectively.

        
        <param name="fg" value="red">
        
    
    The value of fg and bg can be one of the following color names
        
        red,green,blue,cyan,
        magenta, yellow,orange,
        pink,black,white
        
    
    a 6 digit hex number like ff0000. Example:
        
        <param name="fg" value="yellow">
        <param name="bg" value="red">
    
        <param name="bg" value="d3b5b5">
        <param name="fg" value="000000">
    
        
    
    Enjoy!
    InterNett Services would like to thank Muhammad A Muquit for the use of this java script
    ma_muquit@fccc.edu
    If you still have questions, CONTACT US!





    Copyright © 1997 InterNeTT Services, All rights reserved.