/*********************************************** * gAjax RSS Feeds Displayer- (c) Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/
Example 3: (Three RSS feeds, 8 entries, “datetime” and “snippet” fields enabled, sort by date)
|
var newsfeed=new gfeedfetcher("example3", "example2class", "_new") newsfeed.addFeed("EAN", "http://deals.expediaaffiliate.com/Merchandizing/Hotel/RSS.ashx?cid=1&destinationId=&city=Hong Kong&stateProvince=&country=HK&ongoing=True&arrivalDate=&departureDate=&sortMethod=9&numberOfResults=25&minStarRating=1&amenities=¤cyCode=USD&locale=en_US&maskingDomain=&hotelIdList=&campaignName=Hong Kong deals") //Specify "label" plus URL to RSS feed newsfeed.displayoptions("") //show the specified additional fields newsfeed.setentrycontainer("li") //Display each entry as a paragraph newsfeed.filterfeed(8, "date") //Show 8 entries, sort by date newsfeed.init() //Always call this last |
var newsfeed=new gfeedfetcher("example4", "example2class", "_new") newsfeed.addFeed("EAN", "http://deals.expediaaffiliate.com/Merchandizing/Hotel/RSS.ashx?cid=1&destinationId=&city=Hong Kong&stateProvince=&country=HK&ongoing=True&arrivalDate=&departureDate=&sortMethod=9&numberOfResults=25&minStarRating=1&amenities=¤cyCode=USD&locale=en_US&maskingDomain=&hotelIdList=&campaignName=Hong Kong deals") //Specify "label" plus URL to RSS feed newsfeed.displayoptions("") //show the specified additional fields newsfeed.setentrycontainer("li") //Display each entry as a paragraph newsfeed.filterfeed(8, "date") //Show 8 entries, sort by date newsfeed.init() //Always call this last |



















