Hello,

oh okay quite simple. 
I tried to create a drop down menu as you described in you book using teh
html code:

                

       <script type="text/javasript">

                  var x = new Array()

                  x[0]=["spacefill off; wireframe on", "wireframe"]

                  x[1]=["spacefill 30%; wireframe 40", "ball and sticks",
true ]

                  x[2]=["spacefill 100%; wireframe off", "CPK Modell"]

                  jmolMenu(x)

                </script>

 

However if I press F12 to get a preview of the page the machine does not
load the menu: 

 

 

The whole site is this: 

 

<html>

  <head>

    <title>jmol applet animations demo</title>

    <script src="jmol/Jmol.js"></script>

  </head>

  <body>

    <script>

      jmolInitialize("jmol");

      jmolCheckBrowser("popup", "../../browsercheck", "onClick");

    </script>

    <form>

 

      <table border="1">

                <tr>

                  <td>

                    <h2>Animationsbeispiele zur Praesentation</h2>

                    <script>

                      var script=" load jmol/ordner1/cyclo_animation.mol" +

                      "anim mode palindrome; anim on";

                      jmolApplet(500, script);

                    </script>

                  </td>

 

                  <td>

 

                   Beispiele: <br/> 

                   Animation des Cyclohexans <br />

                    

                    <script>

                      jmolButton("load jmol/ordner1/cyclo_animation.mol",

                      "Sessel-Konformation");

                    </script>

                    <br />

                                      <script>

jmolCheckbox("select elemNo=1; color lime;", "select *; color cpk;",
"H-Atome markieren");

</script>

<br/>

   <script>

jmolCheckbox("select
atomNo=7,atomNo=10,atomNo=11,atomNo=13,atomNo=16,atomNo=18; color lime;",
"select atomNo=7,atomNo=10,atomNo=11,atomNo=13,atomNo=16,atomNo=18; color
cpk;", "equatoriale H-Atome markieren");

</script>

<br/>

 

   <script>

jmolCheckbox("select
atomNo=14,atomNo=9,atomNo=17,atomNo=8,atomNo=12,atomNo=15; color red;",
"select atomNo=15,atomNo=14,atomNo=9,atomNo=17,atomNo=8,atomNo=12; color
cpk;", "axiale H-Atome markieren");

</script>

<br/>

   <script>

jmolCheckbox("select elemNo=6; color yellow;", "select *; color cpk;",
"C-Skelett markieren");

</script>

<br/>

<br/>

        

                  

                    Das zweite Beispiel der Praesentation<br />

 

                    

                    <script>

                      var script = "load jmol/ordner1/sn2.pdb; cpk off;
wireframe;" +

                      "trace on; color trace honeydew";

                      jmolButton(script, "Start");

                    </script>

                    <br />

           <script>

jmolCheckbox("select atomNo=4; color yellow;", "select *; color cpk;",
"markieren");

</script>

                    <hr />

                    

 

        

        

        

                    <script>

                      jmolLink("anim mode once; frame 1; delay 0.5; anim
on", "Einmal abspielen");

                    </script>

                    <br />

                    <script>

                      jmolLink("anim mode palindrome 2 2 ; anim on",

                      "Wiederholt im Palindrom Modus abspielen"

                      );

                    </script>

                    <br />

 

                    <script>

                      jmolLink("anim off", "Animation stoppen");

                    </script>

                    

                    <br />

                    <hr />

                    

                    Show individual movie frames <br />

                    

                    <script>

                      jmolButton("frame 1", "Anfang");

                      jmolButton("frame next", "Naechster Frame");

                      jmolButton("frame prev", "Vorhergehender Frame");

                      jmolButton("frame all", "Alle Frames zeigen");

                    </script>

                    <br />

                    

                    Animationen koennen mit einer Drehung versehen werden<br
/>

 

                    <script>

                      jmolButton("spin on","spin an");

                      jmolButton("spin off", "spin aus");

                    </script>

        <br/>

                                Mann kann per button auch das Modell aendern
<br />

                  

                       <script type="text/javasript">

                  var x = new Array()

                  x[0]=["spacefill off; wireframe on", "Drahtnetz"]

                  x[1]=["spacefill 30%; wireframe 40", "ball and sticks",
true ]

                  x[2]=["spacefill 100%; wireframe off", "CPK Modell"]

                  jmolMenu(x)

                </script>

                    

                  </td>

 

                  

                </tr>

      </table>

    </form>

  </body>

</html>

 

------------------------------------------------------------------------------

_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to