//判断浏览器类型
function getweb(){
if((!!window.ActiveXObject || "ActiveXObject" in window){
return "IE";
}
ifnavigator.userAgent.indexOf("Firefox")!=-1){
return "Firefox";
}
if(navigator.userAgent.indexOf("Chrome")!=-1){
return "Chrome";
}
if(navigator.userAgent.indexOf("Safari")!=-1){
return "Safari";
}
}