本文介绍了从网页上推出小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能通过点击链接/按钮启动使用网页的小程序。我的意思的onclick链接/按钮,我想推出一个小程序,它不应该被嵌入的网页。它应该推出网页之外。提前致谢 !!

使用

JavaScript的我做了这件事,但我想它像弹出MSGBOX。

 <脚本SRC =htt​​p://www.java.com/js/deployJava.js>< / SCRIPT>
<脚本>
    功能showApplet()
    {
    VAR属性= {code:'myform.form.class',
                      档案:applet.jar',
                      宽度:710,高度:540};
    VAR参数= {字体:16};
    VAR的版本='1.6';
    deployJava.runApplet(属性,参数,版本);
}
< / SCRIPT>
 <按钮的onclick =JavaScript的:showApplet()值=显示>< /按钮>


解决方案

启动使用 Java Web Start的。由于插件2的体系结构,JWS小程序可以嵌入。但是,他们可以推出自由浮动以来JWS进行了介绍。

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 !!

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>
解决方案

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.

这篇关于从网页上推出小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:06