BLOG天气预报代码(转帖)

1、(转自:http://blog.coldpage.com/archives/2006/03/31/63.html)

天气预报代码

引用qq的~~

不过插在网页上还是不错滴

<IFRAME id=ifm2 align=left marginWidth=0 marginHeight=0 src="http://weather.qq.com/inc/ss292.htm" frameBorder=0 width=189 scrolling=no height=190></IFRAME>

此日志的引用地址

GB2312 http://blog.coldpage.com/trackback.php?id=63&encode=gb2312

UTF-8 http://blog.coldpage.com/trackback.php?id=63&encode=utf-8

2、(转自:http://www.joyepp.com/p/WeatherForecast.php)

blog美化-天气预报

6-20-2005-10:53 Mon  [歪人歪语]

     今天在招商银行的网站发现一个天气预报功能不错,顺手拿来做blog美化,为blog添加天气预报功能。

    功能演示地址: http://www.cmbchina.com/cmb2005web/cmbaspxbin/information/CmbWeatherForecast.aspx

    优点:

    1、招商银行的天气预报功能,除非地址失效,可访问性有保证

    2、稳定、加载速度快

    3、多城市、多天数快速查询

    默认的城市是北京,应该可以更改成其他城市或者不显示其他城市天气预报,不过似乎没有那个必要。

    使用方法:

    以clean模板的css定义为例,在index.htm文件中,新建两个标签,div class= side 和 div class=sidetitle

    在side标签中写“天气预报”

    作为标题 在sidetitle标签中插入一下代码:(<)iframe id="MainWeatherForecast" name="showWnd" marginWidth="0" marginHeight="0" src="http://www.cmbchina.com/cmb2005web/cmbaspxbin/information/CmbWeatherForecast.aspx" frameBorder="no" width="185" scrolling="no" height="147" style="WIDTH: 185px"></iframe>

     注意:为了本篇日志能正常显示,代码最前面iframe前被迫加了(),请删除<前后的()

Font Size: Large Middle Small

 PERMALLINK http://www.joyepp.com/p/WeatherForecast.php

 TRACKBACK http://www.joyepp.com/tb.php?tb_id=1119236020

(原文有点文字上的错误,作了点变动)