UI controls demo
Result
Source
Comments
<head> <script type="text/javascript"> var myJmol = 'myJmol'; var JmolInfo = { width:'100%', height:'100%', color:'#E2F4F5', j2sPath:'../jmol/j2s', serverURL:'../jmol/php/jsmol.php', use:'html5' } $(document).ready(function(){ $('#JmolDiv').html( Jmol.getAppletHtml(myJmol, JmolInfo) ); Jmol.script(myJmol, 'load ../model/caffeine.xyz'); }); </script> </head> <body> <div id="JmolDiv" style="width:30vmin; height:30vmin;"></div> </body>
Initializes, defines and inserts the JSmol object
Atoms
a radio group
a button
a checkbox
a link
a drop-down menu