-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 04 May 2004 15:49, Miguel wrote:
> animframecallback

Yes, one is http://www.chem.uni-potsdam.de/inet_kurs/chime/cicb-8.html

The example code:

<script language="JavaScript">
 function JSAnimcontrol( PlugName, FrameNo ) {
 document.form1.messageboard.value = "Current Frame is: " + FrameNo;
 }
 </script>

<embed src="sn2.xyz" name="snchime" width=350 height=325
 display3d=ball&stick color3d=cpk options3d=specular 
 animfps=30 startanim=true animmode="loop" AnimFrameCallback="JSAnimcontrol">

<form name=form1>
 <input name="messageboard" size=20>
 </form>
 
For Jmol this would thus be (?):

<script language="JavaScript">
 function JSAnimcontrol( PlugName, FrameNo ) {
 document.form1.messageboard.value = "Current Frame is: " + FrameNo;
 }
 </script>

<applet name="jmol" code="JmolApplet" archive="JmolApplet.jar"
        codebase="../jmol" width="350" height="325" mayscript="true"
        AnimFrameCallBack="JSAnimControl">
  <param name="load" value="sn2.xyz"/>
</applet>

<form name=form1>
 <input name="messageboard" size="20">
 </form>

(to be confirmed...)

Egon


 
- -- 
[EMAIL PROTECTED]
PhD on Molecular Representation in Chemometrics
Nijmegen University
http://www.cac.sci.kun.nl/people/egonw/
GPG: 1024D/D6336BA6

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (SunOS)

iD8DBQFAl6w7d9R8I9Yza6YRAg7PAJ9IcEgnTdNfZ9l7Oe4qgO/NDtsy5wCeMral
PN5up97DsI997iu0qZyGJTk=
=ZByk
-----END PGP SIGNATURE-----



-------------------------------------------------------
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_id149&alloc_id�66&op=click
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to