Page 2: Embedding Jmole Images

[Home] [Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [Page 6] [Page 7]


Setting Up a Site for Embedding Jmol Images:

Below is an embedded Jmol image. It contains an initialization script which highlights and orients it to look like the image on Page 1. (This is a link to page 1.)

Jmol images are Java applets. Because Jmol is Java based, it does not require anything of the browser except that it be Java capable. There are no plugins that need to be installed for a browser to view a web page containing a Jmol image. The software required for a browser to view a Jmol image is downloaded to the browser when a web page containing Jmol image is loaded into the browser. For this to work, the Jmol applet code must be reside in the web site that serves pages containing Jmol images.


Embedding a Jmol Image Into a Web Page

Here are the steps that can be used to embed a Jmol image in a web page. The image will be placed on page1.html, within the new site.

Three Javascripts are needed to embed a Jmol image into page1.html; one in the <HEAD> section of the page, and the other two in the <BODY> section. The first one estabishishes a link to the "Jmol.js" script library. The second one, called "jmolInitialize", should be placed at the beginning of the <BODY> section and tells the page where the JmollApplet files are located. The third one, called "jmolApplet", embeds the Jmol image on the page; it should be placed where you want the image to be located.

This Jmol image shows the 3-Isopropylmalate dehydorgenase molecule in the default format, which is ball & stick. To have this image look like the one shown above, we need to add some additional RasMol commands to the script


[Home] [Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [Page 6] [Page 7]