MarvinView Example - Embedding MarvinView applet in HTML pages

The basic applet tag that works with Swing, with and without Java Plug-in is similar to the one in MarvinSketch Example - Embedding MarvinSketch applet in HTML pages.
<script LANGUAGE="JavaScript1.1" SRC="../../../marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
// marvin_jvm = "builtin"; // "builtin" or "plugin"
mview_begin("../../..", 200, 200); //arguments: codebase, width, height
// you could also use the mview_begin("../../..", 200, 200, true ); function call to load the applet without splash screen.
mview_param("mol", "../../../mols-2d/caffeine.mol");
mview_end();
//-->
</script>

The traditional applet tag for MarvinView and the built-in JVM is the following:

<applet CODEBASE="../../.." ARCHIVE="appletlaunch.jar" CODE="JMViewLaunch" WIDTH=200 HEIGHT=200>
<param NAME="mol" VALUE="../../../mols-2d/caffeine.mol">
<strong>Your browser does not support the applet tag.</strong>
</applet>

 

The next example shows how to load molecules from an SD file to a molecule table.