天气预报代码
2006-06-10 10:25
218 查看
第一种:
<iframe src="http://weather.265.com/weather.htm" width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第二种:
<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>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第三种:
<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"></ifreame>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第四种:
<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>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}" resized="true">
第五种:
<IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="http://weather.qq.com/24.htm"></IFRAME>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}" resized="true">
第六种:
<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.html" allowTransparency="true"></iframe>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
大家可根据自己的爱好,把代码插入要显示的位置即可。本站采用第一种,因为背景色和本站当前界面比较协调,而且简明。另外需要注意一下,以前很流行的一段代码(在Google上搜到的90%都是这一段),现在已经不能用了,特此写出来,以免大家浪费精力:
<iframe width="150" height="240" frameborder="0" scrolling="No" src='http://appnews.qq.com/cgi-bin/news_qq_search?city=xxx'></iframe>
其中的“xxx”是每个城市的代码:比如武汉的就是%CE%E4%BA%BA
下面是其他的一些城市的编码:
上海-%C9%CF%BA%A3
北京-%B1%B1%BE%A9
青岛-%C7%E0%B5%BA
济南-%BC%C3%C4%CF
武汉-%CE%E4%BA%BA
福州-%B8%A3%D6%DD
<iframe src="http://weather.265.com/weather.htm" width="160" height="54" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第二种:
<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>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第三种:
<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"></ifreame>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
第四种:
<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>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}" resized="true">
第五种:
<IFRAME ID='ifm1' WIDTH='405' HEIGHT='332' ALIGN='center' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC="http://weather.qq.com/24.htm"></IFRAME>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}" resized="true">
第六种:
<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.html" allowTransparency="true"></iframe>
[ 可以先修改再运行 ]
效果图:
300) {this.resized=true; this.width=300;}">
大家可根据自己的爱好,把代码插入要显示的位置即可。本站采用第一种,因为背景色和本站当前界面比较协调,而且简明。另外需要注意一下,以前很流行的一段代码(在Google上搜到的90%都是这一段),现在已经不能用了,特此写出来,以免大家浪费精力:
<iframe width="150" height="240" frameborder="0" scrolling="No" src='http://appnews.qq.com/cgi-bin/news_qq_search?city=xxx'></iframe>
其中的“xxx”是每个城市的代码:比如武汉的就是%CE%E4%BA%BA
下面是其他的一些城市的编码:
上海-%C9%CF%BA%A3
北京-%B1%B1%BE%A9
青岛-%C7%E0%B5%BA
济南-%BC%C3%C4%CF
武汉-%CE%E4%BA%BA
福州-%B8%A3%D6%DD
相关文章推荐
- .net天气预报代码调用大全
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 开源免费天气预报接口API以及全国所有地区代码!
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 侧边栏天气预报代码设置
- 开源免费的天气预报接口API以及全国所有地区代码(国家气象局提供)
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- JAVA调用新浪天气预报代码(返回xml格式)
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- web 的免费天气预报代码。
- 天气预报 获取九天系统时间的代码
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 开源免费天气预报接口API以及全国所在地所有地区代码(国家气象局提供)
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 天气预报接口API以及全国所有地区代码
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- 开源免费天气预报接口API以及全国所有地区代码!
- ios 开源免费天气预报接口API以及全国所有地区代码!!(国家气象局提供)
- iOS代码技巧之ASIHttpRequest类库的使用及Json解析(以解析中国天气网天气预报为例)