Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-14.log failed
Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-14.log failed
Detect a kind of browser and version
var isIE=false; //Internet Explorer var isNS=false; //Netscape Navigator var isOpera=false; //Opera var isFireFox=false; //Firefox var isSafari=false; //Safari var appVer; /* * detect browser name and version * @version 1.1 */ function browserDetect(){ var versionIndex=0; //Netscape & FireFox if(navigator.appName=="Netscape"){ // Mozilla Group //FireFox if(navigator.userAgent.indexOf("Firefox")!=-1){ isFireFox = true; versionIndex=navigator.userAgent.indexOf("Firefox")+8; appVer = parseInt(navigator.userAgent.charAt(versionIndex)); //Nescape Navigator }else if(navigator.userAgent.indexOf("Navigator")!=-1){ isNS = true; versionIndex = navigator.userAgent.indexOf("Navigator")+10; appVer = parseFloat(navigator.userAgent.charAt(versionIndex)); }else if(navigator.userAgent.indexOf("Safari")!=-1){ isSafari = true; versionIndex = navigator.userAgent.indexOf("Version")+8; appVer = parseInt(navigator.userAgent.charAt(versionIndex)); }//end if~else //IE }else if(navigator.appName=="Microsoft Internet Explorer"){ isIE = true; var temp; if (navigator.appVersion.indexOf("MSIE")!=-1){ temp=navigator.appVersion.split("MSIE"); appVer=parseFloat(temp[1]); }//end if //Opera? }else if(navigator.appName=="Opera"){ isOpera = true; appVer = paraseFloat(navigator.appVersion); } }