On 9 Jan 2007 at 12:58, Phillip Barak wrote:

> Am I correct in thinking that the Jmol.js JmolButton doesn't include the
> alt="" feature to toggle btwn two scripts? (Pretty sure that this could be
> done w/ Chime, so many yrs ago.) Yes, it can be done in javascript (and
> I've found it useful to toggle a button thru four states on occasion) but can
> it be done with the Jmol.js library?

Chime button has a "pushed" state and look, that's why it takes an "altScript" 
command.
Jmol.js buttons are normal HTML form buttons. Checkboxes are what take a 
selected/unselected state, and so the natural equivalent for Chime 
push-buttons. I find they 
solve all my needs.
I feel curious: How do you set a toggle button in javascript? Switching images?



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to