var browser=navigator.appName;
var userAgent = navigator.userAgent.toLowerCase();
userAgent :
mozilla/4.0 (compatible; msie 7.0; windows nt 6.1; wow64; trident/6.0; slcc2;
.net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; media center pc 6.0;
infopath.3; .net4.0c; .net4.0e; se 2.x metasr 1.0)
高速模式
mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.17 (khtml, like gecko) chrome/24.0.1312.57 safari/537.17 se 2.x metasr 1.0
if(userAgent.indexOf('se 2.x')!=-1)
{
//搜狗浏览器 //alert('-'+browser+'-');
if(browser !='Netscape')
{
// 高速模式 对定位进行校正 point_center_x=<?=$location_x?>; point_center_y=<?=$location_y?>;
}
}