label - a string that depends upon the setting of the hover label for the hovered atom (see scripting documentation).Invoked when Jmol applet sends an echo message. direction - current direction, either 1 (forward) or -1 (reverse).animDir - current animation direction, either 1 or -1.animState - 0 (animation is off) or 1 (animation is on).lastFrame - last frame of the animation range, expressed as fileNo x 1000000 + modelNo.firstFrame - first frame of the animation range, expressed as fileNo x 1000000 + modelNo.modelNum - current model number within the current file (starting with 1).fileNum - current file number (starting with 1).frameIdx - current frame index number (starting with 0).Arguments:Īll the other Jmol applet callback are translated into. If the called function returns "" or 0, the synchronization is canceled any other string is substituted for the script and sent to the other currently synchronized applets. The JavaScript function may modify or cancel the synchronization message. ![]() Get's called when a synchronization message is sent from one applet to another. ![]() Get's called right after destruction of Jmol applet. args - an array of arguments sent by Jmol appletĮval callback must be defined at initialization (it can not be changed).Get's called when javascript code has to be evaluated from Jmol applet. There are also callback options, where you specify your own callback function. Options appletUrl URL to the directory where Jmol applets reside (default: empty) background background color of Jmol applet (default: '#000000') height height of an applet window (default: 300) memLimit Java memory limit in megabytes (default: 512) menuUrl Jmol menu file URL (default: 'jmol.mnu') modelUrl model file to load at startup (default: empty) width Width of an applet window (default: 400) useSigned Weather to load a signed or unsigned applet (default: false)
0 Comments
Leave a Reply. |