web design and hosting
features and pricing my account customer support about ICG Link, Inc. contact ICG Link, Inc.

Date Based Image or URL
   
 
 
Decide which part of the date you are trying to match. Valid choices are listed below:
Matchstring Keyword
day Sunday, Monday, ..., Friday, Saturday
month January, Febuary, ..., November, December
dfirst 0,1,...,8,9
dlast 0,1,...,8,9
mfirst 0,1,...,8,9
mlast 0,1,...,8,9
yfirst 0,1,...,8,9
ylast 0,1,...,8,9
Explanation:

Assume the date is 08/23/96 (mm/dd/yy). "dfirst" specifies the first number of the two-digit day, or 2. "mfirst" would be 0, "mlast" would be 8, "yfirst" would be 9, etc. "d" specifies day, "m" specifies month, "y" specifies year, "first" specifies the first number of the two-digit format, and "last" specifies the second digit of the two-digit format.

DATE BASED IMAGE
<IMG SRC="/cgi-bin/datepic.pl/matchstring/?datafilename">
Explanation:

Replace matchstring (in the code above) to one of the 8 matchstings found in the table above. Create a tab delimited data file to establish which images are to be shown and place it in www/data. The first line should always be "Default" to catch any moments when the date doesn't match any of the values.
Default http://www.icglink.com/images/blank.gif
0 http://www.icglink.com/images/0.gif
1 http://www.icglink.com/images/1.gif
2 http://www.icglink.com/images/2.gif
3 http://www.icglink.com/images/3.gif
4 http://www.icglink.com/images/4.gif
5 http://www.icglink.com/images/5.gif
6 http://www.icglink.com/images/6.gif
7 http://www.icglink.com/images/7.gif
8 http://www.icglink.com/images/8.gif
9 http://www.icglink.com/images/9.gif
Note: you can even use the above format to call a background image:
<BODY BACKGROUND="/cgi-bin/datepic.pl/matchstring/?datafilename">

FOR EXAMPLE

This image is generated by the script:
DATE BASED URL
<A HREF="/cgi-bin/dateurl.pl/matchstring/?datafilename">Link Name</A>
Explanation:

Replace matchstring (in the code above) to one of the 8 matchstings found in the table above. Create a tab delimited data file to establish which images are to be shown and place it in www/data. The first line should always be "Default" to catch any moments when the date doesn't match any of the values.
Default http://www.icglink.com/workweek.html
Saturday http://www.icglink.com/weekend.html
Sunday http://www.icglink.com/weekend.html
Friday http://www.icglink.com/TGIF.html
ICG Link, Inc. 7003 Chadwick Drive, Suite 111, Brentwood, TN 37027