从网页启动小程序 [英] launch applet from web page
本文介绍了从网页启动小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过单击链接/按钮使用网页启动小程序.我的意思是点击链接/按钮,我想启动一个小程序,它不应该嵌入到网页中.它应该在网页之外启动.提前致谢 !!
is it possible to launch an applet using webpage by clicking on link/button. I mean onclick of link/button, i want to launch an applet, which shouldn't be embedded with the webpage. It should launch outside the webpage. Thanks in advance !!
使用 javascript 我做了这件事,但我想要它像弹出 msgbox 一样.
using javascript i did this thing, but i want it like popup msgbox.
<script src="http://www.java.com/js/deployJava.js"></script>
<script>
function showApplet()
{
var attributes = {code:'myform.form.class',
archive:'applet.jar',
width:710, height:540} ;
var parameters = {fontSize:16} ;
var version = '1.6' ;
deployJava.runApplet(attributes, parameters, version);
}
</script>
<button onclick="javascript:showApplet()" value="Show" ></button>
推荐答案
使用 Java Web Start启动小程序一>.由于 Plug-In 2 架构,可以嵌入 JWS 小程序.但自从 JWS 推出以来,它们可以自由浮动.
Launch the applet using Java Web Start. Since the Plug-In 2 architecture, JWS applets could be embedded. But they could be launched free-floating since JWS was introduced.
这篇关于从网页启动小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文