page redrawing

liunx

Guest
Hi,<br />
<br />
when I change something in the page what is the exact mechanism of redrawing? <br />
<br />
For example I have a function that makes B to appear instead of A , D instead of C etc.<br />
<br />
function zzz {<br />
A.style.display="none";<br />
B.style.display="block";<br />
C.style.display="none";<br />
D.style.display="block";<br />
....<br />
}<br />
<br />
Suppose I have several changes in the DOM tree like that.<br />
Can a page start redrawing while not all changes have yet been made? Is it possible to make the browser wait till I am done with modifying DOM tree? I have the impression that the browser rerenders the page 2 or more times while my function is executing, because I see little fickers, not all changes seem to occur at once.<br />
<br />
thanks in advance<!--content-->al the changes should happen sequenctially..if thats what you are asking..<br />
<br />
A.style.display="none";<br />
will be done first and then the next ones...usually it should hapen pretty darn fast that it would give you an illusion that all is happening at the same time...<!--content-->
 
Back
Top