怎么全屏啊 请问我想让一个DIV以全屏模式显示如果实现,就是网页播放器哪样,全屏后,要按ESC才能恢复 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那种是FLASH...网页只能按F11全屏吧... 但是播放器是可以的啊,我想DIV应该也行的 通过JS把菜单栏,工具栏,状态栏全都去掉,然后DIV最大话;呵呵 设置窗体的高度宽度设置为屏幕的最大 不就全屏了<script><!--function windowopen(){var target="http://www.hongen.com"newwindow=window.open("","","scrollbars")if (document.all){newwindow.moveTo(0,0)newwindow.resizeTo(screen.width,screen.height)}newwindow.location=target}//--></script><form><input type="button" onClick="windowopen()" value="全屏显示" name="button"></form> div是页面的一个元素,它不可能超出页面的显示区域。播放器是flash,flash是可以实现全屏显示的。 var newWin = window.open("","_blank","fullscreen=yes"); newWin.moveTo(0,0) newWin.resizeTo(screen.width,screen.height) newWin.focus(); var doc = newWin.document; doc.body.style.overflow = "hidden" doc.write("<h2>按ESC退出</h2>"); doc.onkeypress = function(evt) { var evt = newWin.event || evt; if(evt.keyCode == '27') newWin.close(); } js问题 求高人分析下面的两个js jquery从已show的数据中查找 openlayers显示问题 开班收徒了 js二级联动问题 有用过FCKeditor控件的朋友进来聊聊. 日期问题 js简单问题 用js如何实现打开客户端的应用程序(如word.exe文件),谢谢高手了 javascript一个函数里面的内容看不懂,大家给解读一下. 再次问一下<SCRIPT event=controlEvent(string) for=someControl>,在线!!!
网页只能按F11全屏吧...
<script>
<!--
function windowopen(){
var target="http://www.hongen.com"
newwindow=window.open("","","scrollbars")
if (document.all){
newwindow.moveTo(0,0)
newwindow.resizeTo(screen.width,screen.height)
}
newwindow.location=target
}
//-->
</script>
<form>
<input type="button" onClick="windowopen()" value="全屏显示" name="button">
</form>
播放器是flash,flash是可以实现全屏显示的。
newWin.moveTo(0,0)
newWin.resizeTo(screen.width,screen.height)
newWin.focus();
var doc = newWin.document;
doc.body.style.overflow = "hidden"
doc.write("<h2>按ESC退出</h2>");
doc.onkeypress = function(evt)
{
var evt = newWin.event || evt;
if(evt.keyCode == '27')
newWin.close();
}