It's generally a bad idea to write into a document div before the
document is fully loaded. This is just the sort of thing that will work
on one browser but not another. You aren't specifying a height on that
div; I would specify the height as well as the width, and move the var
sliderX = .... business to a function called by the body onload
parameter. Then there shouldn't be any issue with where exactly the
applet is positioned -- as I recall the applet can disappear like that
if it is repositioned during or after page loading.
Bob
rob yang wrote:
> Hi J-molers,
> ---
> <div tabindex="1" class="slider" id="x_slider" style="width: 150px;">
> <input class="slider-input" id="x_slider-input"
> name="x_slider-input"></div>
> <script type="text/javascript">
> var sliderX = new Slider(document.getElementById("x_slider"),
> document.getElementById("x_slider-input"), "horizontal");
> </script>
> <script type="text/javascript">jmolInitialize("./jmol-11.5.39/",
> "JmolAppletSigned.jar");jmolSetCallback("messageCallback",
> "messageCallback");jmolApplet([600, 400]);</script>
> </body>
> ---
>
> -Rob
>
> ------------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users