Live Headline Feed for Your Web Site
You can add a listing of the most recent Energy Priorities headlines for your site, and it will be updated automatically. Just insert one line of Javascript and one line for the stylesheet. We show you how, step by step, and provide code samples. Tailor the appearance of the headlines to match your site design.
To add a live feed of Energy Priorities article headlines to your web site, follow these steps. Download ep-feed.zip which includes a code example, as well, so View Source of ep-feed.htm to see how we've done it there.
- Choose where the headlines will appear on your web page. The contents of the live feed are not structured, so you retain control of your design. In this example, we created a yellow right-hand column in the page table.
- In the code of your page, wherever you want the headlines to appear, add the following line:
<script src="http://energypriorities.com/ep-feed.js" language="JavaScript"></script> - In the HEAD of your page (somewhere between the <head> and </head> tags at the top of the page) add the following line:
<link href="http://energypriorities.com/ep-feed.css" rel="stylesheet" type="text/css"> - Post your page on your web server and test it.
Customize the appearance with CSS
To customize the appearance of the live feed, download the ep-feed.css file and
edit it. Store it on your web server and change the stylesheet link tag to point
to your css file instead of ours. Your link tag might look like this:
We welcome suggestions for enhancements to the live feed feature. Contact us.
Terms and conditions
By using Energy Priorities content on a web site you agree to these terms and conditions:
Energy Priorites headlines and excerpts ("Content") are provided gratis, for information purposes only. In your use of Content, you shall refrain from actions that defame or damage the goodwill of Energy Priorities, its owners, or its staff. You may use Content and related source code only so long as your permission for such use has not been cancelled or revoked by Energy Priorities. Under no circumstances whatsoever shall Energy Priorities, its owners, or its staff be held liable for damages that may arise out of your use of Content or related source code. The live feed feature and permission to use Content may be terminated at the sole discretion of Energy Priorities at any time without notice.
