User:Jaime Prilusky/Test/JSmolExtensionExamples
From Proteopedia
(Difference between revisions)
Line 2: | Line 2: | ||
<StructureSection load='3rec' size='340' side='right' caption='Caption for this structure' scene=''> | <StructureSection load='3rec' size='340' side='right' caption='Caption for this structure' scene=''> | ||
- | The code below will create a green link (Proteopedia's links that interact with applets are green) with the text ' | + | The code below will create a green link (Proteopedia's links that interact with applets are green) with the text 'label atoms' that will execute the script inside <script> and </script> |
<pre> | <pre> | ||
<jmol> | <jmol> | ||
<jmolLink> | <jmolLink> | ||
- | <script> select all; | + | <script> select all; label "%a";select _H;label off;select ALL; </script> |
- | <text> | + | <text>label atoms</text> |
</jmolLink> | </jmolLink> | ||
</jmol> | </jmol> | ||
Line 14: | Line 14: | ||
<jmol> | <jmol> | ||
<jmolLink> | <jmolLink> | ||
- | <script> select all; | + | <script>select all;label "%a";select _H;label off;select all;</script> |
- | <text> | + | <text>label atoms</text> |
</jmolLink> | </jmolLink> | ||
</jmol> | </jmol> |
Revision as of 03:40, 14 July 2020
Plain examples for JSMolExtension
|