[查看演示] 源码如下 ---------------------------------------------------------- <HTML>
<HEAD>
<TITLE>全屏显示-www.51windows.Net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME="Author" CONTENT="51windows,海娃,haiwa">
<META NAME="Description" CONTENT="Power by 51windows.Net">
</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>
</HTML>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> |