📄 topjscript.js
字号:
// JScript 文件
function buttonClick()
{
//document.all.td1.innerHTML
var mapImage=top.frames.item("main").document.getElementById("MapControl1_Image");
alert(mapImage.src);
}
function continentClick(str)
{
var mapImage = top.frames.item("main").document.getElementById("MapControl1_Image");
if (!mapImage.mapAlias) mapImage.mapAlias = mapImage.attributes["mapAlias"].value;
if (!mapImage.exportFormat) mapImage.exportFormat = mapImage.attributes["exportFormat"].value;
var url = "MapController.ashx?Command=getImage" +
"&Width=" + mapImage.width +
"&Height=" + mapImage.height +
"&ExportFormat=" + mapImage.exportFormat +
"&Ran=" + Math.random() + "&continent=" + str;
mapImage.src=url;
}
function itemClick(str)
{
var mapImage = top.frames.item("main").document.getElementById("MapControl1_Image");
if (!mapImage.mapAlias) mapImage.mapAlias = mapImage.attributes["mapAlias"].value;
if (!mapImage.exportFormat) mapImage.exportFormat = mapImage.attributes["exportFormat"].value;
var url = "MapController.ashx?Command=getThemeImage" +
"&Width=" + mapImage.width +
"&Height=" + mapImage.height +
"&ExportFormat=" + mapImage.exportFormat +
"&Ran=" + Math.random() + "&item1=" + str;
mapImage.src=url;
getLegend();
}
function getLegend()
{
var div = top.frames.item("main").document.getElementById("Info");
div.style.visibility ="visible";
div.style.width ="775";
div.style.height ="75";
div.style.left ="103";
div.style.top ="450";
var url = "MapController.ashx?Command=GetLegend" +
"&Ran=" + Math.random();
div.innerHTML = "<table width='775'><tr><td style='height:15' align='right'><img src='images/infobutton.jpg' style='CURSOR:hand' onclick='Info_Click()'></td></tr><tr><td><img id='legend1' src='" + url + "'/></td></tr></table>";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -