Apr 21, 2011

How to add "JmolApplet" in a webpage

What we need is:
1) JmolApplet.jar     (http://sourceforge.net/projects/jmol/)
2) Java script file (*.txt)
3) Molecular structure file (*.mol, *.pdb, *.xyz, etc)

1. HTML code (som.htm)

<head><title>Soil Organic Matter</title></head>
<applet mayscript="true" height="100%" width="100%" archive="JmolApplet.jar" code="JmolApplet" name="jmol">
<param value="true" name="progressbar">
<param value="blue" name="progresscolor">
<param value="this will take a while the first time!" name="boxmessage">
<param value="#112233" name="boxbgcolor">
<param value="#778899" name="boxfgcolor">
<param name="script" value="script som.txt">
<!-- som.txt includes "load som.mol; wireframe 40; spacefill 120" -->

2. Java script file (som.txt)

load som.mol; wireframe 40; spacefill 120

3. Molecular structure file (som.mol)
e.g., http://virtual-museum.soils.wisc.edu/som/som.mol

No comments:

Post a Comment