User:Eric Martz/How JSmol works: Difference between revisions
Eric Martz (talk | contribs) |
Eric Martz (talk | contribs) |
||
Line 9: | Line 9: | ||
==Invoking JSmol== | ==Invoking JSmol== | ||
The | The web page invokes JSmol, specifying a position on the page and a size. Generally, there is a JavaScript ''Info'' variable (Info = {...}) that specifies whether JSmol or Jmol is to be invoked, the size in pixels, and optionally the initial molecule to be displayed, and the display style (JSmol script commands), and other options. This Info variable is then referenced in the actual invocation of JSMol. | ||
The actual invocation generates the necessary HTML by a JavaScript call to Jmol.getApplet() or Jmol.getAppletHtml(). | The actual invocation generates the necessary HTML by a JavaScript call to Jmol.getApplet() or Jmol.getAppletHtml(). |