服务热线:

021-51085186

021-51085186
2015-03-19

满屏显示网页代码

您现在的位置:首页 » 文章中心 » 协策观点

<HTML>
<HEAD>
<TITLE>满屏显示-上海网站建设</TITLE>
</HEAD>
<BODY style="overflow:auto;">
<SCRIPT LANGUAGE="JavaScript">
<!--
var mode=0
function fullme(e)
{
if(document.all)
{
if(top.document.body.offsetWidth==screen.availWidth)
{
top.moveTo(0,0);
top.resizeTo(screen.availWidth,screen.availHeight);
}
else
{
top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);
top.resizeBy(screen.availWidth-top.document.body.offsetWidth,screen.availHeight-top.document.body.offsetHeight);
}
}
else
{
alert("请使用IE")
}
}
//-->
</SCRIPT>
<button onclick='fullme(event);'>全屏</button>,在现在的框架结构中有bug,点击左边的列表前的图标打开新窗口!
</BODY>