You can grab this widget for use on your own website. If you use the Javascript on my server, you must link back to Cyclelicious. You're also free to copy the Javascript to your own server and use it unencumbered, if you wish. Here's a handy 180px widget that you can copy into your blog our website. If you post this to something like Blogger.com and have auto linebreaks enabled (most people do), be careful that each of the two lines that begin "<script>" all remain one line! Don't worry about how this code bleeds way over there on this page -- it should cut and paste just fine.
<div style="font-family:Arial,Helvetica,sans-serif;background:darkblue;width:180px;margin:2px;padding:4px;border:solid black 1px;"> <h3 align="center" style="margin-top: 14px; font-size: 14px; color: white;">The US spent <span id="total" style="color:gray">0</span> this year on imported fossil fuels.</h3> <span style="font-size:8pt;color:white;">EIA 2006 data.</span><br /> <a style="font-size:10pt;margin:auto;color:white;" href="http://www.cyclelicio.us/2007/12/usa-energy-use-widget.html">Get this widget.</a> <a style="font-size:10pt;margin:auto;color:white;" href="http://www.cyclelicio.us/">Cyclelicious</a> </div>
<script language="JavaScript" src="http://www.cyclelicio.us/script/energy.js"> </script>
<script language="JavaScript"> startClock() </script>
Anything I can do to help? I love this widget. It's up at Bicycle Diaries, though I change the appearance format to fit my overall design theme.
ReplyDeleteI took a look at it and.... apparently it was never broken. I guess I looked at the numbers after the New Year, couldn't imagine they could already be in the billions and assumed it couldn't be right so I disabled the script.
ReplyDeleteBut if the United States is spending over a billion dollars a day on imported fossil fuels, then yeah, we should be in the 10 digits on the second day of the year.