The applet includes numerous parameters to customise it's appearance. The clock can be customised in a number of ways including:
Choose your own digits by replacing the digits.gif file with your own. Visit http://www.digitmania.com/ for an excellent collection of digits.
Show the Date, time and your own message in any font, size and color. Customise the format of the date and time.
Include a background image and a 3D border.
Make the time and date accurate (hence independant of local computer settings) by synchronising it with a server (include the serverfile parameter to do this).
Show the time in any country/city by using the GMTOffset parameter.
Use Javascript / VBScript to dynamically changes the appearance of the clock as in the Java Clock Pro. See this example for details.
| Parameter | Description |
| GMTOffset | Timezone for the time display. Leave out '+' sign for positive offsets. Set value to 'user' to display time in User's timezone. |
| HalfHourOffset | Set to "yes" if timezone requires an extra half hour offset. |
| ImageURL | Directory in which to find the strip.gif and bgImage file. Must be a full URL ending with a '/'. |
| BorderLightColor | Color of Light side of Border in 6 digit Hex |
| BorderDarkColor | Color of Light side of Border in 6 digit Hex |
| BorderWidth | Width of the Border. Default value=4 |
| BorderStyle | Style of the border. 1=inset/outset, 2=button, 3=step. Default value=1 |
| Bgcolor | Background Color in 6 digit Hex |
| Showampm | Set value to "yes" if clock should show ampm. |
| HideSeconds | Set value to "yes" if clock should not show seconds. |
| HideColon | Set value to "yes" if clock should not show the time colon. |
| UseTextTime | Set value to "yes" if clock should show time in Text. |
| TimeFontSize | Size of the font showing the time. |
| TimeFont | Font of the text showing the time. |
| TimeFontColor | Color of the font showing the time in 6 digit Hex |
| TimeFontStyle | Style of the font showing the time: "b" for bold, "i" for italic, "bi" for both. |
| TimeYPos | Y Position in pixels of the text showing the time. |
| ShowDate | Set value to "yes" if date is to be shown. |
| DateFontSize | Size of the font showing the date. |
| DateFont | Font of the text showing the date. |
| DateFontColor | Color of the font showing the date in 6 digit Hex |
| DateFontStyle | Style of the font showing the date: "b" for bold, "i" for italic, "bi" for both. |
| DateYPos | Y Position in pixels of the text showing the date. |
| WeekDayFormat | Format of the weekday. Values: 0-3= Number of letters shown. 4=Full text. Default value = 0. |
| MonthFormat | Format of Month. Value: 0=Show number, 1=Full text, 3=three letters. -1=American Format. |
| YearFormat | No of digits to show for Year, values 2 or 4. Default value=2. |
| Message | Text of any custom message to be displayed on the clock. |
| MsgFontSize | Size of the font showing the message. |
| MsgFont | Font of the text showing the message. |
| MsgFontColor | Color of the font showing the message in 6 digit Hex |
| MsgFontStyle | Style of the font showing the message: "b" for bold, "i" for italic, "bi" for both. |
| MsgYPos | Y Position in pixels of the text showing the message if message is displayed on its own. |
| MsgLocation | Position of message. Values: 1=Before Date. 2=Before time. 3= On its own |
| OneLineDateTime | Set value to "yes" if date and time should be on one line. Time follows format of date. |
| BgImage | Image to be used for background. |
| BgStyle | Style used for painting background image. Value: 0=tile, 1=center, 2=stretch. Default value=0. |
| ServerFile | Set this parameter to the URL of a file on your server if you require a server generated time. |
| StatusMsg | Custom message to put in the Status area when mouse is rolled over applet. Copyright parameter below must be set to enable this. |
| Copyright | This must be set to "Copyright (c) 2000 Naeem Malik. All Rights Reserved." in order to set a custom status message using the StatusMsg parameter. Do not include the double-quotes. |
Customising the Digits
The digits can be customised by
replacing the digits.gif file with your own. Many websites exist where yyou can
find a large collection of digits. One of the best websites is http://www.digitmania.com/ .
The image below shows the digits.gif file. All digits must be in the order
shown. The optional colon ':' must follow the '0'. The optional 'am' and 'pm'
must follow the colon. The gif file should contain a comment specifying the
width of each image. The comment for the example gif is shown below. The first
number is the total number of images in the gif file. Then follows the point in
pixels of the beginning of the first digit. The rest of the numbers are the
points in pixels of the end of each digit. Each number is seperated by a
colon.
Most specialist gif imaging software allow you to add comments to
them. If you are unable to add the comment through your software, try
downloading the following DOS utilities.
gifcm133.zip
- run the gc.exe program for help.
gifcmnt1.zip
- view the gifcmnt.txt file for help
gt21free.zip
- run the gifstamp.exe program for help
![]()
Gif file comment:
"13:0:21:42:64:85:107:128:149:171:191:213:222:250:271"
Parameters with Colors
All colors are specified in 6
digit Hexadecimal numbers. The format of the colors are: rrggbb where rr is the
red component, gg is the green component and bb is the blue component. For
example, the color value FF0000 is red because the red number is set to its
highest value, FF (255 in the decimal, or base 10, system). Green and blue are
set to zero. Similarly, 00FF00 is green and 0000FF is blue.
Scripting the DJClock with JavaScript
Many aspects of the
DJClock can be changed on the fly with JavaScript/VBScript. See this
example for details.
Downloading the DJClock
The DJClock is available free for
non-commercial sites and can be downloaded from the link below. For commercial
sites, the cost of the applet is US$20 per website. Click here to order the DJClock and then
download from the link below. Users who order the DJClock are entitled to
free technical support by email. Please use the email address below for
support.
Click Here to Download the DJClock.
Please email Questions, comments and suggestions to naeem.malik@virgin.net
If you require a customisable analogue clock, visit the Java Clock website.
Copyright © Naeem Malik 2001. All Rights
Reserved.
Software is provided "AS IS," without a warranty of any
kind.
NAEEM MALIK MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE
SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE.