PC6下载站

分类分类

天气预报的小偷可以偷到全国24小时城市天气预报.

关注+2004-11-07作者:蓝点

++++++++++++++++ weather.htm +++++++++++++++

















全国24小时早间城市天气预报



Function bytes2BSTR(vIn)

    strReturn = ""

    For i = 1 To LenB(vIn)

        ThisCharCode = AscB(MidB(vIn,i,1))

        If ThisCharCode < &H80 Then

            strReturn = strReturn & Chr(ThisCharCode)

        Else

            NextCharCode = AscB(MidB(vIn,i+1,1))

            strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))

            i = i + 1

        End If

    Next

    bytes2BSTR = strReturn

End Function





self.onerror=null;

var isLoad = '
正在读取数据, 请稍候 ......
';

try{

var Http = new ActiveXObject("Microsoft.XMLHTTP"); //建立XMLHTTP对象

}

catch(e){alert("Wrong!使用本服务您必须使用IE5.0以上版本的浏览器");

}

function doit()

{if (Http.readystate!=4){return;}

Back=bytes2BSTR(Http.responseBody) 

Back=Back.substr(Back.indexOf(""));

parent.tqif.document.open();

parent.tqif.document.writeln("");

parent.tqif.document.writeln("
");

parent.tqif.document.writeln("<\SCRIPT language=JavaScript1.1 src=\"tojava.js\"><\/SCRIPT>");

parent.tqif.document.writeln (Back);

parent.tqif.document.writeln("");

parent.tqif.document.close();

delete(Http);

}

function Send(Str,URL) 

{

Http.open("GET",URL,true)

Http.send()

Http.onreadystatechange=doit;

return;

}

function rp2(Str,Fs,Is)

{while (Str.indexOf(Fs)!=-1)

Str = Str.replace(Fs,Is)

return(Str)

}

function init()

{Send("","http://202.106.103.44/forecast/fc06024.php");

}



















***************** tojava.js ****************



if (typeof fcolor == 'undefined') { var fcolor = "#CCFFCC";}

if (typeof backcolor == 'undefined') { var backcolor = "#333399";}

if (typeof textcolor == 'undefined') { var textcolor = "#0000FF";}

if (typeof capcolor == 'undefined') { var capcolor = "#FFFFFF";}

if (typeof closecolor == 'undefined') { var closecolor = "#9999FF";}

if (typeof width == 'undefined') { var width = "120";}

if (typeof border == 'undefined') { var border = "1";}

if (typeof offsetx == 'undefined') { var offsetx = -120;}

if (typeof offsety == 'undefined') { var offsety = 10;}

var x = 0;

var y = 0;

var snow = 0;

var sw = 0;

var cnt = 0;

var dir = 1;

var tr=1;

if (top.location!= location){

over = overDiv.style

document.onmousemove = mouseMove

}     

function drawcitys(text) {

        dts(1,text);

}

function mout() {

        if ( cnt >= 1 ) { sw = 0 };

                if ( sw == 0 ) {

                        snow = 0;

                        hideObject(over);

                } else {

                        cnt++;

        }

}

function dts(d,text) {

        txt = ""+text+""

        layerWrite(txt);

        dir = d;

        disp();

}

function disp() {

                if (snow == 0)

                   {

                        if (dir == 2) { // Center

                                moveTo(over,x+offsetx-(width/2),y+offsety);

                        }

                        if (dir == 1) { // Right

                                moveTo(over,x+offsetx,y+offsety);

                        }

                        if (dir == 0) { // Left

                                moveTo(over,x-offsetx-width,y+offsety);

                        }

                        showObject(over);

                        snow = 1;

                }  

     }

function mouseMove(e) {

        x=event.x+document.body.scrollLeft; 

        y=event.y+document.body.scrollTop;

        if (snow) {

                if (dir == 2) { // Center

                        moveTo(over,x+offsetx-(width/2),y+offsety);

                }

                if (dir == 1) { // Right

                        moveTo(over,x+offsetx,y+offsety);

                }

                if (dir == 0) { // Left

                        moveTo(over,x-offsetx-width,y+offsety);

                }

        }

}

function cClick() {

       hideObject(over);

        sw=0;

}

function layerWrite(txt) {

document.all["overDiv"].innerHTML = txt

}

function showObject(obj) {

obj.visibility = "visible"

}



function hideObject(obj) {

obj.visibility = "hidden"

}

function moveTo(obj,xL,yL) {

        obj.left = xL

        obj.top = yL

}

=====================chinamapzj.gif=====================



***************使用说明******************************

将以上三个文件保存到一个目录中,打开weather.htm就可以看到最新的天气预报了
展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消