User b5f79361ac
30-01-2009 17:49:03
Hi,
I used the following javascript to inialize the marvie view result of compound search. It is 3D automatic rotated animation. It is wonderful. But I wonder how I change it as static 2D image as default. What are the parameters named?
Thanks!
*****************************************************************
<script LANGUAGE="JavaScript1.1" SRC="jchem/marvin/marvin.js" >
</script>
<script LANGUAGE="JavaScript1.1">
<!--
<% /* Intializing the applet */ %>
mview_name="mview";
mview_begin("jchem/marvin","100","100");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("navmode", "rot3d");
mview_param("molbg", "#ffffff");
mview_param("rendering", "ballstick");
mview_param("bgcolor", "#e0e0e0");
mview_param("border", "1");
mview_param("animSync","true");
mview_param("animate", "all");
mview_param("layout0", ":4:1:"+"M:0:0:1:1:c:n:1:10");
<% /* Molecule */%>
mview_param("param0", ":"+"M:100:100");
mview_param("cell0","|<%= HTMLTools.convertForJavaScript(dbMolfile) %>");
mview_end();
//-->
</script>
I used the following javascript to inialize the marvie view result of compound search. It is 3D automatic rotated animation. It is wonderful. But I wonder how I change it as static 2D image as default. What are the parameters named?
Thanks!
*****************************************************************
<script LANGUAGE="JavaScript1.1" SRC="jchem/marvin/marvin.js" >
</script>
<script LANGUAGE="JavaScript1.1">
<!--
<% /* Intializing the applet */ %>
mview_name="mview";
mview_begin("jchem/marvin","100","100");
mview_param("rows", "1");
mview_param("cols", "1");
mview_param("navmode", "rot3d");
mview_param("molbg", "#ffffff");
mview_param("rendering", "ballstick");
mview_param("bgcolor", "#e0e0e0");
mview_param("border", "1");
mview_param("animSync","true");
mview_param("animate", "all");
mview_param("layout0", ":4:1:"+"M:0:0:1:1:c:n:1:10");
<% /* Molecule */%>
mview_param("param0", ":"+"M:100:100");
mview_param("cell0","|<%= HTMLTools.convertForJavaScript(dbMolfile) %>");
mview_end();
//-->
</script>