How to upgrade old pages that use the Chem3D Browser Plugin The Chem3D ActiveX/Plugin replaces the old browser plugin. This page describes how to upgrade old pages that use the plugin so that they use the new ActiveX/Plugin. Before proceeding, it may be useful to review this page which describes how web pages can use the ActiveX/Plugin. This example will use the JavaScript file, and this function from that file:
The old Plugin page uses the <EMBED> tag:
To upgrade to the Chem3D ActiveX/Plugin, put the whole <EMBED> tag in this function as a parameter. Here is an example:
NOTE: Because of the JavaScript syntax, you must put an extra slash, \ , right before each double quote, " Here are the remaining steps: Include this JavaScript file by putting the following text in your page:
The best place for this is between <Head> and </Head>. Now, put the whole <EMBED> tag in this function as a parameter:
Here is a complete example:
Also, be sure that chem3d.js is in http://yourwebsite/jslib/ . That's it. You're finished! |