RSS to Javascript
(and Atom to Javascript)
This free service allows you display any RSS and Atom feeds on your web site using Javascript. It couldn't be simpler: Just fill in the following form and press Get Javascript. The feeds can then be styled however you choose using CSS.
Styling the feed
The HTML generated by the Javascript code will look like the following:
<div class="rss2js-container">
<div class="rss2js-feedinfo">
<div class="rss2js-title">Computer News</div>
<div class="rss2js-description">News about computers and technology</div>
</div> <!-- End rss2js-feedinfo -->
<div class="rss2js-items">
<div class="rss2js-item">
<div class="rss2js-itemtitle">Computer powered by Soylent Green</div>
<div class="rss2js-itemdate">September 14, 2025 15:16:46</div>
<div class="rss2js-itemcontent">
The World Government Research Corporation today announced the creation of a computer that
runs entirely on Soylent Green. With widespread adoption, such a computer could help to
relieve energy shortages.
</div>
</div>
<div class="rss2js-item">
<div class="rss2js-itemtitle">Fax machine wins Olympic gold</div>
<div class="rss2js-itemdate">September 13, 2025 15:16:46</div>
<div class="rss2js-itemcontent">
A SkyNet Systems model Ta06 fax machine won the 300m Data Transfer today at the Olympics in New Japan.
</div>
</div>
.
.
.
</div> <!-- End rss2js-items -->
</div> <!--End rss2js-container -->
You can use the following css classes to style the HTML:
- rss2js-container
- rss2js-feedinfo
- rss2js-title
- rss2js-description
- rss2js-items
- rss2js-item
- rss2js-itemtitle
- rss2js-itemdate
- rss2js-itemcontent