现在的位置: 首页 > 综合 > 正文

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

2013年10月19日 ⁄ 综合 ⁄ 共 678字 ⁄ 字号 评论关闭
在“选项”->“配置”的“静态新闻/声明”中加入下面的语句:

<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>

抱歉!评论已关闭.