Web Hosting Talk







View Full Version : Displaying Newsfeeds on my website


biomike
04-03-2008, 10:53 AM
I would like to add a newsfeed to my website i.e the health RSS of the daily mail

Please can you advise how to go about it and what html or script code i need.

Thanks

Michael

streetmedia
04-03-2008, 11:19 AM
check out some of these

http://dynamicdrive.com/dynamicindex18/index.html

biomike
04-04-2008, 04:50 AM
Thanks for your help. great link

Michael

biomike
04-04-2008, 10:30 AM
I have loaded the following script on to my website. when i view it firefox all ok. However when i display it in IE the content doesn't appear. Any suggestions.

/head
<script type="text/javascript" src="gfeedfetcher.js">

</script>

<style type="text/css">

.labelfield{ /*CSS for label field in general*/
color:brown;
font-size: 80%;
}

.datefield{ /*CSS for date field in general*/
color:gray;
font-size: 80%;
}



#example3 a{ /*CSS specific to demo 3*/
color: #D80101;
text-decoration: none;
font-weight: bold;
font-size: 100%;

}

#example3 p{ /*CSS specific to demo 3*/
margin-bottom: 2px;
font-size: 70%;
}

code{ /*CSS for insructions*/
color: red;
}

</style>
/head

body

<script type="text/javascript">
var newsfeed=new gfeedfetcher("example3", "example3class", "_new")
newsfeed.addFeed("DailyMail.com", "..........................................") //Specify "label" plus URL to RSS feed
newsfeed.displayoptions("snippet") //show the specified additional fields
newsfeed.setentrycontainer("p") //Display each entry as a paragraph
newsfeed.filterfeed(2, "date") //Show 2 entries, sort by date
newsfeed.init() //Always call this last

</script>
/body

sykosiko
04-04-2008, 11:29 AM
try searching for "rss 2 javascript" they have a good free utility

biomike
04-04-2008, 12:20 PM
all sorted

thanks

michael