I think you could tweak the JavaScript to ignore one. This is on a
particular page, right? One you know the IDs for?
_jmol.appletsExcludeFromAll = ";1;4;"
function jmolScript(script, targetSuffix) {
if (script) {
_jmolCheckBrowser();
if (targetSuffix == "all") {
with (_jmol) {
for (var i = 0; i < appletSuffixes.length; ++i) {
if (appletsExcludeFromAll && appletsExcludeFromAll.indexOf(";" +
appletSuffixes[i] + ";") >=0) continue
var applet = _jmolGetApplet(appletSuffixes[i]);
if (applet) applet.script(script);
}
}
} else {
var applet=_jmolGetApplet(targetSuffix);
if (applet) applet.script(script);
}
}
}
2011/3/25 Angel Herráez <[email protected]>
> Hi all
>
> I'd like to use jmolSetTarget() to target two applets but not a third one.
>
> I started using "all" as the parameter when I only had 2 applets in the
> page, but after adding
> the 3rd one I'm stuck.
> Any solutions?
>
> Thanks
>
>
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users