Hi, I haven’t used Jmol for a while and I’m struggling to figure out how to get some very simple things working using the new JSmol
I have been trying to understand how to get a button or a check box to appear so I have tried to adapt some of the code in one of the examples in the download “supersimple.htm” The line I added, thinking this would make a check box is underlined below, any pointers to what else I need to add to get such things to work would be much appreciated, I tried all sorts over the last few hours but have so far failed to understand what else I should do or change here. Thanks for any help Steve <!DOCTYPE html> <html> <head> <title>Super-Simple JSmol</title> <meta charset="utf-8"> <script type="text/javascript" src="JSmol.min.js"></script> <script type="text/javascript"> $(document).ready(function() { Info = { width: 400, height: 400, debug: false, j2sPath: "j2s", color: "0xC0C0C0", disableJ2SLoadMonitor: true, disableInitialConsole: true, addSelectionOptions: true, serverURL: "http://chemapps.stolaf.edu/jmol/jsmol/php/jsmol.php", use: "HTML5", readyFunction: null, script: "load $caffeine" } $("#mydiv").html(Jmol.getAppletHtml("jmolApplet0",Info)) }); </script> </head> <body> <span id=mydiv></span> <a href="javascript:Jmol.script(jmolApplet0, 'spin on')">spin on</a> <a href="javascript:Jmol.script(jmolApplet0, 'spin off')">spin off</a> Jmol.jmolCheckbox(jmolApplet0, "spin on", "spin off", "toggle spin") </body> </html> If you are not the intended recipient, you should not read, copy, disclose or rely on any information contained in this email, and we would ask you to contact the sender immediately and delete the email from your system. Although the James Hutton Institute has taken reasonable precautions to ensure no viruses are present in this email, neither the Institute nor the sender accepts any responsibility for any viruses, and it is your responsibility to scan the email and any attachments. The James Hutton Institute is a Scottish charitable company limited by guarantee. Registered in Scotland No. SC374831 Registered Office: The James Hutton Institute, Invergowrie Dundee DD2 5DA. Charity No. SC041796
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users