第一种:
<iframe src="http://weather.265.com/weather.htm" width="160" height="54"
frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
第二种:
<IFRAME ID='ifm2' WIDTH='189' HEIGHT='190' ALIGN='CENTER' MARGIN
WIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO'
SRC='http://weather.qq.com/inc/ss258.htm'></IFRAME>
第三种:
<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>
第四种:
<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>
第五种:
<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>
第六种:
<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>
大家可根据自己的爱好,把代码插入要显示的位置即可。本站采用第二种,虽然颜色不是太协调,但也凑合用吧,另外需要注意一下,以前很流行的一段代码(在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