SwarmSports Latest Sports Stories : the RSS feed code

Here is the code to put on your site if you want to have your own latest from the sports world news feed. This is in reference to the latest tiny feature just added to SwarmSports and info here in this blog post.

This code is freely available on Google. It’s all ready for a simple copy and paste:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Dynamic Feed Control</title>
<script src="//www.google.com/jsapi" type="text/javascript"></script>

<!– Dynamic Feed Control and Stylesheet –>
<script src=”//www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js”
type=”text/javascript”></script>
<style type=”text/css”>
@import url(“http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css”);
</style>

<script type=”text/javascript”>
/*
* How to use the Dynamic Feed Control, which has pretty UI already made for you!
* Don’t forget to check out the options:
* http://www.google.com/uds/solutions/dynamicfeed/reference.html
*/

google.load(‘feeds’, ’1′);

function OnLoad() {
var feeds = [
{
title: 'Latest News via SwarmSports',
url: 'http://feeds.feedburner.com/SwarmsportsFeed'
}
];

var options = {
stacked : true,
horizontal : false,
numResults : 20,
title : “SwarmSports: Ultimate Sports Headlines and Articles Search Engine Tool”
};

new GFdynamicFeedControl(feeds, ‘content’, options);
document.getElementById(‘content’).style.width = “510px”;
}

google.setOnLoadCallback(OnLoad);
</script>
</head>
<body style=”font-family: Arial, sans-serif;border: 0 none;”>
<div id=”content”>
<span style=”color:#000000;font-size:11px;margin:10px;padding:4px;”>Loading…</span>
</div>
</body>
</html>

 

Did you like this? Share it:
ViralRank: 1