ブラウザのバージョンがie 9以下のブラウザであるかどうかを判断します.
4395 ワード
(function(window) {
var theUA = window.navigator.userAgent.toLowerCase();
if ((theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || (theUA.match(/trident\s?\d+/) && theUA.match(/trident\s?\d+/)[0])) {
var ieVersion = theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || theUA.match(/trident\s?\d+/)[0];
if (ieVersion < 9) {
var str = " low
:(";
var str2 = " :グーグル,"
+ " ,"
+ "アザラシ , ";
document.writeln(""
+
""+ str + ""+
str 2+「デュアルコアブラウザを している は、 モードに り えてアクセスしてください」).
document.execCommand("Stop");
};
}
})(window);