計數器的使用方法

參數解說

參數 意義 default設定
display=X 指定要顯示什麼,X值可為:counter,clock或是date display=counter
tformat=X 設定時間格式,X值可為:12或24 tformat=12
dformat=X 設定日期格式,X之值可為MMDDYY之任意組合

如:dformat=ddmmyy, dformat=YYMMDD

dformat=MMDDYY
ft=X 設定邊框的粗細,X值若為0則無框,超過5以上會有立體的效果 ft=6
frgb=R;G;B 設定邊框的顏色,R,G,B值的範圍:0∼256 frgb=100;139;216

or frgb=648bd8

tr=B Transparency On/Off,B值可為:Y,N,T,F,1或0 tr=F

(No transparency)

dd=A Digital Directory,提供各種不同的數字型態,A值可為:A,B,C或D dd=A(綠色數字)
df=data_file 計數檔,data_file值可為檔名或random df=random

(顯示一個亂數值)

degrees=X 旋轉角度,X值可為:90,180,279及360 degrees=270 with rotate=Y
st=X 啟始值設定,X 值最小為 1 注意:本參數只有第一次

用時有效

rotate=B 是否旋轉,B值可為:Y,N,T,F,1或0 rotate=F (不旋轉)

 

計數器的類型

請改 dd 的參數 (歡迎同學提供計數器圖片)

Style A styleA designed by the author. D, H, M, S segment added by Andrew Taylor   (digits/A/strip.gif)
Style B styleB Borrowed from HTML-access counter.  (digits/B/strip.gif)
Style C styleC designed by benjamin@pop3.oro.net   (digits/C/strip.gif)
Style D styleD designed by the author  (digits/D/strip.gif)
Style E styleE designed by the author  (digits/E/strip.gif)
Style cd stylecd made by the author on SGI with GIMP running on Linux. D,H,M and S are needed for countdown option.   (digits/cd/strip.gif)
Style cdr stylecdr Contributed by Mike Casper.  (digits/cdr/strip.gif)
Style cdd stylecdd Contributed by Sebastian Hartman (digits/cdd/strip.gif)
Style bang stylebang Bangla digits. Made with GIMP by the author.  (digits/bang/strip.gif)

範例

使用注意事項

1. 所有的文字都要在同一行!

2. 請將 sample 改成你的學號(記得開頭加 s)

3. 設定啟始值的方法(第一次用時有效)

<img src="http://student.dali.tcc.edu.tw/Count.cgi?df=sample.dat&st=100">

無外框, 數位風格 A (default)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&ft=0">

數字風格 B 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=B">
數字風格 C 型,同時加上逗號
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=C&comma=T">
數字風格 D 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=3&df=sample.dat&dd=D">
數字風格 E 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=E">
數字風格 cd 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=cd">
數字風格 cdr 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=cdr">
數字風格 cdd 型
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&dd=cdd">
Bangla 數字
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=0&df=sample.dat&dd=bang&comma=T">
預設的外框,寬度 4
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&ft=4">
隱形的計數器
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&sh=F">

顯示計數器的版本
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=version">

西元 2000 年倒數計時(以伺服器的時間為準)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=countdown&ft=0&dd=cd&negate=T">

西元 2000 年倒數計時,但只以天數顯示
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=countdown&sdhms=F">

西元 2000 年倒數計時(格林威治標準時間)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=countdown&timezone=GMT+0000">

西元 2000 年倒數計時how the from date(sfd) below
prgb (pen RGB) can be used to change the sfd color
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?cdt=2000;1;1;0;0;0&sfd=T&prgb=0000ff&dd=cd&ft=2&frgb=000000">

倒數計時(以紐約時間,目標時間:西元2000年)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=countdown&dd=cdr&timezone=GMT-0500&sfd=T&ft=4">

倒數計時(目標日期 2004/7/1 AM 8:00)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?cdt=2004;7;1;8;0;0&sfd=T&dd=cdd&ft=2">

倒數計時(目標日期: 2000/7/1 8:00 AM)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?cdt=2000;7;1;8;0;0&sfd=T&dd=cd&ft=2&negate=T">

時間差(1999/7/16 10:00 PM 和 1999/7/17 10:00 AM)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?cdf=1999;7;16;22;0;0&cdt=1999;7;17;10;0;0">

倒數計時(目標時間:西元 2000 年,開始時間:1999/7/17)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?cdf=1999;7;17;0;0;0">

亂數顯示(注意:請省略 df 參數)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=0">

加上紅色外框(預設寬度)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&frgb=ff0000">

隱形計數器
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&sh=F">

直接設定數字並加上逗號
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?lit=94032048040320&comma=T&dd=D&ft=2">

外框顏色可以用十進位顏色代碼(此處為藍色)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=4&lit=0123456&frgb=0;0;255">

外框顏色可以用十六進位顏色代碼(此處為藍色)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=4&lit=0123456&frgb=0000ff">

外框顏色可以以名稱代替
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=4&lit=0123456&frgb=Gray">

改變計數器數字為預設的顏色
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?lit=1234567&chcolor=T">

改變計數器數字為黃色
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?lit=1234567&srgb=00ff00&prgb=ffff00">

顯示時間(12小時制)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=clock">

顯示時間(12小時制),時間前面不加 0
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=clock&pad=F">

顯示時間(24小時制) 
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=clock&tformat=24">

顯示格林威治時間
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=clock&timezone=GMT+0000">

顯示台北時間 (GMT+0800), 台灣
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=clock&timezone=GMT+0800">

顯示日期 (格式:MM-DD-YY)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=date&dd=cdr">

顯示日期 (格式:DD-MM-YY)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=date&dformat=ddmmyy">

顯示日期 (格式:DD-MM-YYYY)且西元年為四位數
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=date&fy=T&dd=cd&dformat=ddmmyyyy">

顯示日期 (格式:DD-MM-YY)且西元年為四位數(加上 fy=T)
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=date&fy=T&dd=cd&dformat=ddmmyy">

使計數器中的綠色變為透明且不加外框
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&trgb=00ff00">

使計數器的黑色變成透明
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?df=sample.dat&trgb=000000">

使計數器的黑色變為透明,並將綠色加上灰色的影子
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?srgb=00ff00&prgb=101010&df=sample.dat&trgb=000000">

顯示 Lenna 圖形且將計數器悄悄的增加 1
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?display=image&dd=D&image=lenna.gif&df=sample.dat&incr=T&frgb=8B6508&ft=20">

將圖形與計數器組合在一起,計數器放在圖形下方中央,並將計數器的白色背景設為透明
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?image=foo.gif&dd=E&comma=T&df=sample.dat&align=bottomcenter&tr=T&trgb=ffffff">

將圖形與計數器組合在一起,計數器放置圖形上方,並距離上方五點
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?image=yeehaw.gif&dd=A&df=sample.dat&comma=T&align=topcenter&offset=5&ft=4">

將圖形與計數器組合在一起,計數器放在圖形下方中央,並將計數器的黑色背景設為透明
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?image=peng.gif&dd=A&df=sample.dat&comma=T&align=bottomcenter&offset=40&trgb=000000&ft=0">

旋轉 270 度
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=0&df=sample.dat&rotate=T&dd=D">

旋轉 180 度
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=0&df=sample.dat&dd=D&degrees=180">

旋轉 90 度
<img src="http://student.dali.tcc.edu.tw/cgi-bin/Count.cgi?ft=0&df=sample.dat&degrees=90&dd=D&prgb=ffff00">