MarvinView Example - Embedding MarvinView applet in HTML pages

The basic way of embedding that works with Swing, with and without Java Plug-in is similar to the one described in MarvinSketch Example - Embedding MarvinSketch applet in HTML pages:
<script type="text/javascript" SRC="../../../marvin.js"></script>
<script type="text/javascript">
<!--
// 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 can be used the following way:

<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>
Description of the used parameters:

 

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