The way one can embed a chemical document within a HTML window is to use the following syntax; <embed border=0 src="halo.pdb" align=abscenter width=150 height=150 spiny=360 startspin=true display3D=ball&stick PLUGINSPAGE="http://www.ch.ic.ac.uk/cgi-bin/plugin.cgi"></embed> <noembed> <A HREF="halo.pdb"><IMG width=150 height=150 SRC="halo.gif" alt="chemical MIME"></A></noembed> Verious less obvious items need explanation; 1. The file halo.pdb returns the MIME header chemica/x-pdb from the WWW server. This instructs Netscape (the only browser to support plug-ins, although another is apparently on its way) to look for a plug-in supporting this MIME type. 2. The commands height=150 etc are recognised by the Chemscape Chime plug-in, which reads the file and produces an image. If two plug-ins both exists supporting the MIME type, they are resolved alphabetically (ie Chime would be used instead of e.g XMol) 3. If no plug-in exists in the plugins folder, control is passed to the following script; PLUGINSPAGE="http://www.ch.ic.ac.uk/cgi-bin/plugin.cgi which will provide information about the MIME types, etc etc. This works on a Mac, but I am not sure about Windows or Unix. 4. If the user is not using Netscape 2, the contents of <noembed> are displayed (Netscape 2 suppresses them), thus ensuring that something at least happens. Dr Henry Rzepa, Dept. Chemistry, Imperial College, LONDON SW7 2AY; rzepa@ic.ac.uk; Tel (44) 171 594 5774; Fax: (44) 171 594 5804. URL: http://www.ch.ic.ac.uk/rzepa/ ----- chemweb: A list for Chemical Applications of the Internet. Archived as: http://www.ch.ic.ac.uk/hypermail/chemweb/ To unsubscribe, send to listserver@ic.ac.uk the following message; unsubscribe chemweb List coordinator, Henry Rzepa (rzepa@ic.ac.uk)
participants (1)
- 
                
                h.rzepaļ¼ ic.ac.uk