Difference between revisions of "Uploaded XYZ File"

From Jmol
Jump to navigation Jump to search
(Uploaded XYZ File)
 
(5 intermediate revisions by 2 users not shown)
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>
+
    <title>chair</title>
<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>
 +
<jmol>
 +
  <jmolCheckbox>
 +
    <scriptWhenChecked>color atoms lime</scriptWhenChecked>
 +
    <scriptWhenUnchecked>color atoms cpk</scriptWhenUnchecked>
 +
    <text>this checkbox colors atoms lime or cpk</text>
 +
  </jmolCheckbox>
 +
</jmol>
 +
<jmol>
 +
  <jmolCheckbox>
 +
    <scriptWhenChecked>select all; color purple</scriptWhenChecked>
 +
    <scriptWhenUnchecked>select all; color pink</scriptWhenUnchecked>
 +
    <text>this jmolCheckbox colors atoms purple or pink</text>
 +
  </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>
 +
 +
[[Category:Pages Using Jmol MW Extension]]

Latest revision as of 18:46, 2 September 2014

Uploaded XYZ File

This uses uploadedFileContents tag with an XYZ file:

chair

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

Color atoms: