So How is it Done?
When you embed a PDB file in a web page, Chime, if installed, auto-magically pops up to handle it. If you want to make Chime do things such as spin the molecule or use a particular display style, you simply tack in a few words to your HTML file, such as " startspin="on" ". Not too tricky at all.
When you issue a command to Chime from a button on a web page, you use a "Rasmol Script." Please do not panic. Rasmol is a program just like Chime, except it is stand-alone, that is, not a web browser plugin. Chime uses the same commands as Rasmol, because the Rasmol people developed a very nice system and there's not much that can improve on it. An example of a Rasmol script would read something like "select all ; ribbons ; color purple". That would select the whole molecule, make it a ribbon model, and color the whole thing purple.