Hello,

Traditionally I have used jsmol.lite and I was able to set these
parameters from the info block. I decided that I wanted a right-click
menu so I am reworking my webpage.

On my page, I start the spinning without user intervention once loaded.
I accomplished this with the isReady function.

I am trying to set my frame rate, and X,Y,Z spin rates.  Adding the
rates to the info block has no effect. I have experimented with the
Jmol.script line in the jmol_isReady function, so far with no luck. How
can I do this?

Here is my script so far:

<script type="text/javascript">
var jmolApplet0;

var use = "HTML5"
var s = document.location.search;

Jmol._debugCode = (s.indexOf("debugcode") >= 0);

jmol_isReady = function(applet) {
    document.title = (applet._id + " - Jmol " + Jmol.___JmolVersion)
    Jmol._getElement(applet, "appletdiv").style.border="1px solid blue"
        Jmol.script(jmolApplet0, 'spin on')
} 

var Info = {
        width: 300,
        height: 300,
        debug: false,
        color: "#000000",
        addSelectionOptions: true,
        serverURL: "php/jsmol.php",
        use: "HTML5",
        j2sPath: "jMol/j2s",
        readyFunction: jmol_isReady,
        src: "mdl/<?php echo $myMolicule ?>.txt",
        disableJ2SLoadMonitor: true,
        disableInitialConsole: true,
        allowJavaScript: true,
    }

    $(document).ready(function() {
      $("#appdiv").html(Jmol.getAppletHtml("jmolApplet0", Info))
    })
    var lastPrompt=0;

</script>



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to