怎可以在Windows 7 sidebar用jquery + rss?

simply don't work
....
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.         <title>Hong Kong Weather</title>
  5.        
  6.          
  7.         <script src="./jquery-1.8.3.js"></script>

  8.         <script src="./jquery.rss.js"></script>

  9.         <style type="text/css">
  10.                 body
  11.                 {                                                 
  12.                         font-family: verdana;
  13.                         font-weight: bold;
  14.                         font-size: 1em;                         
  15.                         background-color: white;
  16.                         color: brown;
  17.                         width: 120px;
  18.                         height: 70px;
  19.                        
  20.                        
  21.                 }
  22.                   
  23.                 span
  24.                 {
  25.                         background-color: white;
  26.                         color: brown;
  27.                 }
  28.         </style>
  29.                                 
  30.        
  31.         <script>       
  32.        
  33.                  function getWeather()
  34.                  {
  35.                         jQuery( function($) {
  36.                                 $("#rss-feeds").rss("http://rss.weather.gov.hk/rss/SeveralDaysWeatherForecast_uc.xml", {
  37.                                         entryTemplate: "{title} {body}",
  38.                                         tokens: {                                                                                            
  39.                                                 body: function(entry, tokens)
  40.                                                 {
  41.                                                         // tokenize the entry, for example, use a html parser
  42.                                                         // to break down the first <br></br>
  43.                                                         return entry.content;
  44.                                                 }
  45.                                         }                                                   
  46.                                 })
  47.                         })
  48.                  }
  49.                  
  50.                  // Get weather in every 30 minutes (1800 seconds * 1000) = 1800000 milliseconds
  51.                  setInterval("getWeather()", 1800000);

  52.         </script>


  53. </head>
  54.        
  55. <body onLoad="getWeather();">     
  56.         <span id="rss-feeds">                  
  57.         </span>                  
  58. </body>
  59. </html>
複製代碼