股墓山庄

专注于AS3,JavaScript 每天一点进步,坚持...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

2012年8月13日

摘要: 示例:打开一个弹窗,关闭父页面,不弹出关闭提示。window.opener = null; window.open("flashindex.html","","fullscreen=1,menubar=0,toolbar=0,directories=0,location=0,status=0,scrollbars=yes,resizable=yes"); window.open('', '_self'); window.close(); 阅读全文

posted @ 2012-08-13 16:57 股墓山庄庄主 阅读(562) 评论(0) 推荐(0) 编辑

摘要: function flashChecker(){var hasFlash=0; //是否安装了flashvar flashVersion=0; //flash版本if(document.all){var swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');if(swf) {hasFlash=1;VSwf=swf.GetVariable("$version");flashVersion=parseInt(VSwf.split(" ")[1].split("," 阅读全文

posted @ 2012-08-13 16:50 股墓山庄庄主 阅读(3145) 评论(0) 推荐(0) 编辑

摘要: if(navigator.userAgent.indexOf("MSIE")>0) 为ie浏览器。navigator.appName.indexOf("Microsoft") != -1 为ie浏览器。navigator.userAgent.indexOf("MSIE 6.0")>0 判断是否为ie6navigator.appVersion.match(/6./i)=="6." 判断是否为ie6JS获取浏览器信息 浏览器代码名称:navigator.appCodeName 浏览器名称:navigator 阅读全文

posted @ 2012-08-13 16:34 股墓山庄庄主 阅读(19800) 评论(0) 推荐(0) 编辑