Feedback

type to search

What is the simplest way of using Jmol in a blogger.com blog?

Asked by [ Admin ]

Henry Rzepa has great blog posts, commonly including Jmol graphics of the beautiful molecular structures he blogs about. He uses Jmol for 3D molecular structures, and I should do that more often too, instead of nasty 2D diagrams.


Now, my blog is hosted on blogger.com, and I am wondering what the easiest way is to use Jmol in these blogs. For example, could I just use the Jmol.js? Or are there easier approaches?
or Cancel

2 answers

1

chem-bla-ics [ Admin ]

Jan Jensen has written up some notes in his blog, and gives this code:

<script src="http://propka.ki.ku.dk/~jhjensen/Jmol.js" type="text/javascript">
</script>
<script type="text/javascript">
  jmolInitialize("http://propka.ki.ku.dk/~jhjensen");
  jmolApplet(300, "load http://propka.ki.ku.dk/~jhjensen/cyclohexane_movie.xyz;");
  jmolBr();
  jmolButton("spin y" ,"spin y");
  jmolButton("spin off" ,"spin off");
</script>
or Cancel
1

steve wathen [ Editor ]

You will need a server to host the jmol applet and the molecule files, but you should be able to use Jmol in blogger.  Choose the “Edit HTML” option to add the script tags to your post.


The Jmol documentation says that you should put the initial link to jmol.js in the Head tag, but I don’t see why you couldn’t put it in the body instead.
or Cancel

Your answer

You need to join Blue Obelisk eXchange to complete this action, click here to do so.