Hi jmol users

Have come a long way yesterday getting an animation working but come unstuck when I try to use set AnimFrameCallback


The JMol applet moves beautifully but the image does not change as it should. I think my reference to set AnimFrameCallback must be wrong. But how and why??????

The body of my file contains:

<script language="javascript">jmolSetAppletColor("#fff1e6");
jmolApplet([180,180],"load http://www.massey.ac.nz/~wwifs/jmol/123101/ethane.xyz; rotate z 0; select hydrogen; spacefill 111; select carbon; spacefill 231; select (atomno=4 or atomno=6); color labels red; label H; animation mode LOOP; anim on ; set AnimFrameCallback 'graphe'; animation fps=2; ","vib"); </script><img src="ethaneenergy/E_f01.gif" name="grapheth" width="386" height="224" align="ABSMIDDLE">

The function in the header is

function graphe(vib,frameno)
{
var ct=frameno-27;
if (ct <= 0) {ct = ct + 37};
document.grapheth.src=p2[ct].src
}

All help gratefully received.

Thanks

Judy 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to