zWeatherFeed选项?

问题描述:

我用zWeatherFeed来显示天气,但是我无法找到任何改变选项的例子。zWeatherFeed选项?

<style> 
    .weatherItem{padding-left:200px;} 
    .odd{height:130px;} 
    .weatherCity{font-weight:bold;} 
    .weatherFeed{height: 130px; width: 100%;} 
</style> 
<script type="text/javascript"> 
    $(document).ready(function() { 
     $('#test').weatherfeed(['TUXX0015']); 
    }); 
</script> 
<div id="test"> 
</div> 

例如我也想第二天展示。有没有关于这个天气插件或任何替代天气插件的例子?我更喜欢使用zWeatherFeed,因为这个插件有很好的可视化。

谢谢。

zWeatherFeed插件目前无法显示第二天的预测(尽管提供了完整预测的链接)。可用的选项包括:

  • 单元 - 指定单元返回:“C” - 摄氏度,“F” - 华氏
  • 图像 - 如果为真,则显示在 背景的天气状况的图像。
  • highlow - 如果为true,则在每个项目中包含高值和低值。
  • 风 - 如果属实,包括每个 项目中的风向和强度。
  • 链接 - 如果为true,则包含指向Yahoo!完整预测的链接。 网站。
  • showerror - 如果为true,则显示消息,如果Feed不可用或 位置无效。
  • linktarget - 指定预测链接的目标('_blank', '_self','_top',framename)。
  • woeid - 如果为true,则使用Yahoo! WOEID indentifiers的位置

http://www.zazar.net/developers/jquery/zweatherfeed/

+0

感谢您的信息。 – 2012-09-05 11:53:19

<script type="text/javascript"> $(document).ready(function() { $('#weatherDiv').weatherfeed(['EIXX0048'], { forecast: true }); }); </script>

如果添加选项 预测:真 为功能的选项,它会显示在预测未来5天。一个完整的例子可以看到: http://www.zazar.net/developers/jquery/zweatherfeed/example_forecast.html