Jay, There are many wasy you can do that. Several parts:
1. How to pick the color. Simplest is e.g. to have a <select> control (a drop-down menu) with a few colors. The user selects one, the color value is passed to a javascript variable that will later be fed to a Jmol script. A more sophisticated pick could use Jonathan's new widget, but it is not yet prepared for that, only for background color. Easy to adapt, anyway. 2. How to select the amino acid sequence. Maybe the user types it in a textbox (input type=text). You read that using javascript. Then you can probably use JmolScript "select WITHIN(sequence, atomExpression)" command with that. http://www.stolaf.edu/academics/chemapps/jmol/docs/#atomexpressions Other ways to set the sequence may be available. 3. Apply the color. That's trivial. If you need help implementing this, please come back with a specific example page. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users