Page tree
ParameterMeaningDefault
molThe URL of the molecule file or the file itself (inline) in any supported structure format such as MDL mol, compressed mol, SMILES, SMARTS, etc format.
For multiline values of this parameter, it is recommended to specify escapChar="\" and replace or precede each newline occurring in the string with "\n". The escape character should also be escaped as "\\".
The file format and/or import options can be specified if one of the following forms is used:
"file{options}",
"file{MULTISET,options}",
"file{format:}",
"file{format:options}", or
"file{format:MULTISET,options}".
If the MULTISET option is specified, then a multi-molecule file is read into one molecule object containing multiple atom sets.
Examples: "foo.xyz{f1.4C4}", "foo.xyz.gz{gzip:xyz:MULTISET,f1.4C4}"
 
preloadDeprecated 
cacheMolsStore loaded molecules in an internal cache (true or false). 
loadMolsComma-separated list of molfiles to preload. Useful for caching molecules in JavaScript "slideshows". 
molChanged0
molChanged1
molChanged2
...
Evaluates a JavaScript code when the molecule is loaded or changed in the specified cell. The number in the parameter name determines the cell index. If no molecule table, use molChanged0 to refer to the molecule. The parameter value should be a JavaScript code. E.g.:
    <param name="molChanged0" value="alert('First molecule is modified')">
    
 
listenpropertychangeEnable/disable property change event listener of the applet. If the listener is enabled the applet will call the propertyChange(prop) JavaScript method. The code snippet below demonstrates the handling of property change events in JavaScript. Note: If the MAYSCRIPT option is not specified, JavaScript can not be evaluated from the applet.
     function propertyChange(prop) {
        if(document.eventform != null) {
            var s = document.eventform.txt.value;
            document.eventform.txt.value = s + "\n" + prop;
        }
     }

     mview_mayscript=true;
     mview_begin("marvin",400,300);
     mview_param("listenpropertychange","true");
     mview_end();
     
If you also specify the "appletid" parameter, its value will appearin the name of the property as prefix (e.g.: "firstapplet.mol").
false
appletidIdentify applet in property change event notifications to JavaScript. Use this parameter with listenpropertychange  when more than one applet are located on the same web page. It helps to identify which applet sent the notification. 
listenmouseeventEnable/disable mouse event listener of the applet. If the listener is enabled the applet will call the mouseEvent(evt) JavaScript method.
The code snippet below demonstrates the handling of mouse events in JavaScript. Note: If the MAYSCRIPT option is not specified, JavaScript can not be evaluated from the applet.
    function mouseEvent(evt) {
        var s = document.mouseform.txt.value;
        s = s + evt + "\n";
        document.mouseform.txt.value = s;
    }

     mview_mayscript=true;
     mview_begin("marvin",400,300);
     mview_param("listenmouseevent","true");
     mview_end();
false
skinChange the component's Look & Feel (only in SWING applet). If you do not specify this parameter, Marvin will use the default LookAndFeel style.
This parameter value is the name of the new LookAndFeel class.
javax.swing.plaf
.metal
.MetalLookAndFeel
splashScreenImageChange the component's Splash Screen displayed at startup. If you do not specify this parameter, Marvin will use its default splash screen.
This parameter value is the relative path of the image, specify relatively to the CODEBASE
Note: Animated gif files can be displayed badly(flashing, or too fast animation)
null
licenseSets the contents of a pre-read license file to the license manager to read and validate licenses from. 
licenseFileSets the license file location to the license manager to read and validate licenses from. 
onErrorA string containing a javascript code, that has to be run by the applet, if it has a failure at initialization.
The %s wildcard can be used to include the error message given by the applet inside the javascript code.
If used with alertError also set to true, the alert window will be shown first, and after the user has pressed the OK button on the alert will the given code run.
 
alertErrorIf this parameter is set to true, the applet will show a javascript alert window with an error message, if there was a problem in the initialization process of the applet. 
legacy_lifecycleThe "legacy_lifecycle" is a general Java applet parameter. If its value is true, it helps avoid destroying the applet when you leaves the applet page. If you use "marvin.js", it sets its value to true automatically unless you specify its value explicitly. By the way, the defalut value of this parameter in Java is false. 
viewHelpViewer help contents. Accepts relative URL to the applet codebase or any absolute URL. chemaxon/marvin/help/view-index.html
viewQuickHelpViewer quick help. Accepts relative URL to the applet codebase or any absolute URL. chemaxon/marvin/help/view.html