Thanks for the hint – apologies if my original email wasn’t clear about what I
wanted.
Chris
From: Robert Hanson [mailto:[email protected]]
Sent: 21 December 2014 18:47
To: [email protected]
Subject: Re: [Jmol-users] Changing jmol menu option after page load
That's wasn't very clear.
Jmol.Controls._scripts = [ "",
[appletId,script],[appletId,script],[appletId,script],...]
so a value of 1 for a button or menu option gets you the first
[appletId,script] array, and the second parameter of that is what you change:
function modifyScriptItem(i, script) {
Jmol.Controls._scripts[i][1] = script
}
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users