[Home] [Page 1] [Page 2] [Page 3] [Page 4] [Page 5] [Page 6] [Page 7]
Tables can be used to lay out objects on a page. Below is an example for using a 2-column, 1-row table to display a Jmol image along with text:
To insert a table:
Buttons and other control elements can be used to send RasMol script commands to embed Jmol images. The Jmol.js library contains functions for embedding control elements. A description of the functions contained in the Jmol.js library can be found here. Below are some examples of some of the control elements included in the Jmol.js library:
Button:
Checkbox:
Radio button group:
Menu: color by
Creating Jmol buttons and other control elements works similarly to creating a Jmol image; drag a JavaScript icon from the Basic tab of the Object pallet to the location where you want the control element located, then enter the JavaScript function from the Jmol.js library that will produce the desired control element.
And excellent resource for learning Rasmol script commands is the Online Macromolecular Museum Site, which was created by David Marcey at California Lutheran University. This site contains, among other things, examples of buttons along with the scripts that they execute. Many of the exhibits at the Online Macromolecular Museum Site still use the Chime plugin; for these you will need to use a Netscape 4.x browser the the Chime plugin installed. Below are a couple of links to exhibits in the museum, which use Jmol: