<script type="text/javascript">
function getBrowser() {
var userAgent = navigator.userAgent.toLowerCase();
var Sys = {};
var s;
// IE
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
// 火狐
(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
// 谷歌
(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
// opera
(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
// safari
(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
}
</script>