关于Applet动态区域变化的问题?请大家帮忙一下!!!
我在IIS服务下把applet插入asp文件中,客户端浏览器只是包含原始的虚拟机。
<html>
<head>
<title></title>
<Script language="JavaScript">
var appletWidth=600;
var appletHeight=500;
function windowOnLoad()
{
if(appletWidth<document.body.clientWidth)
{
appletWidth=document.body.clientWidth;
}
if(eval(appletHeight+50)<document.body.clientHeight)
{
appletHeight=document.body.clientHeight-50;
}
rightright.width=appletWidth;
rightright.height=appletHeight;
}
function windowOnSize()
{
if(appletWidth<document.body.clientWidth)
{
appletWidth=document.body.clientWidth;
}
if(eval(appletHeight+50)<eval(document.body.clientHeight-50))
{
appletHeight=eval(document.body.clientHeight-50);
}
rightright.width=appletWidth;
rightright.height=appletHeight;
}
</Script>
</head>
<body bgcolor="#ffffff" leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" onLoad="windowOnLoad()" onResize="windowOnSize()">
<div>
<APPLET id="rightright" name="rightright" width=0 height=0 align="right" style="LEFT: 0px; TOP: 0px">
<PARAM NAME="codebase" VALUE=".">
<PARAM NAME="code" VALUE="com.route.RouteMap">
<PARAM NAME="archive" VALUE="ROUTEMAP.jar">
</APPLET>
</div>
</body>
</html>