Wednesday, February 3, 2010

Live news feeds on your web site (Local news at Sri Lanka)

Lanka News papers website http://www.lankanewspapers.com provides a simple and nice tool to publish news on your website. Add the following piece of code on your website to add this feature.
 <script language="javascript" src="http://www.lankanewspapers.com/news/RSS_Java.jsp">
</script>

<script language='JavaScript'>
SL_News_Display(
'10', // Number of headlines to show (Max 20)
'200', // Width of the news table
'font-family: helvetica, impact, sans-serif;font-size: 10pt;', // Font
'#FFFFFF', // Background color of news table
'1' // Border width
);
</script>


Reference: