> Is there a way to apply same control settings to
> multiple applets. I mean control settings like
> spin on, cpk 100%. So I am imagining one control
> bar at the bottom and when I switch on the spin on
> it, all applets on the page also have the spin on.

Alok,

Try the attached Jmol.js file.
It will require a relatively recent prerelease of Jmol > 10.00.20

Normally, one says

  jmolSetTarget("Applet2Name");

or

  jmolSetTarget(0); // send to jmolApplet 0 ... first on the page
  jmolSetTarget(3); // send to jmolApplet 3 ... 4th on the page


With this version of Jmol.js you can say

  jmolSetTarget("all");

All jmolButton/jmolCheckbox/jmolScript/jmolRadioGroup/jmolMenu calls after
that point will be directed to all of the applets that appeared statically
in the file before the control.


Let me know if you have troubles.


Miguel

Attachment: Jmol.js
Description: JavaScript source

Reply via email to