From: alok v. <alo...@gm...> - 2005-07-12 19:00:31
|
> write two divs to your html page, same dimensions and one on top of the o= ther. write Jmol applets to both diivs, then load your first model in the a= pplet in div1 (while div2 remains hidden). when a user requests a new mode= l, have it load in div2, then make div2 visible and div1 hidden. (you can u= se visibility or z-index to do this, tho the latter has been buggy in my ha= nds.) swap divs as new files are loaded. this should relieve the flashing= if it is due to file loading. >=20 > you can use callbacks to monitor when a model is fully loaded in each div= . Thank. Well, I see what you are suggesting. I have no experience in this technique, but I am definitely going to pursue this suggestion if I don't get a simpler solution. Alok =20 On 7/12/05, timothy driscoll <mol...@ma...> wrote: > On 2005-07-12 (12:05) alok vaid wrote: >=20 > <snip> > >If i can load 1 file at a time, the way I am doing it now, it gives me > >that flexibility. Can you suggest me some other method, in which I can > >avoid flashing. Like i said, I do not have problems with time it takes > >to load, but during that time I want my earlier image to be still > >displayed in applet. Is there any way, if i get into the source code. > > > <snip> >=20 > hi, >=20 > off the top of my head: >=20 > write two divs to your html page, same dimensions and one on top of the o= ther. write Jmol applets to both diivs, then load your first model in the a= pplet in div1 (while div2 remains hidden). when a user requests a new mode= l, have it load in div2, then make div2 visible and div1 hidden. (you can u= se visibility or z-index to do this, tho the latter has been buggy in my ha= nds.) swap divs as new files are loaded. this should relieve the flashing= if it is due to file loading. >=20 > you can use callbacks to monitor when a model is fully loaded in each div= . >=20 >=20 > hth, >=20 > tim > -- > Timothy Driscoll > molvisions - see, grasp, learn. > <http://www.molvisions.com/> > usa:north carolina:raleigh >=20 > "You have attributed conditions to villainy that simply result from stupi= dity." - Robert Heinlein >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen= ing > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by H= P, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > |