From: timothy d. <mol...@ma...> - 2005-07-12 17:38:21
|
On 2005-07-12 (12:05) alok vaid wrote: <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> hi, off the top of my head: write two divs to your html page, same dimensions and one on top of the oth= er. write Jmol applets to both diivs, then load your first model in the app= let in div1 (while div2 remains hidden). when a user requests a new model,= have it load in div2, then make div2 visible and div1 hidden. (you can use= visibility or z-index to do this, tho the latter has been buggy in my hand= s.) swap divs as new files are loaded. this should relieve the flashing i= f it is due to file loading. you can use callbacks to monitor when a model is fully loaded in each div. hth, tim --=20 Timothy Driscoll molvisions - see, grasp, learn. <http://www.molvisions.com/> usa:north carolina:raleigh "You have attributed conditions to villainy that simply result from stupidi= ty." - Robert Heinlein |