z Facts.com
 KNOW THE FACTS.  GET THE SOURCE.
About Printable
 
 
  Home
Info Sources
Free Stuff
Nat. Debt Clock
Examples ♦
Old Version
 
  Don’t Miss:
 
 National Debt Graph

US National Government Debt

A Social Security Crisis?

Iraq War Reasons

Hurricanes & Global Warming

Crude Oil Price

Gas Prices

Corn Ethanol
 

   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
The National Debt:
  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  
 
The Gross National Debt:
 
  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
National Debt Clock
  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"
 
 
 
poppy-s
poppy-s
poppy-s
poppy-s
poppy-s
 
 


http://zfacts.com/p/800.html | 01/18/12 07:17 GMT
Modified: Tue, 14 Sep 2010 05:30:11 GMT
  Bookmark and Share  
 
.