User:Jaime Prilusky/JSmolExtension

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
== JSmol applet in the same page ==
== JSmol applet in the same page ==
-
 
+
<div style='float:right;'>
<jmol><jmolApplet>
<jmol><jmolApplet>
<title> wikiPageContents </title>
<title> wikiPageContents </title>
Line 9: Line 9:
<controls>all</controls>
<controls>all</controls>
</jmolApplet></jmol>
</jmolApplet></jmol>
 +
</div>
 +
 +
Jmol applet tags are:
 +
* &lt;title> Text displayed on top of the applet
 +
* &lt;titlecss> CSS style for Title
 +
* &lt;caption> Text displayed below the applet
 +
* &lt;captioncss> CSS style for Caption
 +
* &lt;controls> Draws control buttons [ all | spin | quality | popup ]
 +
* &lt;pspeed> Platform speed for applet [ 1 .. 8 ]
 +
* &lt;color> Applet background colour
 +
* &lt;size> Applet side in pixels
 +
* &lt;frame> true: draws frame around applet
<div style='background-color:#66FF66;padding:5px;'>
<div style='background-color:#66FF66;padding:5px;'>

Revision as of 08:44, 2 September 2014

JSmol applet in the same page

wikiPageContents 

Some caption here, enabled for wikitext like double square brackets 3rec

Drag the structure with the mouse to rotate

Jmol applet tags are:

  • <title> Text displayed on top of the applet
  • <titlecss> CSS style for Title
  • <caption> Text displayed below the applet
  • <captioncss> CSS style for Caption
  • <controls> Draws control buttons [ all | spin | quality | popup ]
  • <pspeed> Platform speed for applet [ 1 .. 8 ]
  • <color> Applet background colour
  • <size> Applet side in pixels
  • <frame> true: draws frame around applet

A few examples of supported tags using JSmolExtension.zip

JSmol applet in a popup window

jmolFile <jmolFile text="Explanatory text for link">Chair.xyz</jmolFile>

... 'and what is the use of a book,' thought Alice 'without pictures or conversation?'

jmolSmiles <jmolSmiles text='nitrobenzene'>c1ccccc1[N+](=O)[O-]</jmolSmiles>

Both versions, using the target as a link or using an alternate text, are supported: nitrobenzene and c1ccccc1[N+](=O)[O-]

jmolAppletButton

jmolPdb <jmolPdb>3rec</jmolPdb> 3rec


Proteopedia Page Contributors and Editors (what is this?)

Jaime Prilusky

Personal tools