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>

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

Reply via email to