MarvinSpace


The traditional way to put the MarvinSpace applet to a web page is by writing the following text in the HTML:
    <applet codebase="../../.."
        code="chemaxon/marvin/space/gui/MSpaceApplet" name="MSpaceApplet" width=400 height=400
        archive="mspace.jar,jmarvin.jar,jogl.jar">
    <param name="progressbar" value="true">
    <param name="selectionpanel" value="false">
    <param name="molecule" value="http://www.chemaxon.com/marvinspace/data/1ETS.mol">
    </applet>
    
Let's go through the special elements: To correctly work with Sun's Java Plugin, marvin.js provides platform dependent solutions. Apart from the standard <applet> tag, it uses <embed> for Firefox (mozilla) and <object> for Microsoft Internet Explorer. The applet can be embedded in HTML pages using marvin.js the following way:
<script LANGUAGE="JavaScript" SRC="../../../marvin.js"></script>
<script LANGUAGE="JavaScript">
<!--
mspace_name="MSpaceApplet"; // naming the applet to allow JavaScript calls
mspace_begin(mspace_name,"../../..", 400, 400); // arguments: NAME, CODEBASE, WIDTH, HEIGHT
mspace_param("progressbar","true");
mspace_param("selectionpanel","false");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1ETS.mol");
msspace_end();
//-->
</script>
 

Copyright © 2004-2009 ChemAxon Ltd.    All rights reserved.