<applet code = "GlobalApplet.class" archive  = "GlobalApplet.jar" 
 width = "600" height = "480" id = applet1> 
</applet> 
<input type = button value = go name = try onclick="resizeApplet()">
<script>
function resizeApplet(){
applet1.height = 500;
applet1.width = 500;
}
</script>

解决方案 »

  1.   

    To tripofdream(梦之旅):能再问一个问题吗?在applet里能不能调用ActiveX?
      

  2.   

    //自动初始化自动调整大小
    <script language="vbScript">
    <!--
    Sub Window_Onload
    Dim nWidth,nHeight
    nWidth =document.body.clientWidth
    nHeight=document.body.clientHeight
    if nWidth>0 and nHeight>0  then
    on error resume next
                    rightright.width=nWidth
                    rightright.height=nHeight               
    end if
    End Sub
    Sub Window_OnResize
    Dim nWidth,nHeight
    nWidth =document.body.clientWidth
    nHeight=document.body.clientHeight
    if nWidth>0 and nHeight>0 then
           on error resume next
           rightright.width=nWidth
           rightright.height=nHeight        
    end if
    End Sub
    -->
    </script>
    <applet name=rightright code = "GlobalApplet.class" archive  = "GlobalApplet.jar" 
     width = "600" height = "480" id = applet1> 
    </applet> 
      

  3.   

    谢谢! shangxinyu123(龙)!你知道在Applet里能不能吊ActiveX呢?
      

  4.   

    在applet里调用ActiveX?applet中可以调用html中的客户端函数,再通过客户端函数调用ActiveX
      

  5.   


    <applet code = "GlobalApplet.class" archive  = "GlobalApplet.jar" 
     width = "100%" height = "100%"> 
    </applet>这么简单的东西还用得着这么复杂吗?用100%不就行了