Thanks Jonathan

 I got your script and I was trying to use it.

My HTML page has  the script set like that 


<script type='text/javascript'>
    var Colorscript = new Array (setAtomColor);    
    jmolColorPickerBox(Colorscript, 'rgb(100,100,100)')";
</script>

The array Colorscript should be the array  which include the name of the 
function to call, see below

the function setAtomColor() is  written as :

 var atomColor = "";
  function elementSelected(element){
       setValue("select none; halo off; label off");
       setValue("select "  + element + "; halo on; label on");

       atomColor = "' color " + element;       
   return atomColor;
  }



 function setAtomColor (rgbCodeStr, Colorscript , jmolApplet0, atomColor){
   var finalColor =  " " + atomColor + " " + rgbCodeStr + " ";
   return finalColor;
 }
 
I think I got your explanation wrong  in the headings of your script. Is the 
rgbCodeStr the color selected by  jmolColorPickerBox ?
Thanks a lot, Piero





-- 
Please consider the environment before printing this e-mail.

Pieremanuele Canepa
Room 104
Functional Material Group
School of Physical Sciences, Ingram Building,
University of Kent, Canterbury, Kent,
CT2 7NH
United Kingdom

e-mail: [email protected]
mobile: +44 (0) 7772-9756456
-----------------------------------------------------------
------------------------------------------------------------------------------
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

Reply via email to