slight correction Bob Hanson wrote:
> Angel --- here is some information you can include at > > http://jmol.sourceforge.net/jslibrary/ > > > jmolSetCallback > > jmolSetCallback(callbackName,functionName) > > Sets the JavaScript function to be called by Jmol for the specified > callback type, as listed below. In each case, the first parameter > returned to functionName is the applet HTML name (usually > "jmolApplet0"), and the second (and, in the case of pickCallback and hoverCallback, the third) > parameter holds the information. If the functionName is "alert" then > just the second parameter is sent to the user via a JavaScript alert() > call, and no additional function on the webpage is necessary. Callback > functions can also be set anytime after Jmol applet loading using the > "set xxxxCallback" command, where "xxxx" is one of "animFrame", > "hover", "loadStruct", "message", or "pick" > > pickCallback > > called: when the user clicks an atom > return: second parameter: atom id, atom number, and xyz coordinates in the form: C6 #6 -0.30683374 -1.6836332 -0.716934 third parameter: atom index, starting with 0 > > hoverCallback > > called: when the user hovers over an atom > return: second parameter: a string that depends upon the setting of the hover label for the hovered atom. (See script documentation.) third parameter: atom index, starting with 0 > ------------------------------------------------------------------------- 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-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

