关键字:免费在线天气预报代码
https://20120807-1721/svn/earthshock2
sunyc sunyc
直接将下面的任何一个iframe拷贝到你界面要显示天气预报的地方既可以实现:
说明:高度和宽度根据自己的实际情况调整
[color=red]首选推荐该样式(预报准确,支持IE火狐、36等浏览器):[/color]
<IFRAME id="tianqi8_wetherinfo" name="tianqi8_wetherinfo" src="http://www.uuuu.cc/weather/code/freeweather8.htm?id=&fcolor=&imgurl=tb/tbb/tb1&bimg=&bcolor=&fsize=12" frameBorder=0 width=200 height=45 ALIGN=CENTER MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 SCROLLING=NO allowtransparency=true></IFRAME>
样式一(IE、火狐、360等都可以,但是IE上显示预报不准确):
<iframe src="http://www.7stk.com/1/6/sina.htm" frameborder="0" width="218" height="37" marginheight="0" marginwidth="0" scrolling="no"></iframe>
样式二(火狐下好用,IE下不显示):
<iframe src="http://www.7stk.com/1/6/weather.htm " width="268" height="50" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="265"></iframe>
样式三(火狐下好用,IE下不显示):
<iframe src="http://www.7stk.com/1/6/200903.htm" width="268" height="110" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I2" align="middle">
</iframe>
样式四(火狐下好用,IE下不显示):
<iframe src="http://www.7stk.com/1/6/200904.htm" width="380" height="70" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I2" align="middle">
</iframe>
样式五(火狐下好用,IE下不显示):
<iframe src="http://www.7stk.com/1/6/200905.htm" width="380" height="70" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I2" align="middle">
</iframe>
样式六(支持IE、火狐、360等,预报准确):
<iframe src="http://www.7stk.com/1/6/200906.htm" width="268" height="30" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" name="I2" align="middle">
</iframe>
样式七(三天天气预报,支持IE、火狐等):
<iframe width="420" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://www.tianqi.com/index.php?c=code&id=12&icon=1&num=5"></iframe>
样式八(支持城市选择,比较漂亮):
<iframe src="http://www1.xise.cn/1/tq2.htm" width="189" height="190" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
[color=red]三天天气预报[/color]
今天、明天、后天(自定义天气预报网址:http://www.uuuu.cc/weather/code/)
样式一(http://www.uuuu.cc/weather/code/forcast11.htm):
<IFRAME id="tianqi8_wetherinfo" name="tianqi8_wetherinfo" src="http://www.uuuu.cc/weather/code/freeweather11.htm?id=&fcolor=&imgurl=tb/tbs/tb1&bimg=&bcolor=d9ede3&fsize=" frameBorder=0 width=336 height=60 ALIGN=CENTER MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 SCROLLING=NO allowtransparency=true></IFRAME>
样式二(http://www.uuuu.cc/weather/code/forcast12.htm):
<IFRAME id="tianqi8_wetherinfo" name="tianqi8_wetherinfo" src="http://www.uuuu.cc/weather/code/freeweather12.htm?id=&fcolor=&imgurl=tb/tbb/tb1&bimg=&bcolor=&fsize=12" frameBorder=0 width=180 height=320 ALIGN=CENTER MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 SCROLLING=NO allowtransparency=true></IFRAME>
[img]https://mp.weixin.qq.com/cgi-bin/getqrcode?fakeid=3078036717&token=743343427&style=1[/img]