deployJava.runApplet的替代方案

时间:2014-10-15 07:52:20

标签: java javascript applet

我想使用appletHTML页面中加载javascript,因此我尝试将其加载deployJava作为:

<script>

    var attributes = {
        id:         "myApplet",
        code:       "mycode",
        archive:    "myApplet.jar, lib/jna.jar, lib/junit-4.10.jar, lib/native.bat",
        width:      30,
        height:     30
    };
    var parameters = {jnlp_href:"launch.jnlp"}; <!-- Applet Parameters -->
    if (deployJava.versionCheck("1.6+") == false) 
    { 
        alert("No Java or wrong version"); 
    } 
    else 
    { 
        alert("Java found"); 
    }
    var version = "1.6"; <!-- Required Java Version -->
    deployJava.runApplet(attributes, parameters, version);
</script>

但我不想使用deployJava课程。有没有在javascript中加载applet的替代方法?

0 个答案:

没有答案