I installed the very nice slab slider available from
http://wiki.jmol.org:81/index.php/Recycling_Corner#Slider_control_for_Slabbing
in my Jmol Tutorial-Authoring Template (JTAT), but ran into a 
problem. It worked in Firefox and Safari but not in Internet 
Explorer. The trick (which took me way too many hours to discover) is 
that the line

<script type="text/javascript" src="wz_dragdrop.js"></script>

must be inserted immediately after the <body> tag, not in the 
<head></head>. Thinking I knew better (always dangerous), I had put 
in in the <head> which is the usual position for including javascript 
files. After I relocated it to the body (which is indeed its position 
in the sample code in the wiki), the slider works in all three browsers.

I have added a note to the wiki to emphasize the importance of the 
order of code elements in the example given.

Thanks to Angel for providing the Jmol slab slider, and documenting 
it! And to Walter Zorn for the original slider code. And to Karl 
Oberholser who interested me in including the slab slider in JTAT.

-Eric

/* - - - - - - - - - - - - - - - - - - - - - - - - - - -
Eric Martz, Professor Emeritus, Dept Microbiology
U Mass, Amherst -- http://www.umass.edu/molvis/martz

Top Five 3D MolVis Technologies http://Top5.MolviZ.Org
Biochem 3D Education Resources http://MolviZ.org
See 3D Molecules, Install Nothing! - http://firstglance.jmol.org
Protein Explorer - 3D Visualization: http://proteinexplorer.org
Workshops: http://workshops.proteinexplorer.org
World Index of Molecular Visualization Resources: http://molvisindex.org
ConSurf - Find Conserved Patches in Proteins: http://consurf.tau.ac.il
Atlas of Macromolecules: http://atlas.proteinexplorer.org
PDB Lite Macromolecule Finder: http://pdblite.org
Molecular Visualization EMail List (molvis-list):
       http://bioinformatics.org/mailman/listinfo/molvis-list
- - - - - - - - - - - - - - - - - - - - - - - - - - - */


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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