applet 嵌入div 后不能正常启动。
我在我的applet的init和start都有写log,当我把applet直接放在网页上applet,网页加载时能看见成功的有log.当我把applet放到div里面
applet就不能写log 了当我通过js调用applet的方法时 ,网页更加连关闭都不行了,只能在任务管理器下关闭。
<div id="appletdiv" style="display:none;z-index:9;width:0;height:0;">
<applet codebase="./" code="applet.MyApplet" archive="log4j-1.2.8.jar,myapplet.jar" id="myApplet" name="myApplet" height="0%" width="0%"></applet>
<div><applet codebase="./" code="applet.MyApplet" archive="log4j-1.2.8.jar,myapplet.jar" id="myApplet" name="myApplet" height="0%" width="0%"></applet>
是不是applet不能嵌入在div里面的吗!?