Piero, I don't get the whole picture of your problem, but you have
<select name="colourbyElementList" id="colourbyElementList" size="1"
class="" onchange="elementSelected(value)">
var scriptColor = "";
function elementSelected(element){
scriptColor = "' color " + element + " $COLOR$'";
return scriptColor;
}
that is javascript, right? So you need to pass Jmol the result:
function elementSelected(element){
scriptColor = "' color " + element + " $COLOR$'";
jmolScript(scriptColor);
}
I'm not sure about how the $COLOR$ piece is interpreted.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users