Jmol “pop-up” and “pop-in”: How to delay the appearance of Jmol panel until the user requests it

A- Versatile version:

The user clicks to see the 3D model, and chooses whether it will be opened inline within the page (“pop-in”), or in a common pop-up window, or in separate pop-up windows for each model.

Method A, version 2007.04.23.  Compatible with: Jmol 10.2 or later

See it in action   Template for download (for instructions, see the read-me.txt file included)

B- Simpler version:

The user clicks to see the 3D model, always inline within the page (“pop-in”).

Method B, version 2011.11.17.  Compatible with: Jmol 11.0 or later

See it in action   Template for download (for instructions, see the read-me.txt file included)

Suggestions for improvement are welcome.

For an alternative method, see Bill Reusch's page using innerHTML.


Pages coded by Angel Herráez, University of Alcalá

Offered under Creative Commons Attribution-ShareAlike License.