您的位置:首页 > 其它

[zt]为你的 Blog 添加“天气预报”功能。

2004-07-14 09:03 375 查看
在“选项”->“配置”的“静态新闻/声明”中加入下面的语句:

<center><iframe width=157 height=240 frameborder=0 scrolling=NO src='http://appnews.qq.com/cgi-bin/news_qq_search'></iframe></center>
就可以了。
如果想指定城市,则http://appnews.qq.com/cgi-bin/news_qq_search?city=xx即可,但在这里好像
不行,所以我用了网址转发,即用weather.LoveSnow.com 转向http://appnews.qq.com/cgi-bin/news_qq_search?city=上海
所以应该增加的内容改为
<center><iframe width=157 height=240 frameborder=0 scrolling=NO src="http://weather.lovesnow.com"></iframe> </center>

如果没有域名的朋友,可以做一个新页面,用页面开转发地址,里面加如下内容:<meta http-equiv="refresh" content="1;URL=http://appnews.qq.com/cgi-bin/news_qq_search?city=xx">
所以应该增加的内容改为
<center><iframe width=157 height=240 frameborder=0 scrolling=NO src="你的新页面地址"></iframe> </center>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: