WM Clock (Parameters)

[home] [code generator] [parameters]

Parameters description and code example for the applet WM Clock.


Applet dimensions:
width
Its the width of the applet window (must be a positive non zero value)
height
Its the height of the applet window (must be a positive non zero value)

WM Clock Parameters:
bgimg
Its the filename of the applet background image (must be a .jpg or .gif file)
fgimg
Its the filename of the applet foreground image (must be a .jpg or .gif file)
fgimgx Its the X position of the foreground image in the applet window
fgimgy Its the Y position of the foreground image in the applet window
clockzoom Its the stars number of the clock (must be a value between 1 and 1000)
clockx Its the X position of the clock in the applet window (must be a value between 0 and applet width)

clocky

Its the Y position of the clock in the applet window (must be a value between 0 and applet height)
clockdate If its 1 will be displayed the date, if its 0 the date will not be displayed
clockdatef Its the date format, if its 0 the date format will be MM-DD-YYYY, if its 1 the date format will be DD-MM-YYYY
clockdx Its the date X position in the applet window (must be a value between 0 and applet width)
clockdy Its the date Y position in the applet window (must be a value between 0 and applet height)
clocknick If its 1 circular nick will be displayed around the clock, if its 0 nothing will be displayed around the clock
clockfcol Its the clock hand fill color (RRGGBB hexadecimal values)
clockocol Its the clock hand outline color (RRGGBB hexadecimal values)
clockscol Its the clock seconds hand color (RRGGBB hexadecimal values)
clockccol Its the clock pivot fill color (RRGGBB hexadecimal values)
clockncol Its the clock nick color (RRGGBB hexadecimal values)
clockdcol Its the date text color (RRGGBB hexadecimal values)
clocktype If its 0 will be displayed a modern style clock, if its 1 will be displayed a classic style clock, if its 2 will be displayed a modern wireframe style clock, if its 3 will be displayed a classic wireframe style clock

General parameters:
scrolltext
Its the text that scroll in the applet
scrolltextdir Its the direction of the scroll text (must be 1 for left to right scroll, 0 for right to left scroll)
scrolltextsp Its the speed of the scroll text (must be a a value between 1 and 5)
scrolltextpos Its the Y position of the scroll text
scrolltextcol Its the color of the applet scroll text (RRGGBB hexadecimal values)
scrolltextfont Its the font of the scroll text (must be 0 for times, 1 for arial or 2 for courier)
scrolltexth Its the height of the scroll text characters (must be a positive non zero value)
bottomtext Its the bottom text in the applet window
bottomtextcol Its the color of the bottom text in the applet window (RRGGBB hexadecimal values)
bottomtextalign Its the position of the bottom text in the applet window (must be 0 left, 1 center or 2 right)
urltolink Its the address of the web page linked by the applet window (must begin with http://)
urltarget Its the target of the url in the urltolink parameter, if its _self the url will be show on the same window, if its _blank the url will be show in a new window, if its _parent the url will be show in the parent window, if its _top the url will be show in the top window, if its a custom value the url will be show in a frame with the custom value name (all the values are case sensitive)
After all the parameters you can insert a message for no java browser.
The parameter code must be the name of the main .class applet file, the codebase parameter must be"./".

Code example:
<applet code="WM_Clock.class" codebase="./" width="320" height="200">
   <param name="bgimg" value="image.gif">
   <param name="fgimg" value="wm.gif">
   <param name="fgimgx" value="2">
   <param name="fgimgy" value="2">
   <param name="clockzoom" value="134">
   <param name="clockx" value="159">
   <param name="clocky" value="100">
   <param name="clockdate" value="1">
   <param name="clockdatef" value="0">
   <param name="clockdx" value="130">
   <param name="clockdy" value="185">
   <param name="clocknick" value="0">
   <param name="clockfcol" value="FFFFFF">
   <param name="clockocol" value="555555">
   <param name="clockscol" value="FF0000">
   <param name="clockccol" value="888888">
   <param name="clockncol" value="000000">
   <param name="clockdcol" value="2266AA">
   <param name="clocktype" value="1">
   <param name="scrolltext" value="http://www.valarsoft.com">
   <param name="scrolltextdir" value="0">
   <param name="scrolltextsp" value="1">
   <param name="scrolltextpos" value="100">
   <param name="scrolltextcol" value="3377BB">
   <param name="scrolltextfont" value="0">
   <param name="scrolltexth" value="36">
   <param name="bottomtext" value="Webmatic Clock">
   <param name="bottomtextcol" value="FFFFFF">
   <param name="bottomtextalign" value="0">
   <param name="urltolink" value="http://www.valarsoft.com">
   <param name="urltarget" value="_blank">
   <B>Sorry, this browser don't support java</B>
</applet>

[home] [code generator] [parameters]