|
This script
is a Little Toy ( as on the top of the page ) that displays the date and time on your
website, using an image to show the day or the week. Download Here Free!
Configuration:
Create your images, naming them monday.gif tuesday.gif etc. If you use
jpg's you will have to change the image calls in the top section of the
script to .jpg instead of .gif.
The only other required items are,
#!/usr/local/bin/perl
Make sure you have the correct path to perl for your system.
$time_zone = "ET";
Your time zone of course.
If the time you wish to display differs from your servers localtime()
uncomment ( remove the # from before the variable) the appropriate choice
of the two below. If your time is two hours ahead of your servers, set
$more to read like so->
$more = '2';
And if it is less, use less. If your time is the same as your servers,
leave them commented out.
#$more = '2';
#$less ='2';
$images_dir = "/images/";
This is wherever you put your images. It can be a full url like so:
http://www.yourdomain.com/images/
Or a partial url like so:
/images/
Be sure to include the trailing slash.
That should about do it. You use SSI to call it, placing a tag like so in
your html page:
<!--#exec cgi="/cgi-bin/today_header.cgi" -->
Download Here Free!
|