Guest

Flayrah RSS widget sample

By: a guest on May 11th, 2010  |  syntax: HTML  |  size: 1.19 KB  |  hits: 331  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. <!--
  2.  // The Following div element will end up holding the actual feed control.
  3.  // You can place this anywhere on your page.
  4.  -->
  5.   <div id="feed-control">
  6.     <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
  7.   </div>
  8.  
  9.   <!-- Google Ajax Api
  10.  -->
  11.   <script src="http://www.google.com/jsapi?key=notsupplied-wizard"
  12.    type="text/javascript"></script>
  13.  
  14.   <!-- Dynamic Feed Control and Stylesheet -->
  15.   <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
  16.    type="text/javascript"></script>
  17.   <style type="text/css">
  18.     @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
  19.   </style>
  20.  
  21.   <script type="text/javascript">
  22.     function LoadDynamicFeedControl() {
  23.       var feeds = [
  24.         {title: 'Flayrah',
  25.          url: 'http://www.flayrah.com/rss.xml'
  26.         }];
  27.       var options = {
  28.         stacked : false,
  29.         horizontal : false,
  30.         title : ""
  31.       }
  32.  
  33.       new GFdynamicFeedControl(feeds, 'feed-control', options);
  34.     }
  35.     // Load the feeds API and set the onload callback.
  36.     google.load('feeds', '1');
  37.     google.setOnLoadCallback(LoadDynamicFeedControl);
  38.   </script>