Tech Support Topics

Sphynx Site CGI

Put a Digital Clock on Your Site

To put a digital clock on your site, include the following line of html where you want the clock to appear. Note that this clock will tell visitors your local time when they loaded your page. Use these lines for the clock:


   <p>When you arrived it was 
   <img src="/cgi-bin/Count.cgi?dd=D|timezone=GMT+1|frgb=0;139;116|tr=n&display=clock"  
      align=absmiddle></p>

Which looks like this on the page:

When you arrived it was



Variables You Control

Many parameters are the same here as in the graphical counter, "dd=D" sets the digit style and "frgb=0;139;116" sets the color of the frame. The thing to note here is you set the time zone with "timezone=GMT+1" "GMT" represents Greenwich Mean Time. Change the number to change the timezone, 1, 2, 3, etc. The clock only works with digit styles C and D, as the other styles don't have colon images.

As in the graphical hit counter display, each portion of the code after the question mark "?" controls a facet of clock appearance. Either an ampersand "&", or a vertical bar "|" separates each controlling statement. Feel free to experiment with this line to customize your digital clock.



Digit Style

The "dd=D" selects the style of digits to display. For the clock, stick with styles C and D.

Note: If you want a customized digit style that will work with the clock, counter and date display, you can have one for a one-time fee of $5 (added to your monthly bill) for us to add the digit style that you provide.



Frame Color

The "frgb=0;139;116" sets the color of the surrounding frame in rgb (red, green, blue) values. Or you can use hexadecimal numbers, ie: "frgb=ff0000" would be red. Don't use a "#" as you would setting text or background colors for an html page, just the hex number.



WWW Count 2.2

This digital clock and digital date display on Sphynx Sites is done using Muhammad A. Muquit's excellent cgi program WWWCount_2.2. This same program may be used to place a graphical hit counter on your pages. Although Muhammad's program is now in a more recent release that adds some features, we will stick with 2.2 for at least the remainder of 1996. For more information on customizing your counter, clock or date display, see our local copy of Muhammad's instructions for WWWCount_2.2.


HOME | SITE HOSTING | VIRTUAL SERVERS | PAGE DESIGN | FAQ | ORDER | TECH SUPPORT


Copyright © 1996, Sphynx Web Solutions. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders. Direct questions or comments to webmaster@sphynx.com.