direct call for use in href tags or via AJAX: https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone https://chemapps.stolaf.edu/jmol/jmol.php?model=caffeine&image2d anchor format (creates link to opens new tab/page or replaces current page): <a target=_blank href="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone">3D model</a> <a href="https://chemapps.stolaf.edu/jmol/jmol.php?model=caffeine&image2d">2D drawing</a> popup format (creates link to pop up a new window of a specified size): <script type="text/javascript" src="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&link=3D model"></script> inline format (displays applet on current page): <script type="text/javascript" src="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&inline"></script> <script type="text/javascript" src="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&image2d&inline"></script> <script type="text/javascript" src="https://chemapps.stolaf.edu/jmol/jmol.php?model=acetone&image2d&inline"></script> options: &source=... (option 1) file source of model, starting with http:// &model=... (option 2) compound name or SMILES string for NIH CACTVS server test &pdbid=xxxx (option 3) PDB ID for model from RCSB test &pdbid=xxx (option 4) PDB ID for ligand from RCSB test &id=... optional id for applet (necessary if multiple applets are on a page) &isfirst=true set this false if this is not the first applet on the page; only for inline &inline optional return JavaScript to create applet on current page &link=... optional text for <a href=...>xxxx tag for a popup window &script=... optional script (should be simple) &scriptvar=... optional predefined script variable (JavaScript variable name or function, not the script itself; &inline only) &width=... optional width, e.g.: 300 or 100% (default 600) &height=... optional height, e.g.: 300 or 100% (default 600) &caption=... optional caption (only for anchor-type - not &inline and no &link) &title=... optional title (not &inline) &image2d=true option to produce an image, not a JSmol window anchor example: https://chemapps.stolaf.edu/jmol/jmol.php?model=aspirin&caption=aspirin model popup example: inline example:
caffeine | tylenol | morphine (2D) |