How to set options

Adding options to URL, you can change tiles' pattern, color, and so on.

Structures

Options are described as follows.

  1. Combine the option's name and value with "=". For example ...
    pattern=tong
    (This option makes tiles' pattern into tong-zi.)
  2. Add the upper description to the URL of IMG tag with "?". For example ...
    <img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?pattern=tong">
  3. When you need several options, connect each descriptions with "&". For example ...
    <img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?pattern=tong&color=b&back=blue">

NOTICE: Do not change line nor insert any space/tab during the description.

pattern

This option changes tiles' pattern.

NameValueResult
patternwanwan-zi (default)
tongtong-zi
suosuo-zi
randommix the patterns at random
arabicarabic numerals

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?pattern=tong">

When the description was omitted, "wan" is set as the default value.

color

This option changes tiles' color.

NameValueSampleResult
color aWhite Background, Color Foreground (default)
bWhite Background, Monochrome Foreground
cBlack Background, Color Foreground
dBlack Background, Monochrome Foreground

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?color=c">

When the description was omitted, "a" is set as the default value.

back

This option changes the tiles' two- or three-dimensional appearance. When tiles are three-dimensional, tiles' back color can be set also.

NameValueSampleResult
back flattwo-dimensional (default)
bluethree-dimensional, blue back
greenthree-dimensional, green back
yellowthree-dimensional, yellow back
graythree-dimensional, gray back

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?back=blue">

When the description was omitted, "flat" is set as the default value.

zero

This option changes the appearance of tiles which display zero.

NameValueSampleResult
zero framebai with a frame (default)
baibai without a frame

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?zero=bai">

When the description was omitted, "frame" is set as the default value.

figure

This option changes the number of figures. (The value must be 1 or more integer.)
When the figures of the counter exceeded the value, this option becomes invalid.

NameValueResult
figure n
(1 or more integer)
Set the number of figures into n

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?figure=8">

When the description was omitted, "1" is set as the default value.

blank

This option changes the appearance of tiles which display blank.
This is enabled only when the option "figure" is enabled.

NameValueResult
blankframebai with a frame (default)
dongdong
nannan
xixi
beibei
baibai without a frame
fafa
zhongzhong

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?figure=8&blank=fa">

When the description was omitted, "frame" is set as the default value.

red

This option changes the possibility of the red tiles' appearance.
In the probability of 1/n, a tile which displays 5 will become a red tile.

NameValueResult
red0never display red tiles (default)
n
(1 or more integer)
in the probability of 1/n, a tile which displays 5 will become a red tile

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?pattern=pin&red=100">

When the description was omitted, "0" is set as the default value.

wait

This option changes the counter's standby interbals. Set 0 or more integer.

NameValueResult
wait n
(0 or more integer)
set the counter's standby interbals into n second(s)

(ex.)
<img src="http://thor.prohosting.com/susanoo/cgi-bin/pai_cnt.pl?wait=10">

When the description was omitted, "0" is set as the default value.


Display Test ... Interactively confirm the application of these options.
Mah-jongg Tile Access Counter