applet-template.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <title>Launcher Page for ${applet.title} Applet</title>
  5. </head>
  6. <body>
  7. <div align="center">
  8. <h2>Launcher Page for ${applet.title} Applet</title>
  9. <br/>
  10. <!-- ***************************************************** -->
  11. <!-- Copy this section into your website to use the applet -->
  12. <!-- ***************************************************** -->
  13. <script src="http://www.java.com/js/deployJava.js"></script>
  14. <script>
  15. var attributes = {code:'org.lwjgl.util.applet.AppletLoader',
  16. archive:'${applet.archive}',
  17. codebase:'.',
  18. width:${applet.width}, height:${applet.height}};
  19. var parameters =
  20. {
  21. AppClass:'${applet.main.class}',
  22. al_title:'${applet.title}',
  23. al_main:'com.jme3.app.AppletHarness',
  24. al_logo:'${applet.logo}',
  25. al_progressbar:'appletprogress.gif',
  26. al_jars:'${applet.classpath}',
  27. al_windows:'windows_natives.jar.lzma',
  28. al_linux:'linux_natives.jar.lzma',
  29. al_mac:'macosx_natives.jar.lzma',
  30. al_solaris:'solaris_natives.jar.lzma',
  31. separate_jvm:'true',
  32. boxborder:'false',
  33. centerimage:'true',
  34. image:'${applet.logo}',
  35. java_arguments:'-Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false'
  36. };
  37. var version = '1.5' ;
  38. deployJava.runApplet(attributes, parameters, version);
  39. </script>
  40. <!-- ***************************************************** -->
  41. <!-- ***************************************************** -->
  42. </div>
  43. </body>
  44. </html>