HTML to create the page on the left

<HTML>
<HEAD>
<TITLE>Enhanced web document with Chime - Example 4</TITLE>
</HEAD>
<body bgcolor=#FFFFFF>

<h2>Example 4 - Using buttons to control the view</h2>
<center>
<b>L-Alanine</b><p>

<embed src="L-alanine.xyz" height=200 width=200 name="alanine" display3D=ball&stick frank=no>

<p>
<table>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="spacefill off; wireframe on; color atoms grey; select *.o; spacefill 150; color atoms cpk"> Show oxygen atoms

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="spacefill off; wireframe on; color atoms grey; select *.n; spacefill 150; color atoms cpk"> Show nitrogen atoms

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="spacefill off; wireframe on; color atoms grey; select atomno=0; spacefill 150; color atoms cpk"> Show chiral carbon

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="spacefill off; wireframe on; color atoms grey; select (atomno=1) or (atomno>=4) and (atomno<=7) or (atomno=10); spacefill 150; color atoms cpk"> Show atoms 1, 4-7, and 10

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="restrict elemno<>1; wireframe on; spacefill 150; color atoms cpk"> Remove hydrogens

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="select *; wireframe 40; spacefill 100; color atoms cpk"> Show all atoms

</td></tr>
<tr><td>

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script=" label on"> label atoms

<embed type="application/x-spt" width=12 height=12 button=push target="alanine" script="label off"> labels off

</td></tr>
</table>
<p>
</body>
</html>

On to Example 5


© Steven M. Bachrach and Internet Journal of Chemistry