ITeye博客

Javascript在IE下控制浏览器全屏

cisumer · 2016-06-23 16:07 · javascript · Web前端 · Markdown

		jQuery("#fullBtn").text(" 全屏显示");	
		function fullscreen(){
				//模拟F11
				var WsShell = new ActiveXObject('WScript.Shell')
     			WsShell.SendKeys('{F11}');
     			//全屏状态下
				if(isFull=="full"){
					jQuery(parent._ChildMenu).show();
					jQuery(parent._TableHeader).show();
					jQuery("#fullBtn").text(" 全屏显示");
					isFull="";
					return;
				}
     			//
				jQuery(parent._ChildMenu).hide();
				jQuery(parent._TableHeader).hide();
				jQuery("#fullBtn").text(" 退出全屏");
				isFull="full";
		}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。