I get it!
This is the code (no need to add anything in the header file):
<applet name="jmol" code="JmolApplet"
archive="/wp-content/jmol/JmolApplet.jar"
width="200" height="200" mayscript="true">
<param name="progressbar" value="true"/>
<param name="script" value='pmesh "/wp-content/surface.pmesh"'/>
</applet>
This only needs install jmol in the path /wp-content/jmol/ (for
example) and put the pmesh in the path /wp-content/
thanks for your help.
On Sun, Mar 23, 2008 at 10:09 PM, Janzo <[EMAIL PROTECTED]> wrote:
>
> On Sun, Mar 23, 2008 at 10:16 PM, Angel Herráez <[EMAIL PROTECTED]> wrote:
> > > If I add the jmolScript line it only shows the image ( <img
> > > src="wp-content/logo.png")
> >
> > Check for JavaScript errors, it may be the quotes inside quotes.
> >
> > Or the script may be running before the applet is inserted.
> >
> > Can you paste here the contents of your function?
>
> I put this on the header file:
>
>
> <script type="text/javascript">
> <!--
> function insertJmol(me,width,height,myMolecule) {
> document.getElementById(me).innerHTML = '<applet width="'
> +width+'" height="'+height+
> '" code="JmolApplet" archive="wp-content/jmol/JmolApplet.jar">'
> +'<param name="progressbar" value="true">'
> +'<param name="load" value="wp-content/'
> +myMolecule+'">';
> }
> //-->
> </script>
>
--
Janzo
http://nonumerable.net
--------------------------------------
Clave pública gpg: http://nonumerable.net/janzo.asc
Si usas GNU/Linux teclea en la shell:
wget -O - http://nonumerable.net/janzo.asc | gpg –import
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users