代码最常用的代码比较简单
代码如下:
<script language="javascript">
selfmoveto()
selfresizeto(screenavailwidthscreenavailheight)
</script>
代码
以下代码放在<head></head>之间:
代码如下:
<script language=″javascript″>
<!--function winfix() {
if (document.layers) {
width=screenavailWidth-;
height=screenavailHeight-;
} else {
var width=screenavailWidth-;
var height=screenavailHeight;
}
selfresizeTo(width height);
selfmoveTo( );
}
//-->
</script>
以下代码放在<body>Tag里
代码如下:
<body onload=″winfix()″>
代码
代码如下:
<script language="javascript">
selfmoveTo()
selfresizeTo(screenavailWidthscreenavailHeight)
</script>
<OBJECT id="max" type="application/xoleobject" classid="clsid:adbadffcf
aaba">
<PARAM name="Command" value="Maximize"></OBJECT>
<BODY onload="if(documentbodyoffsetWidth<screenwidth)maxClick()">>
代码
代码如下:
<SCRIPT>
var mywidth
if (navigatorappNameindexOf(Netscape) != ) {
mywidth=parseInt(windowouterWidth);
//alert("ns")
}
else{
if (navigatorappNameindexOf(Microsoft) != ) {
mywidth=documentbodyclientWidth;
//alert("ie")
}
}
var ScreenOffset;
if (mywidth <= ) {
//alert("")
}else{
ScreenOffset = parseInt((mywidth )/);
ScreenOffset = ;
// alert("")
}
fwLoadMenus();
windowonresize = function (){
if (navigatorappNameindexOf(Netscape) != ) {
mywidth=parseInt(windowouterWidth);
if(selfscreenLeft>){
maximizeClick();
}
}
else{
if (navigatorappNameindexOf(Microsoft) != ) {
mywidth=documentbodyclientWidth;
if(selfscreenLeft>){
maximizeClick();
}
}
}
}
function ChangeLocation(){
var size = screenwidth;
if(size!=""){
documentlocation="index__aspx";
}
}
</SCRIPT>