ÿþ<HTML> <HEAD> <title>detection</title> <script language="JavaScript"> <!-- var UserAgent = navigator.userAgent.toLowerCase(); var versionMinor; var MCS2IEBarVersion = null; function MCS2IEBar_OnLoad(obj) { MCS2IEBarVersion = obj.Version; } function fCheckOs() { if ( UserAgent.indexOf("windows 95") != -1) return -1; if ( UserAgent.indexOf("windows 98") != -1) { if ( UserAgent.indexOf("win 4.91") != -1) return 0; else return 0; } if ( UserAgent.indexOf("winnt") != -1) return 0; if ( UserAgent.indexOf("windows nt 5.0") != -1) return 0; if ( UserAgent.indexOf("windows nt 5.1") != -1) return 0; if ( UserAgent.indexOf("windows nt 5.2") != -1) return 0; if ( UserAgent.indexOf("windows nt 6.0") != -1) return 0; if ( UserAgent.indexOf("windows nt 6.1") != -1) return 0; return -1; } function fCheckIe() { var isIE = (UserAgent.indexOf('msie') != -1 && UserAgent.indexOf('opera') == -1 && (UserAgent.indexOf('webtv') == -1)); if ( isIE ) { versionMinor = parseFloat(navigator.appVersion); if ( versionMinor >= 4 ) versionMinor = parseFloat(UserAgent.substring(UserAgent.indexOf('msie ') + 5)); if (versionMinor < 6.0) return -1; return 0; } return -1; } function fClientResolution(){ // if ( ( screen.width >= 1024 ) && ( screen.height >= 768 ) ) return 0; // else // return -1; } function RHLikeAXDetection(){ try{ var XBoardAX = new ActiveXObject("RHLStub.StubCtrl.1"); return true; }catch(e){ return false; } } function AXDetection(){ try{ var fso=new ActiveXObject("MediaPlayer.MediaPlayer.1"); return true; }catch(e){ return false; } } function Detection(){ var childwindURL; var ClientOs = fCheckOs(); var DetectionPath = document.location.host +"/"+ document.location.pathname.split("/")[1]; if (ClientOs < 0){ childwindURL = "http://" + DetectionPath + "/DeviceTest/Detection/zh-TW/1-1.htm"; }else{ var ClientIe = fCheckIe(); if (ClientIe < 0){ childwindURL = "http://" + DetectionPath + "/DeviceTest/Detection/zh-TW/1-2.htm"; }else{ var ClientResolution = fClientResolution(); if ( ClientResolution < 0 ){ childwindURL = "http://" + DetectionPath + "/DeviceTest/Detection/zh-TW/1-3.htm"; }else{ //if (MCS2IEBarVersion == null){ if(AXDetection()){ if(RHLikeAXDetection()){ childwindURL = "mcs2://http." + DetectionPath + "/DeviceTest/Detection/zh-TW/Detection_2.htm?lang=zh-TW"; //return; }else{ childwindURL = "http://" + DetectionPath + "/DeviceTest/Detection/zh-TW/2-5.htm"; } }else{ childwindURL = "http://" + DetectionPath + "/DeviceTest/Detection/zh-TW/2-4.htm"; } //}else{ // childwindURL = "mcs2://http." + DetectionPath + "/DeviceTest/Detection/zh-TW/Detection_2.htm?lang=zh-TW"; //return; //} } } } self.location = childwindURL; //childwind = window.open(childwindURL,"Launcher","width=500,height=300,left=300,top=200,titlebar=no,menubar=no,location=no,resizable=no,scrollbars=no,status=no",true); } //--> </script> </HEAD> <BODY onload = "Detection()"> </BODY> </HTML>