⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 avinclude.js

📁 类mapbar地图处理 用的是MapBar给百度的JS
💻 JS
📖 第 1 页 / 共 5 页
字号:
            }
            this.L71g=0
        }
    };
    this.onmousedown=function()
    {
        return false
    };
    this.onmousemove=function(H694)
    {
        if(this.D7T0)
        {
            return(F4E9)?this.D7T0.ondrag():this.D7T0.ondrag(H694)
        }
        else
        {
            return false
        }
    };
    this.onmouseup=function(H694)
    {
        return(this.D7T0)?((F4E9)?this.D7T0.ondragend():this.D7T0.ondragend(H694)):false
    };
    this.onmouseout=function()
    {
        return false
    };
    this.O6$.c77d.S85=function(yQ2g)
    {
        if(this.D7T0)
        {
            this.D7T0.style.top=(R$1-yQ2g)*(132/(R$1-1))+100;
            if(this.D7T0.parentNode==null||this.D7T0.parentNode!=this)
            {
                this.appendChild(this.D7T0)
            }
        }
    };
    this.S85=function(yQ2g)
    {
        this.O6$.c77d.S85(yQ2g)
    };
    this.hide=function()
    {
        this.O6$.hide()
    };
    this.show=function()
    {
        this.O6$.show()
    };
    this.WE1iA=function()
    {
        this.O6$.c77d.o774=null;
        if(this.O6$.c77d!=null&&this.O6$.c77d.parentNode!=null)
        {
            this.O6$.c77d.parentNode.removeChild(this.O6$.c77d);
            this.O6$.c77d=null
        }
    }
};
function PerformControl(H694,OEi$,$p3r)
{
    switch($p3r)
    {
        case 1:hideBubble();
        OEi$.parentNode.o774.T$_v(parseInt(maplet.width)/2,0);
        break;
        case 2:hideBubble();
        OEi$.parentNode.o774.T$_v(0,parseInt(maplet.height)/2);
        break;
        case 3:hideBubble();
        OEi$.parentNode.o774.T$_v(-parseInt(maplet.width)/2,0);
        break;
        case 4:hideBubble();
        OEi$.parentNode.o774.T$_v(0,-parseInt(maplet.height)/2);
        break;
        case 5:hideBubble();
        OEi$.parentNode.o774.zoomIn();
        OEi$.parentNode.S85(OEi$.parentNode.o774.getZoomLevel());
        break;
        case 6:hideBubble();
        OEi$.parentNode.o774.zoomOut();
        OEi$.parentNode.S85(OEi$.parentNode.o774.getZoomLevel());
        break;
        case 7:hideBubble();
        OEi$.parentNode.o774.setMode(i9h0.B4w13);
        break;
        case 8:hideBubble();
        var y=parseInt((F4E9)?event.clientY:H694.clientY)-parseInt(document.body.scrollTop);
        var yQ2g=R$1-Math.max(0,Math.min(R$1,parseInt((parseInt(y)-100-OEi$.parentNode.D7T0.offsetY)/(132/(R$1-1)))));
        OEi$.parentNode.S85(yQ2g);
        OEi$.parentNode.o774.setZoomLevel(yQ2g);
        break;
        default:break
    }
};
var s6m8J=null;
function showMouseTipBox(x,y,smpR,v4gN0)
{
    try
    {
        if(s6m8J==null||s6m8J=="undefined")
        {
            var Llg9='<table border="1" cellspacing="0" cellpadding="0" bordercolor=#FF0000>'+'<tr><td width="100%" bgcolor=#FFFFCC>'+'<font class="ptlabel" color="#000000" >'+smpR+'</font>'+'</td></tr>'+'</table>';
            s6m8J=Hey("mousetipbox",parseInt(x)+10,parseInt(y)+18,70,20,1,100,Llg9);
            s6m8J.unselectable="on";
            s6m8J.style.FsD="none"
        }
        else
        {
            s6m8J.style.left=parseInt(x)+10;
            s6m8J.style.top=parseInt(y)+18;
            s6m8J.visibility="visible"
        }
        if(s6m8J!=null&&(s6m8J.parentNode==null||s6m8J.parentNode!=v4gN0))
        {
            v4gN0.appendChild(s6m8J)
        }
    }
    catch(H694)
    {
    }
};
function l2IN5()
{
    if(s6m8J!=null)
    {
        if(s6m8J.parentNode!=null)
        {
            s6m8J.parentNode.removeChild(s6m8J)
        }
        s6m8J=null
    }
};
function b07(H694)
{
    return(F4E9)?event.srcElement.id:H694.target.id
};
function imageTileError(aI9x)
{
    if(aI9x.width==300&&aI9x.ntry=="0")
    {
        aI9x.ntry="1";
        var K34T=aI9x.src;
        var n9Tx=K34T.indexOf("/maplite/");
        aI9x.src=K34T.substring(0,n9Tx)+"/mapimg/"+K34T.substring(n9Tx+9)
    }
    else if(aI9x.width==300&&aI9x.ntry=="1")
    {
        aI9x.ntry="2";
        var K34T=aI9x.src;
        var n9Tx=K34T.indexOf("/mapimg/");
        aI9x.src=K34T.substring(0,n9Tx)+"/mapsvr/"+K34T.substring(n9Tx+8)
    }
    else
    {
        aI9x.ntry="3";
        aI9x.onerror=null;
        aI9x.src=strImgsvrUrl+"images/mask.gif";
        aI9x.style.width=300;
        aI9x.style.height=300
    }
};
function X3R(maplet,yQ2g,left,top,rF24,n65D,m18,v4gN0)
{
    this.maplet=maplet;
    this.left=left;
    this.top=top;
    this.width=rF24;
    this.height=n65D;
    this.mJ18=yQ2g;
    this.s5U=51;
    this.Ajd=18;
    this.y04Eb=16;
    this.mP9=false;
    this.v4gN0=v4gN0;
    this.uO14=0;
    this.HM_=0;
    this.u6R=new VA8("LayerZoomBar",this.left,this.top,this.width,this.height,m18,2,'',this.v4gN0);
    var kjG26=(R$1/2)*(this.height-this.Ajd*2-this.s5U)/R$1+this.Ajd;
    this.X3a=I4i2(strImgsvrUrl+"images/zoombg.gif",0,0,this.y04Eb,this.height);
    this.H6561=I4i2(strImgsvrUrl+"images/zoombg2.gif",0,0,this.y04Eb,kjG26);
    this.my67=I4i2(strImgsvrUrl+"images/zoomin.gif",0,0,this.y04Eb,this.Ajd);
    this.m0E=I4i2(strImgsvrUrl+"images/zoomout.gif",0,this.height-this.Ajd,this.y04Eb,this.Ajd);
    this.lFM=I4i2(strImgsvrUrl+"images/slider.gif",0,kjG26,this.y04Eb,this.s5U);
    this.lFM.id="zoombarSlider";
    this.u6R.c77d.appendChild(this.X3a);
    this.u6R.c77d.appendChild(this.H6561);
    this.u6R.c77d.appendChild(this.my67);
    this.u6R.c77d.appendChild(this.m0E);
    this.u6R.c77d.appendChild(this.lFM);
    this.setZoomLevel=function(yQ2g)
    {
        if(yQ2g<0||yQ2g>R$1)
        {
            return
        }
        if(this.mJ18!=yQ2g)
        {
            this.mJ18=yQ2g;
            this.refresh()
        }
    };
    this.getZoomLevel=function()
    {
        return this.mJ18
    };
    this.show=function()
    {
        this.u6R.show();
        this.lFM.style.visibility="visible"
    };
    this.hide=function()
    {
        this.u6R.hide();
        this.lFM.style.visibility="hidden"
    };
    this.resize=function(n65D)
    {
        this.height=n65D;
        this.u6R.resize(this.width,this.height)
    };
    this.moveTo=function(x,y)
    {
        this.left=x;
        this.top=y;
        this.u6R.moveTo(this.left,this.top)
    };
    this.refresh=function()
    {
        this.paint()
    };
    this.paint=function()
    {
        var kjG26=(R$1-this.mJ18)*(this.height-this.Ajd*2-this.s5U)/R$1+this.Ajd;
        this.H6561.style.height=kjG26;
        if(this.lFM!=null)
        {
            this.lFM.style.top=kjG26;
            if(this.lFM.parentNode==null)
            {
                this.u6R.c77d.appendChild(this.lFM)
            }
        }
    };
    this.zoomIn=function()
    {
        this.setZoomLevel(this.mJ18+1)
    };
    this.zoomOut=function()
    {
        this.setZoomLevel(this.mJ18-1)
    };
    this.t544t=function(x,y)
    {
        if((x>this.left)&&(x<this.left+this.width)&&(y>this.top)&&(y<this.top+this.height))
        {
            return true
        }
        else return false
    };
    this.vCo7Y=function(x,y)
    {
        if(this.u$0)
        {
            y=y-this.s5U/2;
            var yQ2g=R$1*(this.height-y-this.Ajd-this.s5U)/(this.height-this.Ajd*2-this.s5U);
            if(y>this.Ajd&&y<(this.height-this.Ajd-this.s5U))
            {
                this.lFM.style.top=y;
                this.H6561.style.height=y;
                this.maplet.OYos(yQ2g)
            }
            return true
        }
        else
        {
        }
        if(this.t544t(x,y))
        {
            if(y<(this.Ajd)||y>(this.height-this.Ajd))
            {
                this.u6R.style.cursor='hand'
            }
            else if(event.srcElement.id=="zoombarSlider")
            {
                this.u6R.style.cursor='hand'
            }
            else
            {
                this.u6R.style.cursor='default'
            }
            return true
        }
        return false
    };
    this.wH0_I=function(x,y)
    {
        this.uO14=x;
        this.HM_=y;
        this.C6k=event.srcElement.id;
        if(this.t544t(x,y))
        {
            this.u$0=true
        }
        else
        {
            this.u$0=false
        }
        return this.u$0
    };
    this.oHW7=function(x,y)
    {
        var p9a2=false;
        this.maplet.K28.c77d.style.zoom=1;
        if(this.u$0)
        {
            if(y<this.Ajd)
            {
                this.zoomIn()
            }
            else if(y>(this.height-this.Ajd))
            {
                this.zoomOut()
            }
            else
            {
                y=y-this.s5U/2;
                y=(y>(this.height-this.Ajd-this.s5U))?(this.height-this.Ajd-this.s5U):((y<this.Ajd)?this.Ajd:y);
                var yQ2g=R$1*(this.height-y-this.Ajd-this.s5U)/(this.height-this.Ajd*2-this.s5U);
                this.setZoomLevel(parseInt(yQ2g+0.5))
            }
            p9a2=true
        }
        this.u$0=false;
        return p9a2
    };
    this.Je9=function(x,y)
    {
    }
};
document.write('<script language="javascript" src="'+strMapsvrUrl+'js/avgraphics.js"></script>');
function scPU()
{
    this._ij2p='1';
    this.hH5q2='2';
    this.mQF3U='3';
    this.W82='5';
    this.H_KX8='6';
    this.V61A7='7';
    this.YU7='8';
    this.Jk__='9';
    this.DpIf='10';
    this.B4w13='11'
};
var i9h0=new scPU();
function I4L(n65D,s24,zIndex)
{
    if(s24!="undefined"&&s24!="")n65D.src=s24;
    n65D.style.zIndex=zIndex
};
var TrH=new Array();
TrH["icon1"]=strImgsvrUrl+'images/'+"number1.gif";
TrH["icon2"]=strImgsvrUrl+'images/'+"number2.gif",TrH["icon3"]=strImgsvrUrl+'images/'+"number3.gif",TrH["icon4"]=strImgsvrUrl+'images/'+"number4.gif",TrH["icon5"]=strImgsvrUrl+'images/'+"number5.gif",TrH["icon6"]=strImgsvrUrl+'images/'+"number6.gif",TrH["icon7"]=strImgsvrUrl+'images/'+"number7.gif",TrH["icon8"]=strImgsvrUrl+'images/'+"number8.gif",TrH["icon9"]=strImgsvrUrl+'images/'+"number9.gif",TrH["icon10"]=strImgsvrUrl+'images/'+"number10.gif";
var $J27f=new Array();
$J27f["icon1"]=strImgsvrUrl+'images/'+"number1-2.gif",$J27f["icon2"]=strImgsvrUrl+'images/'+"number2-2.gif",$J27f["icon3"]=strImgsvrUrl+'images/'+"number3-2.gif",$J27f["icon4"]=strImgsvrUrl+'images/'+"number4-2.gif",$J27f["icon5"]=strImgsvrUrl+'images/'+"number5-2.gif",$J27f["icon6"]=strImgsvrUrl+'images/'+"number6-2.gif",$J27f["icon7"]=strImgsvrUrl+'images/'+"number7-2.gif",$J27f["icon8"]=strImgsvrUrl+'images/'+"number8-2.gif",$J27f["icon9"]=strImgsvrUrl+'images/'+"number9-2.gif",$J27f["icon10"]=strImgsvrUrl+'images/'+"number10-2.gif";
var ocn=new Array();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -