?? avinclude.js
字號:
var strImgsvrUrl = "http://90.0.12.117/mymap/";
document.writeln('<div id="myalert" style="position:absolute;z-index:100;filter:alpha(opacity=90);-moz-opacity:0.9;visibility:hidden;"></div>');
function W2Usr(x,y,Llg9)
{
document.getElementById("myalert").style.top=parseInt(y)-60;
document.getElementById("myalert").style.left=parseInt(x)-100;
document.getElementById("myalert").innerHTML='<table width="196" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #CCCCCC;"><tr><td height="19" bgcolor="#8888FF"></td></tr><tr><td height="100" align="center" valign="middle" bgcolor="#FFFFFF"><table width="167" height="79" border="0" cellpadding="0" cellspacing="0"><tr><td height="55" align="center" valign="middle" style="font-size: 12px;color: #0065AD;">'+Llg9+'</td></tr><tr><td height="24" align="center" valign="middle"><input type="button" value="關閉" onClick="document.getElementById(\'myalert\').style.visibility = \'hidden\'"onMouseOver="style.background=\'#DEE7EF\';style.cursor=\'hand\'"onMouseOut="this.style.background=\'FDFAF3\'" style="font-size: 9pt; width: 38; height:18; border: 1px solid #4A799C;background-color: #FDFAF3"></td></tr></table></td></tr></table>';
document.getElementById("myalert").style.visibility="visible"
};
document.write('<iframe src="'+strImgsvrUrl+'images/mask.gif" width=0 height=0></iframe>');
var F4E9=document.all?1:0;
var sijd=document.it3?1:0;
var OuO1=(F4E9)?"document.all.":"document.";
var ac052=(F4E9)?".style":"";
var fk5$K=0;
function CreateToolTip(Xt3G,rP4,Llg9)
{
var PT9='<table border="0" width="150" cellspacing="0" cellpadding="0">'+'<tr><td width="100%" bgcolor="#000000">'+'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+'<tr><td width="100%" bgcolor='+topColor+'>'+'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+'<tr><td id="mytooltiptitle"width="100%" class="tooltiptitle"> '+rP4+'</td>'+'<td style="cursor:hand" valign="top">'+'<a href="javascript:hideToolTipMenu();"><font color=#ffffff size=2 face=arial style="text-decoration:none">x</font></a>'+'</td>'+'</tr>'+'</table>'+'</td></tr>'+'<tr><td width="100%" bgcolor='+subColor+'>'+'<table border="0" width="100%" cellpadding="0" cellspacing="1" align="center">'+'<tr><td id="mytooltipcontent" width="100%" class="tooltipcontent">'+Llg9+'</td></tr>'+'</table>'+'</td></tr>'+'</table>'+'</td></tr>'+'</table>';
document.getElementById(Xt3G).innerHTML=PT9
};
function MoveToolTip(Xt3G,N$lQ2,Q735,H694)
{
if(F4E9)
{
document.getElementById(Xt3G).style.top=(eval(N$lQ2)+document.body.scrollTop)
}
else
{
document.getElementById(Xt3G).style.top=eval(N$lQ2)
}
document.getElementById(Xt3G).style.left=eval(Q735)
};
function UpdateContent(Xt3G,rP4,Llg9)
{
if(fk5$K==0)
{
CreateToolTip(Xt3G,rP4,Llg9);
fk5$K=1
}
else
{
if(document.getElementById("mytooltiptitle"))document.getElementById("mytooltiptitle").innerHTML=' '+rP4;
if(document.getElementById("mytooltipcontent"))document.getElementById("mytooltipcontent").innerHTML=Llg9
}
};
function setToolTipMenu(x,y,rP4,Llg9)
{
UpdateContent("ToolTip",rP4,Llg9);
var AP8=document.getElementById("ToolTip").clientWidth;
var Qy$03=document.getElementById("ToolTip").clientHeight;
if(x>mapwidth-AP8)
{
x=x-AP8
};
if(y>mapheight-Qy$03)
{
y=y-Qy$03
};
MoveToolTip("ToolTip",y+yoffset,x+xoffset);
document.getElementById("ToolTip").style.visibility='visible'
};
function hideToolTipMenu()
{
document.getElementById("ToolTip").style.visibility="hidden";
MoveToolTip("ToolTip",0,0)
};
document.write('<div id="ToolTip" style="visibility:hidden"></div>');
function VA8(name,left,top,width,height,m18,vKt2_,content,v4gN0)
{
this.h6yM=content;
this.v4gN0=v4gN0;
this.name=name;
this.N06=1;
this.hide=function()
{
this.style.visibility="hidden"
};
this.show=function()
{
this.style.visibility="visible"
};
this.moveTo=function(x,y)
{
this.style.left=x;
this.style.top=y
};
this.resize=function(rF24,n65D)
{
if(parseInt(rF24)>=0&&parseInt(n65D)>=0)
{
this.style.width=rF24;
this.style.height=n65D
}
};
this.t544t=function(x,y)
{
if(x>parseInt(this.style.left)&&x<(parseInt(this.style.left)+parseInt(this.style.width))&&y>parseInt(this.style.top)&&y<(parseInt(this.style.top)+parseInt(this.style.height)))
{
return true
}
return false
};
this.appendChild=function(aL8B)
{
try
{
this.c77d.appendChild(aL8B)
}
catch(H694)
{
}
};
this.clear=function()
{
while(this.c77d.hasChildNodes())
{
this.c77d.removeChild(this.c77d.lastChild)
}
};
this.clean=this.clear;
this.getName=function()
{
return this.name
};
try
{
this.c77d=Hey(this.name,left,top,width,height,m18,vKt2_,content);
this.c77d.unselectable="on";
if(this.v4gN0)this.v4gN0.appendChild(this.c77d);
this.style=this.c77d.style;
this.graphics=(F4E9)?new G50WI():new jsGraphics(this.name)
}
catch(H694)
{
}
};
function G50WI()
{
this.clear=function()
{
};
this.paint=function()
{
};
this.gAA2=function()
{
};
this.Y9FT6=function()
{
};
this.setColor=function()
{
}
};
function Qkw0(name)
{
if(document.getElementById(name)!=null)
{
OEi$=document.getElementById(name);
return OEi$
}
return null
};
function p1om(name)
{
if(document.getElementById(name)!=null)
{
t5Ex=document.getElementById(name).style
}
return null
};
function Eq560(name,left,top,width,height,m18,vKt2_,content)
{
document.writeln('<div unselectable="on" id="'+name+'" style="position:absolute; overflow:none; left:'+left+'px; top:'+top+'px; width:'+width+'px; height:'+height+'px;'+' visibility:'+(m18?'visible;':'hidden;')+'zIndex='+vKt2_+';">');
document.writeln(content);
document.writeln('</div>')
};
function Hey(name,left,top,width,height,m18,vKt2_,content)
{
var n65D=document.createElement("div");
n65D.unselectable="on";
n65D.id=name;
n65D.style.position="absolute";
n65D.style.top=top;
n65D.style.left=left;
n65D.style.zIndex=vKt2_;
n65D.style.width=width;
n65D.style.height=height;
n65D.style.visibility=(m18)?'visible':'hidden';
n65D.innerHTML=content;
return n65D
};
function I4i2(cbv,left,top,width,height)
{
var n65D=new Image();
n65D.unselectable="on";
n65D.style.position="absolute";
n65D.style.top=top;
n65D.style.left=left;
n65D.style.width=width;
n65D.style.height=height;
if(cbv!="undefined")n65D.src=cbv;
n65D.onerror=function()
{
this.onerror=null;
if(this.parentNode)this.parentNode.removeChild(this)
};
return n65D
};
function KIx4(cbv,left,top,width,height,v4gN0)
{
this.n0Y=I4i2(cbv,left,top,width,height);
this.KAOc=0;
this.q4D4=0;
this.name=name;
v4gN0.appendChild(this.n0Y);
this.hide=function()
{
this.n0Y.style.visibility="hidden"
};
this.show=function()
{
this.n0Y.style.visibility="visible"
};
this.moveTo=function(x,y)
{
this.n0Y.style.left=x;
this.n0Y.style.top=y
};
this.resize=function(rF24,n65D)
{
this.n0Y.style.width=rF24;
this.n0Y.style.height=n65D
};
this.getName=function()
{
return this.name
};
this.P260=function(v4gN0)
{
v4gN0.appendChild(this.n0Y)
}
};
function Oc2(rK2U2,x,y,color)
{
var n65D='<div unselectable="on" style="position:absolute;z-index=0;white-space:nowrap;filter=alpha(opacity=30);'+'border:1px solid '+color+';'+'left:'+(x+2)+'px;'+'top:'+(y+2)+'px;'+'background-color:'+color+';'+'color:'+this.color+';">'+'<table border="1" cellspacing="0" cellpadding="0" bordercolor="'+color+'">'+'<tr><td width="100%">'+'<font class="ptlabel" color="'+color+'">'+rK2U2+'</font>'+'</td></tr>'+'</table>'+'<\/div>';
n65D+='<div unselectable="on" style="position:absolute;z-index=0;white-space:nowrap;'+'border:1px solid '+color+';'+'left:'+x+'px;'+'top:'+y+'px;'+'background-color:#FFFFCC;'+'color:'+this.color+';">'+'<table border="1" cellspacing="0" cellpadding="0" bordercolor=#FFFFCC>'+'<tr><td width="100%">'+'<font class="ptlabel" color="'+color+'" title="'+rK2U2+'">'+rK2U2+'</font>'+'</td></tr>'+'</table>'+'<\/div>';
return n65D
};
function g27Pn(title,left,top,_29)
{
hideBubble();
var PT9=AVB0.TrB(title,_29+DirectionInfo);
var n65D=Hey("bubble",parseInt(left)-AVB0.xoffset,parseInt(top)-AVB0.height,0,0,1,100,PT9);
return n65D
};
function hideBubble()
{
hideToolTipMenu();
var n65D=document.getElementById("bubble");
if(n65D)n65D.parentNode.removeChild(n65D);
if(maplet.A3Y7r)
{
maplet.A3Y7r=null
}
};
var AVB0=new M67();
function M67()
{
this.height=230;
this.xoffset=90;
this.width=217;
this.kWHlL='<div id="Layer1" unselectable="on" style="position:absolute; left:40px; top:102px; width:367px; height:147px; filter=alpha(opacity=50);z-index:0;-moz-opacity:0.5;opacity:0.5;">'+'<img src="'+strImgsvrUrl+'images/shadow50.png" width="100%" height="100%"></div>'+'<div id="Layer2" unselectable="on" style="position:absolute; left:89px; top:122px; width:146px; height:77px; z-index:1">'+'<img src="'+strImgsvrUrl+'images/qqqq.png" width="79" height="102"></div>'+'<div unselectable="on" style="z-index:1">'+'<table width="277" border="0" cellspacing="0" cellpadding="0">'+'<tr>'+' <td width="10"><img src="'+strImgsvrUrl+'images/new_r1_c1.png" width="10" height="10"></td>'+'<td width="257" background="'+strImgsvrUrl+'images/new_r1_c2.gif"></td>'+'<td width="10"><img src="'+strImgsvrUrl+'images/left1_r1_c6.png" width="10" height="10"></td>'+'</tr>'+'<tr>'+' <td height="105" background="'+strImgsvrUrl+'images/new_r2_c1.gif"> </td>'+'<td align="right" valign="top" bgcolor="#FFFFFF">'+'<a href="javascript:hideBubble();"><img src="'+strImgsvrUrl+'images/close.gif" width="14" height="13" border="0"></a>'+'</td>'+' <td background="'+strImgsvrUrl+'images/new_r3_c6.gif"> </td>'+' </tr>'+'<tr>'+'<td><img src="'+strImgsvrUrl+'images/left1_r5_c1.png" width="10" height="10"></td>'+'<td background="'+strImgsvrUrl+'images/new_r5_c2.gif"></td>'+'<td><img src="'+strImgsvrUrl+'images/left1_r5_c6.png" width="10" height="10"></td>'+'</tr>'+'</table>'+'<img src="'+strImgsvrUrl+'images/qqqq_r1_c2.png" width="1" height="109">'+'</div>';
this.TrB=function(title,_29)
{
return this.kWHlL+this._AXO4(title)+this._AIH1(_29)
};
this._AXO4=function(title)
{
return '<div class=tooltiptitle unselectable="on" style="position:absolute; left:10px; top:12px; width:217px; height:20px;">'+title+'</div>'
};
this._AIH1=function(_29)
{
return '<div unselectable="on" style="position:absolute; left:10px; top:32px; width:247px; height:127px;">'+'<table width="247" border="0" cellspacing="0" cellpadding="1"><tr><td width="100%"><font class=tooltipcontent>'+_29+'</font></td></tr></table></div>'
}
};
function t3h7(_f$,yQ2g,left,top,width,height,m18,vKt2_,v4gN0,o774,$f9)
{
//改動,圖片路徑設置,Tangf
//this.hp9h=(_f$==null||_f$=="undefined")?'':_f$+'/';
this.hp9h='';
this.t48_=($f9=="1")?true:false;
this.T365h=(this.t48_==true)?100:254;
this.E3419='<IMG unselectable="on" style="position:absolute;left:'+(left+10)+';top:10;filter=alpha(opacity=60);" src="'+strImgsvrUrl+'images/'+this.hp9h+'panshadow.png" >';
this.E3419+='<IMG id="ctrlw" unselectable="on" title="向西平移" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,1);" style="position:absolute;left:'+(left+10)+';top:30;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'west.png" >';
this.E3419+='<IMG id="ctrln" unselectable="on" title="向北平移" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,2);" style="position:absolute;left:'+(left+30)+';top:10;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'north.png" >';
this.E3419+='<IMG id="ctrle" unselectable="on" title="向東平移" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,3);" style="position:absolute;left:'+(left+50)+';top:30;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'east.png" >';
this.E3419+='<IMG id="ctrls" unselectable="on" title="向南平移" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,4);" style="position:absolute;left:'+(left+30)+';top:50;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'south.png" >';
this.E3419+='<IMG id="ctrlmeas" unselectable="on" title="測量距離" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,7);" style="position:absolute;left:'+(left+30)+';top:30;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'measure.png" >';
this.E3419+='<IMG unselectable="on" style="position:absolute;left:'+(left+31)+';top:81;filter=alpha(opacity=60);" src="'+strImgsvrUrl+'images/'+this.hp9h+'gridshadow.png" >';
this.E3419+='<IMG unselectable="on" style="position:absolute;left:'+(left+31)+';top:'+(this.T365h+1)+';filter=alpha(opacity=60);" src="'+strImgsvrUrl+'images/'+this.hp9h+'gridshadow.png" >';
if(!this.t48_)
{
this.E3419+='<IMG unselectable="on" style="position:absolute;left:'+(left+31)+';top:86;filter=alpha(opacity=60);" src="'+strImgsvrUrl+'images/'+this.hp9h+'zoom-bg2.png" >';
this.E3419+='<IMG id="ctrlbg" unselectable="on" title="點擊進行縮放" onmousemove=style.cursor="default" onclick="javascript:PerformControl(event, this, 8);" style="position:absolute;left:'+(left+30)+';top:85;" src="'+strImgsvrUrl+'images/'+this.hp9h+'zoom-bg.png" >'
}
this.E3419+='<IMG id="ctrlzmin" unselectable="on" title="放大" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,5);" style="position:absolute;left:'+(left+30)+';top:80;width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'zoom-plus.png" >';
this.E3419+='<IMG id="ctrlzmout" unselectable="on" title="縮小" onmousemove=style.cursor="hand" onclick="javascript:PerformControl(event, this,6);" style="position:absolute;left:'+(left+30)+';top:'+this.T365h+';width=17;height=17;" src="'+strImgsvrUrl+'images/'+this.hp9h+'zoom-minus.png" >';
this.O6$=new VA8("LayerControl",left,top,width,height,m18,vKt2_,this.E3419,v4gN0);
this.O6$.c77d.o774=o774;
if(!this.t48_)
{
{
this.D7T0=new Image();
this.D7T0.src=strImgsvrUrl+'images/'+this.hp9h+'slider.png';
this.D7T0.id="ctrlslider";
this.D7T0.unselectable="on";
this.D7T0.style.position="absolute";
this.D7T0.style.top=165;
this.D7T0.style.left=left+30
}
this.D7T0.L71g=0;
this.O6$.c77d.appendChild(this.D7T0);
this.O6$.c77d.D7T0=this.D7T0;
this.D7T0.style.top=(R$1-yQ2g)*(132/(R$1-1))+100;
this.D7T0.offsetY=parseInt(o774.top);
this.D7T0.onmousedown=function(H694)
{
if(this.L71g==0)
{
this.L71g=parseInt((F4E9)?event.clientY:H694.clientY)
}
else
{
this.L71g=0
}
};
this.D7T0.ondrag=function(H694)
{
this.parentNode.style.cursor="default";
if(this.L71g>0)
{
var Xhe_0=parseInt((F4E9)?event.clientY:H694.clientY)-parseInt(this.offsetY);
if(Xhe_0>=100&&Xhe_0<244)
{
this.style.top=Xhe_0;
if(F4E9)
{
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-this.offsetY)/(R$1+1))*(132/(R$1-1)))/(132/(R$1-1))));
this.parentNode.o774.OYos(yQ2g)
}
}
return true
}
return false
};
this.D7T0.ondragend=function(H694)
{
if(this.L71g>0)
{
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-this.offsetY)/(132/(R$1-1)))));
this.parentNode.S85(yQ2g);
this.parentNode.o774.K28.c77d.style.zoom=1;
this.parentNode.o774.setZoomLevel(parseInt(yQ2g));
this.L71g=0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -