| Home | About Us | Web Hosting Plans & Pricing | Satisfied Customers | Support & Help | Contact Us |
| Active-Sites Support | ||||
|
Text Clock Script How to Call This Script From Your Web Page Calling this script from a web page is fairly simple. You just use a standard Server Side Include call, such as: <!--#exec cgi="cgi-bin/textclock.pl"--> You can also customize the output format by editing the variables in the file 'textclock.pl' in your cgi-bin. There are up to nine variables in the textclock.pl script, however if you wish to receive the default display, you need not edit any of them. You can mix and match all of these options and see which kind of clock you like the best. You can get the clock to display only the day of the week, only the date, only the time, everything or make up your own combination! $Display_Week_Day = '1'; If this option is set to '1', the day of the week will be displayed; Possible Values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday. Setting this option to '0' will suppress the printing of the Day of the Week. $Display_Month = '1'; If this option is set to '1', the month will be printed. Possible values include: January, February, March, April, May, June, July, August, September, October, November and December. If this option is set to '0', the month will not be displayed. $Display_Month_Day = '1'; If this option is set to '1', the day of the month is displayed, containing a value from 01 - 31. Setting this to '0' will hide the Day of the Month. $Display_Year = '1'; If this option is set to '1', the four digit year is displayed, and it can be hidden by setting this to '0'. $Display_Time = '1'; If this option is set to '1', a twenty four hour clock is displayed. Otherwise, if it is set to '0', it is supressed. $Display_Time_Zone = '1'; Setting this to '1' allows users to your site to know what time zone the date is being displayed from. If it is set to '1', the script will determine if it is Daylight Savings or not. If so, it uses as the Time Zone to display. Otherwise it uses . $Standard_Time_Zone = 'EST'; $Daylight_Time_Zone = 'EDT'; These are the names of your Time Zones. The ones shown above represent Eastern Coast Time Zones. Other ones in the US include Central Time (CST/CDT), Mountain Time (MST/MDT) and Pacific Coast Time (PST/PDT). |
|||
| Copyright 2008 ® Active-Sites.com All Rights Reserved About Us | Terms Of Use Policy | Privacy Policy | Web Hosting Packages Contact Us |