//检测flash
function checkBrowserFlash() {
var i_flash;
var v_flash;
if (navigator.plugins) {
for ( var i = 0; i < navigator.plugins.length; i++) {
alert(navigator.plugins[i].name.toLowerCase());
if (navigator.plugins[i].name.toLowerCase().indexOf("shockwave flash") >= 0) {
i_flash = true;
v_flash = navigator.plugins[i].description.substring(navigator.plugins[i].description.toLowerCase().lastIndexOf("flash ") + 6,navigator.plugins[i].description.length);
}
}
}
if (i_flash == undefined && v_flash == undefined) {
alert("没有安装flash")
}
}