\n'); } function pic_mov_DoFSCommand(command, args) { var pic_movObj = isInternetExplorer ? document.all.pic_mov : document.pic_mov; // //alert(command); if(command=='try_product'){ window.location='/teacher/registration/index.php'; } if(command=='buy_product'){ window.location='/teacher/registration/code_application_buy.php'; } } if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { document.write('\n'); } function set_F_name(){ } function CheckBrowserType(){ var Browser = ""; if((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)){ Browser = "isIE"; }else if(navigator.userAgent.indexOf('Firefox') >= 0){ Browser = "isFirefox"; }else if(navigator.vendor=='Netscape'){ Browser = "isNetscape"; }else if(navigator.userAgent.indexOf('Safari') >= 0){ Browser = "isSafari"; }else if(navigator.userAgent.indexOf('Camino') >= 0){ Browser = "isCamino"; }else if(navigator.userAgent.indexOf('Gecko') >= 0){ Browser = "isMozilla"; }else if((navigator.userAgent.indexOf('Gecko') >= 0) && (navigator.userAgent.indexOf('KHTML')==-1)){ Browser = "isGecko"; }else if(navigator.userAgent.indexOf('Opera') >= 0){ Browser = "isOpera"; } switch (Browser){ case 'isIE': var IEVersion=getIEVersonNumber(); if(IEVersion<7){ alert("温馨提示:请使用IE 7.0 浏览器进入资源展馆, 以达到正常的操作效果。"); } break; case 'isFirefox': case 'isNetscape': case 'isSafari': case 'isCamino': case 'isMozilla': case 'isGecko': case 'isOpera': alert("温馨提示:请使用IE 7.0 浏览器进入资源展馆, 以达到正常的操作效果。"); break; } } function getIEVersonNumber() { var ua = navigator.userAgent; var msieOffset = ua.indexOf("MSIE "); if(msieOffset < 0) { return 0; } return parseFloat(ua.substring(msieOffset + 5, ua.indexOf(";", msieOffset))); }
| |||||||
![]() |
|||||||
| |||||||
| |||||||