function allinfo(){
var ua = ;
ua = ();
var match = /(webkit)[ \/]([\w.]+)/.exec(ua) ||
/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) ||
/(msie) ([\w.]+)/.exec(ua) ||
!/compatible/.test(ua) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua) || [];
//If you need to get the browser version number: match[2]
switch(match[1]){
case "msie": //ie
if (parseInt(match[2]) === 6){ //ie6
alert("ie6");
alert("IE7.0 and below browsers are not supported for the time being, please upgrade your browser version!");
//("hid"). = "none";
// ("show"). = "block";
//("nosee_b"). = "none";
}
else if (parseInt(match[2]) === 7) { //ie7
alert("ie7");
//("hid"). = "none";
// ("show"). = "block";
}
else if (parseInt(match[2]) === 8){ //ie8
alert("ie8");
}
else if(parseInt(match[2]) === 9){
alert("ie9");
//("hid"). = "none";
}
break;
case "webkit": //safari or chrome
//alert("safari or chrome");
// ("middle"). = "none";
break;
case "opera": //opera
alert("opera");
break;
case "mozilla": //Firefox
alert("Firefox");
//("hid"). = "none";
break;
default:
break;
}
}