How to make news feed to appear on blog or website?

You can make news from any website appear on your blog's or website's page or even as a blogger's widget anywhere you want.

Copy the script below and paste it before </head> tag of your website or the blog.
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script src="http://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");

#feedControl {
margin-top : 10px;
margin-left: auto;
margin-right: auto;
width : 440px;
font-size: 12px;
color: #9CADD0;
}
</style>
<script type="text/javascript">
function load() {
var feed ="http://feeds.bbci.co.uk/news/world/rss.xml";
new GFdynamicFeedControl(feed, "feedControl");

}
google.load("feeds", "1");
google.setOnLoadCallback(load);
</script>


Now save your template and copy and paste the script below in the place where you want the news to appear.

<div id="body">
<div id="feedControl">Loading...</div>
</div>

If you want to change the news feed from bbc to any other website then simple change the url http://feeds.bbci.co.uk/news/world/rss.xml to the desired news website's rss url.


If you need any other help let me know. Mail me:: tech3lper@gmail.com


2 comments:

  1. Thanks for sharing this great article! That is very interesting I love reading and I am always searching for informative information like this.

    Intrepid

    ReplyDelete

Gallery

About

Your one stop solution for various queries about anything and everything you can think of. Drop an email to me asking your question about anything. Email me at: tech3lper@gmail.com
Register your domain name before anyoneelse does
Advertise here
 Advertise here

Blog Archive

Designed By SBT