In
addition to Habratopiku a month ago- practical
example of using the APIWe connect the "live broadcast" of Habrakhabr:<style type = "text / css">
#feedControl {
width: 400px;
margin: 20px;
}
</ style>
<script src = "
www.google.com/jsapi?key=internal-sample " type = "text / javascript"> </ script>
<script language = "Javascript" type = "text / javascript"> // <! [CDATA [
// Load the AJAX Feed API
google.load ("feeds", "1");
function OnLoad () {
// create feed control
var feedControl = new google.feeds.FeedControl ();
// we specify the link to the Habr's tape
feedControl.addFeed ("http://www.habrahabr.ru/rss/live/", "Habrahabr");
// specify how much to display Habratopikov on the page
feedControl.setNumEntries (8)
// Open the new window in a new window
feedControl.setLinkTarget (google.feeds.LINK_TARGET_BLANK);
feedControl.draw (document.getElementById ("feedControl"));
}
google.setOnLoadCallback (OnLoad);
//]]>
</ script>
<div id = "feedControl"> Loading Habratopikov ... </ div>