免费获取天气预报代码

<iframe name=city_frame_zx src=http://weather.china.com.cn/city/57872_zx.html width=243 height=116 border=0 frameborder=0 framespacing=0 marginheight=0 marginwidth=0 scrolling=no></iframe>

实用:

根据IP地址显示当前城市的天气预报代码 http://www.tianqi121.com/main/current_city.html

 

 

虑到平时会用到各种形式的天气显示形式,所以将平时在网上搜集的和自己整理的天气代码放在这里 供参考(由于大部分效果使用的是框架调用别人的代码,所以当别人的网站修改了代码的时候有的效果可 能显示不出来需要到相关网站查看修改):

 

 

名称265天气根据IP自动获得当地的天气情况
代码:<iframe src="http://weather.265.com/weather.htm" width="168" height="54" frameborder="no" border="0" marginwidth="0&quoat; marginheight="0" scrolling="no"></iframe>
效果


说明 :直接调用


名称QQ天气预报代码(一)
代码 :<iframe width="145" height="130" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://minisite.qq.com/Weather/news_new.h tml" allowTransparency="true"></iframe>
效果


说明 :这种适合于在网页的边栏插入。但一个缺点是,上面的4个城市是既定的,无法改成别的。插 入时,选好网页上的位置,直接将左栏的源代码全部拷进去就行了


名称QQ天气预报代码(二)
代码 :<IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
效果


说明 :这种 也适合于在网页的边栏插入。上面 的城市可以自定,比如厦门可改成别的。定制的方法是修改我代码中标红的数字,从1开始代表“香 港”开始,每个数字都代表一个城市,厦门是287,具体要哪个城市自己找一下罢。


名称新浪天气预报代码
代码 :<IFRAME ID='ifm2' WIDTH='260' HEIGHT='70' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' src="http://news.sina.com.cn/iframe/weather/130101.html"></iframe>
效果


说明 :这种适合于在网页的头栏插入。上面的城市可以自定,比如 石家庄可改成别的。


名称QQ天气预报代码(三)
代码 :<iframe width="469" height="218" border="0" align="center" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://appnews.qq.com/cgi-bin/news_weather_search?city=厦门" allowTransparency="true"></iframe>
效果


说明 :这种适合于在网页的正栏插入。上面的城市可以自定,比如厦门可改成别的。定制的方法是修改我代码中标红的 名称。这里比较简单,直接用汉字改就行了。比如是福州的,你就直接把“厦门”改成福州就行。


名称QQ天气预报代码(四)
代码 :<iframe width=160 height=230 frameborder=0 scrolling=NO src=http://appnews.qq.com/cgi-bin/news_qq_search?city=南昌>< /iframe>
效果


说明 :直接调用


名称QQ天气预报代码(五)
代码 :<iframe src="http://appnews.qq.com/cgi-bin/news_qq_search?city=南昌" frameborder="0" width="160" scrolling="no" height="230"></iframe>
效果


说明 :这种适合于在网页的边栏插入。上面的城市可以自定,比如南昌可改成别的。定制的方法是修改我代码中标红的名称。这里比较简单,直接用汉字改就行了。比如是福州的,你就直接把“厦门”改成福州就行

 

 

<iframe src="http://weather.17oh.com/weather.php" width="168" height="50" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

类似公告的天气预报

<iframe src="http://weather.17oh.com/weather.php?style=style1" width=200 height=24 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no noResize allowTransparency="true"></iframe>

 

<iframe src="http://weather.17oh.com/weather.php?style=style3" width=208 height=78 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no noResize allowTransparency="true"></iframe>

 

免费天气预报代码(网页版):http://5211.91.tc/tq.htm http://5211.91.tc/tq.htm

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值