right, that is CSS already. So just substitute
document.getElementById('diviwantohide').style.height = '0.01px';
document.getElementById('diviwantohide').style.width = '0.01px';
Make sure when you define the dive, you give it a clear CSS setting of
height and width -- as you would for the applet, but then give the applet
the size ["100%","100%"].
<div id='jmolDiv' style='height:300px;width:300px'>
<script
type="text/javascript">jmolApplet(["100%","100%"],someJmolScriptHere)</script>
</div>
On Sat, Oct 31, 2009 at 5:56 PM, <[email protected]> wrote:
> Thanks for your suggestions.
> I'm sorry i was not complete in my explanations.
> In fact, i superpose 3 div at the same place:
> an image (400x400), 4 images (100x100 in a matrice) or the Jmol Applet
> (400x400).
> In function of what i want, i hide 2 of them using the command:
> document.getElementById('diviwantohide').style.display = 'none';
> to show:
> document.getElementById('diviwantohide').style.display = 'block';
>
> I don't know if i can do that via CSS.
>
> Manu
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users