Difference between revisions of "Uploaded XYZ File"

From Jmol
Jump to navigation Jump to search
(Uploaded XYZ File)
(merging test with more code from Sandbox)
Line 1: Line 1:
 
== Uploaded XYZ File ==
 
== Uploaded XYZ File ==
 +
This uses <code>uploadedFileContents</code> tag with an XYZ file:
  
 
<jmol>
 
<jmol>
 
   <jmolApplet>
 
   <jmolApplet>
<size>200</size>
+
    <name>chair</name>
<color>orange</color>
+
    <size>200</size>
     <UploadedFileContents>Chair.xyz</UploadedFileContents>
+
    <color>orange</color>
 +
     <uploadedFileContents>Chair.xyz</uploadedFileContents>
 
   </jmolApplet>
 
   </jmolApplet>
 +
</jmol>See the page for this file: [[:file:Chair.xyz]]
 +
 +
<jmol>
 +
  <jmolLink>
 +
    <script>color atoms red</script>
 +
    <text>color in red</text>
 +
  </jmolLink>
 +
</jmol>
 +
<jmol>
 +
  <jmolLink>
 +
    <script>color atoms blue</script>
 +
    <text>color in blue</text>
 +
  </jmolLink>
 +
</jmol>
 +
<jmol>
 +
  <jmolCheckbox>
 +
    <scriptWhenChecked>color atoms lime</scriptWhenChecked>
 +
    <scriptWhenUnchecked>color atoms cpk</scriptWhenUnchecked>
 +
    <text>this checkbox colors atoms lime or cpk</text>
 +
  </jmolCheckbox>
 
</jmol>
 
</jmol>
 
 
<jmol>
 
<jmol>
 
   <jmolCheckbox>
 
   <jmolCheckbox>
     <scriptWhenChecked>select all; color red</scriptWhenChecked>
+
     <scriptWhenChecked>select all; color purple</scriptWhenChecked>
     <scriptWhenUnchecked>select all; color blue</scriptWhenUnchecked>
+
     <scriptWhenUnchecked>select all; color pink</scriptWhenUnchecked>
     <text>testing jmolCheckbox, should color red/blue</text>
+
     <text>this jmolCheckbox colors atoms purple or pink</text>
 
   </jmolCheckbox>
 
   </jmolCheckbox>
 +
</jmol>
 +
<jmol>
 +
  <jmolButton>
 +
    <script>color atoms cyan</script>
 +
    <text>color in cyan</text>
 +
  </jmolButton>
 +
</jmol>
 +
Color atoms:
 +
<jmol>
 +
  <jmolMenu>
 +
    <item>
 +
      <script>color atoms cpk</script>
 +
      <text>default</text>
 +
    </item>
 +
    <item>
 +
      <script>color atoms yellow</script>
 +
      <text>yellow</text>
 +
    </item>
 +
    <item>
 +
      <script>color atoms blue</script>
 +
      <text>blue</text>
 +
    </item>
 +
  </jmolMenu>
 
</jmol>
 
</jmol>

Revision as of 19:47, 23 November 2010

Uploaded XYZ File

This uses uploadedFileContents tag with an XYZ file:

See the page for this file: file:Chair.xyz

Color atoms: