您的位置:首页 > 其它

判断是否安装客户端,没有安装则进行下载

2012-04-21 16:44 239 查看
function onload()
{
try{
axEarth.globe.createInstance(dv_earth,onCreated,onCreateFail);
}
catch(e){
//earthclienturl 是一个<a></a>
if(e.description=="'Event' 为空或不是对象")
{
var senti = confirm("未安装axEarth客户端,是否下载客户端?");
if (senti == true)
{
document.getElementById("earthclienturl").href = "userclient/usrClient.zip";
document.getElementById("earthclienturl").click();
}
else return;
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: