网易博客天气预报代码
网易的代码屏蔽很讨厌,弄的我们很多代码用不成
比如很多天气预报的代码和新闻连接的代码是采用IFRAME的代码,被网易
屏蔽掉了,我找了几个网易可以使用的天气预报的代码给大家,都经过我的测试,绝对可用。
1、国内外大部分城市天气预报
2、客户端自动记录功能,访问一次即可记住上次访问的城市,在第二次访问您的blog时,用户不用主动去选择城市
比如你的朋友小王和小张,分别在广州和北京,那么他们登陆一次后第二次登陆会直接分别给他们显示广州和北京的天气情况。
而且他们在访问其他拥有这个天气预报插件的blog的时候,也会直接分别看到自己的城市-广州和北京
3、准备补充针对不同背景颜色提供不同代码的功能,目前完成了浅色/深色系够大部分需求了...
目前提供5种款式~ 1、浅色系 2、深色系 3、红色系 4、绿色系 5、兰色系
1-浅色系
<embed style="overflow:hidden;width:180px;height:200px" src="http://aw.awflasher.com/getweather.swf" width="190" height="200" type="application/x-shockwave-flash"></embed>
效果如下:
2-深色系
<embed style="overflow:hidden;width:180px;height:200px" src="http://aw.awflasher.com/getweatherb.swf" width="180" height="200" type="application/x-shockwave-flash"></embed>
效果如下:
3-红色系 -
<embed style="overflow:hidden;width:180px;height:200px" src="http://aw.awflasher.com/getweatherc.swf?awstyle=red" width="180" height="200" type="application/x-shockwave-flash"></embed>
效果如下:
4-绿色系
<embed style="overflow:hidden;width:180px;height:200px" src="http://aw.awflasher.com/getweatherc.swf?awstyle=green" width="180" height="200" type="application/x-shockwave-flash"></embed>
效果如下:
5-蓝色系
<embed style="overflow:hidden;width:180px;height:200px" src="http://aw.awflasher.com/getweatherc.swf?awstyle=blue" width="180" height="200" type="application/x-shockwave-flash"></embed>
效果如下:
------------------------------------------------------------------------------------------------------------------------------
★ 置入博客的方法:
1. 进入编辑→2. 排版→3. 模块→
4. 添加自定义html(显示)(出现在网页左下角)→
5. 复制下列语法後贴上→6. 新增→
7. 将模块移到想显示的位置→8. 再保存(右上角)→
9. 预览我的博客。→10. 就可以看到出现在你的博客上了!
评论