RSS
热门关键字:

天气预报插件V1.0

来源: 作者: 时间:2006-10-24 Tag: 点击:

演示:http://www.up2sky.net/blog/user1/1/index.asp

下载:http://www.up2sky.net/plusdown/Weather_Plus_For_oBlog3.0.asp

**********  oBlog3.0天气预报插件V1.0  ***********
   程序名称:天气预报插件                      
   程序版本:1.0 正式版                        
   程序作者:南方椰岛 QQ:15076723             
   作者主页:http://www.up2sky.net/            
   作者邮箱:up2skynet@gmail.com               
             eddie@up2sky.net                  
   程序说明:本程序由【蓝色领域】工作室免费    
             提供,请勿用于商业用途!          
   @@@@请尊重作者劳动成果,勿删除版权说明@@@@ 
*******************************************

插件简介:
本插件采集weather.yahoo.com提供的天气预报资料,为oBlog3.0提供天气预报功能。

安装方法:
1、上传所有以“z_plus_weather”开头的文件到oblog3.0的目录下。
2、用“记事本”打开<oBlog3.0目录>\inc\Class_blog.asp文件,
  找到“ccode="<div id=""calendar"">"&ccode&"</div>"”(不含外侧中文引号),
  在其下增加如下代码:



    '----------天气插件_南方椰岛添加_Begin
  ccode=ccode&vbcrlf&"<div id=""weatherPanel"" style=""MIN-HEIGHT: 110px; WIDTH: 98%; HEIGHT: 110px"">"&vbcrlf
  ccode=ccode&"<div style=""PADDING-TOP: 45px"" align=""center""><img alt=""加载天气中"" src=""/blog/z_plus_WeatherLoading.gif"" border=""0"" /></div>"&vbcrlf
  ccode=ccode&"</div>"&vbcrlf
  ccode=ccode&"<script type=""text/javascript"">"&vbcrlf
  ccode=ccode&"    function AddWeatherJS(){"&vbcrlf
  ccode=ccode&"      var e;"&vbcrlf
  ccode=ccode&"      e=do***ent.createElement(""script"");"&vbcrlf
  ccode=ccode&"      e.type=""text/javascript"";"&vbcrlf
  ccode=ccode&"      e.language=""javascript"";"&vbcrlf
  ccode=ccode&"      e.src=""/blog/z_Plus_Weather.asp?id="&user_id&""";"&vbcrlf
  ccode=ccode&"      do***ent.getElementsByTagName(""head"")[0].appendChild(e);"&vbcrlf
  ccode=ccode&"   }"&vbcrlf
  ccode=ccode&"    window.setTimeout(""AddWeatherJS()"",1000)"&vbcrlf
  ccode=ccode&"</script>"&vbcrlf
    '----------天气插件_南方椰岛添加_End




3、登陆到oblog3.0的管理后台,重新生成所有用户的静态页面即可。

 

另:安装了“oBlog3.0移动博客(Wap)插件V1.0”(0.9版的请升级到1.0)的用户
  请将原先的const.asp文件备份,然后用wap目录里的Functions.asp和const.asp覆盖原文件。
  (须重新设置const.asp文件)


最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册