

JSmol is designed to display data files that contain atoms that is, atomic resolution molecular models. (Local files that invoke JSmol do not work when dropped into Chrome or Edge.) You can drag these local files from the downloaded file set, and drop them into the Firefox or Safari web browsers (or Internet Explorer, but it runs JSmol very slowly), to see the web pages they generate. These and other demonstration files will be found in the jsmol directory in the downloaded package from /download. The actual invocation generates the necessary HTML by a JavaScript call to Jmol.getApplet() or Jmol.getAppletHtml().Įxamples can be seen in the files supersimple.htm, simple.htm, simple_old.htm, etc. This Info variable is then referenced in the actual invocation of JSMol. 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. The web page invokes JSmol, specifying a position on the page and a size.

All these are included in the download package from /download.
#Jmol xyz double bond archive
If the Jmol Java applet is to be invoked, the Java archive files for Jmol (filenames ending.
#Jmol xyz double bond code
In order to invoke JSmol, the files on the website server must also include the javascript code for JSmol (filenames ending. JavaScript (not to be confused with Java) is a programming language that is interpreted by the web browser. js) and some cascading style sheet files (filenames ending. And usually there are also some JavaScript files (filenames ending. gif, etc.) for images that are displayed in the web pages. Usually there are also some image files (filenames ending. JSmol is updated frequently at Jmol.Org, but the version of JSmol on a given website remains fixed until the site administrator upgrades it.Ī website has, at the very least, some hypertext markup language files (filenames ending. Thus, the version of JSmol is matched to the web pages. The web browser simply displays JSmol, and molecular data, provided by the server. The website server provides not only the web pages, but also JSmol.
