On Tuesday 04 May 2004 16:44, E.L. Willighagen wrote:
> For Jmol this would thus be (?):
This is the page I made and got working with CVS (see patch :) :
<html>
<script language="JavaScript">
function play(script) {
document.anim.script(script);
}
function JSAnimcontrol(PlugName, FrameNo) {
document.form1.messageboard.value = "Current Frame is: " + FrameNo;
}
</script>
<applet name="anim" code="JmolApplet" archive="JmolApplet.jar"
width="350" height="325" mayscript="true"
AnimFrameCallBack="JSAnimcontrol">
<param name="load" value="samples/cml/SN1_reaction.cml"/>
<param name="script" value="animation frame 1"/>
</applet>
<form name="form1">
<input type="button" value="prev" onClick="play('animation frame prev')" />
<input type="button" value="next" onClick="play('animation frame next')" />
<input type="button" value="play" onClick="play('animation on')" />
<input type="button" value="stop" onClick="play('animation off')" />
<br />
<input name="messageboard" size="40" />
</form>
</html>
Egon
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users