هذا بلوك لجلب الاخبار من بعض الصحف الالكترونية لاكن لللاسف الخبر مو كامل
كود PHP:
<head>
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAqwO0S03wyo4ecXMWfgl32xTKxgjD8U0twYkS6zQcQYSf-KPw5RQsNEQzTC-O1HWdON6FwOxp0RLMCA">
</script>
<script type="text/javascript" src="scripts/gfeedfetcher.js">
</script>
<style type="text/css">
.labelfield{ /*CSS for label field in general*/
color:#54C094;
font-size: 90%;
}
.datefield{ /*CSS for date field in general*/
color:#CC1130;
font-size: 90%;
}
#example3 a{ /*CSS specific to demo 3*/
color: #12639A;
text-decoration: none;
font-weight: bold;
}
#example3 p{ /*CSS specific to demo 3*/
margin-bottom: 2px;
}
code{ /*CSS for insructions*/
color: red;
}
</style>
<head/>
<script type="text/javascript">
var newsfeed=new gfeedfetcher("example3", "example3class", "_new")
newsfeed.addFeed("صحيفة الوئام", "http://www.alweeam.com/news/rss-action-feed-m-news-id-1-feed-rss20.xml") //Specify "label" plus URL to RSS feed
newsfeed.displayoptions("label datetime snippet ") //show the specified additional fields
newsfeed.setentrycontainer("p") //Display each entry as a paragraph
newsfeed.filterfeed(5, "date") //Show 5 entries, sort by date
newsfeed.init() //Always call this last
</script>