Examples TOCexamples

Circle Back

$Date: 2004/08/10 18:12:46 $

 Table of contents

Introduction

This example requires :


This example will display a plain circle 360 degree as new shape of progress meter.

This example will run a circle (size:100x100) filled in reverse way.

There are 10 cells with :

Percent text info is right aligned on a 100 pixels width area, at right side of circle.

A cache system is used on lines 29 thru 37, to avoid built pictures a second times.

[Top]

 Render options

Here are options to build this progress bar string (percent text info):
font-size = 20
width     = 100
HTML_Progress_UI::setStringAttributes()
Here are options to build the progress bar cells :
width          = 100
height         = 100
spacing        = 0
inactive-color = navy
active-color   = red
HTML_Progress_UI::setCellAttributes()

[Top]

 Output

Screenshots

[Top]

 PHP source syntax highlight

Open source listing in a new window.

[Top]

 Play demo

Run the script.

[Top]