|
|
National Debt Clock Examples |
|
Here are examples of how you can customize the National Debt Clock.
With each example is a brief explanation of what has been modified to create the appearance.
|
|
|
Example 1: Modified Table and Colors
|
|
|
|
If you are familiar with HTML, you will notice in the code below that the clock is made out of a table with two rows. One holds the required link back to zFacts, the other row holds the JavaScript code that produces the clock. You can rearrange or reword these as you please.
|
|
|
Example 2: Horizontal Layout & Font Size
|
|
|
This code produces the wide layout shown above. It is great for headlines or page footers.
In this example, the font size for the debt value has been increased by using the zFontSize variable and the border has been removed with the style attribute in the table tag.
|
|
|
Example 3: Further Modifications
|
|
|
|
This Clock has been given modified background colors and the color of the Debt Value has been changed slightly with the zFontColor variable.
|
|
|
Variables
These variables only affect the formatting of the number displayed in the clock. They will not affect any words or titles elsewhere in the table. To modify those you must use css styles or font tags as shown in the previous examples.
zFontSize: The font size in pixels for the debt value. Default 14
zFontColor: The font color for the debt value. Must be a hex code or a valid color keyword. Default "red"
|
|
http://zfacts.com/p/800.html | 01/18/12 07:17 GMT Modified: Tue, 14 Sep 2010 05:30:11 GMT
|
|