Hi Vivi

I don't know if it can be done as you are trying, but I suggest two 
solutions:

1) Why aren't you using Jmol.js? Things are much easier with it.
a) You load Jmol.js library:
        <html>
        <head>
        <script type="text/javascript" src="Jmol.js"></script>
        </head>

b) You insert the applet:
        <body>
        <script type="text/javascript">
        jmolInitialize("./")
        jmolApplet(350, "load S_0003_8934_0001.pdb")
        </script>

c) Then , for your reloading, you do:
        function runMyJmol(){
        jmolScript("load 1.pdb");
        setTimeout(" runMyJmol();",5000);
        }

2) If you really cannot use Jmol.js, then:

  <html>
  <title>Image</title> 
  <script language="javascript">
 function runMyJmol(){
 var jmolImage = document.getElementById("jmolApplet0");
 jmolImage.script("load 1.pdb")
  setTimeout(" runMyJmol();",5000);
  }
 </script>
 
  <body onLoad="runMyJmol(); ">
   <applet name="jmol" code="JmolApplet" id="jmolApplet0" 
 archive="JmolApplet.jar"
   width="350" height="350">
   <param id="loadjmol" name="load" 
 value="S_0003_8934_0001.pdb">
   </applet>
  </body>
  </html>

I'm not sure of the 2nd, since I always use Jmol.js, but I think it 
is correct: you call the "script" method of the applet, rather than 
changing its parameter.


-------------------------------------------------------------------------
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

Reply via email to