Script

Numeric display

counter


Choose your own number and settings:

Number:
Leave this empty to get a random number.

Style:
                Random

Minimum number of digits:
Leave this empty or set it to zero to use the length of the number itself.


How to use:

This has an include file that does most of the work, so in your page, all you need is something like this:
<?rev
	include "includes/showNumber.irev"
	-- show the number 5648 in style 3 padded to 6 digits
	showNumber 5648, 3, 6
?>
and then you need the image files - one for each digit in each style.
The details are in the showNumber.irev file.

Notes:

  • I'm graphically challenged so the actual images are not great (especially set 2).
  • This now creates a single image to show all the digits. Thanks to Robin Miller from RunRev for installing ImageMagick and to Mark Smith for showing me how to use it.
  • Style #4 was created by terminal in response to my questions about image positioning. Thanks.

Include files:

includes/showNumber.irev