现在基本上java和ie无关,如果要用真正的java,必须在每个客户按照jre。
如果采用如下的写法嵌入到html,可以让客户打开页面的时候,自动下载jre。
<OBJECT
classid = "clsid:CAFEEFAC-0014-0002-0002-ABCDEFFEDCBA"
codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4_2_02-windows-i586.cab#Version=1,4,2,20"
WIDTH = 400 HEIGHT = 400 >
<COMMENT>
<EMBED
type = "application/x-java-applet;jpi-version=1.4.2_02" \
CODE = ArcTest.class \
WIDTH = 400 \
HEIGHT = 400 \
scriptable = false \
pluginspage = "http://java.sun.com/products/plugin/index.html#download">
<NOEMBED>
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET> tag!
</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
如果采用如下的写法嵌入到html,可以让客户打开页面的时候,自动下载jre。
<OBJECT
classid = "clsid:CAFEEFAC-0014-0002-0002-ABCDEFFEDCBA"
codebase = "http://java.sun.com/update/1.4.2/jinstall-1_4_2_02-windows-i586.cab#Version=1,4,2,20"
WIDTH = 400 HEIGHT = 400 >
<COMMENT>
<EMBED
type = "application/x-java-applet;jpi-version=1.4.2_02" \
CODE = ArcTest.class \
WIDTH = 400 \
HEIGHT = 400 \
scriptable = false \
pluginspage = "http://java.sun.com/products/plugin/index.html#download">
<NOEMBED>
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET> tag!
</NOEMBED>
</EMBED>
</COMMENT>
</OBJECT>
如果一个黄色网站需要applet才能看在线电影,估计让客户装个jre也不是什么难题。
哈哈,说的好这是用户的意愿