|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <script> |
|
4 |
|
5 var onPaintFunctions = |
|
6 [ |
|
7 function() { document.documentElement.style.MozAppearance = "treeheadersortarrow"; }, |
|
8 function() { document.documentElement.style.position = "fixed"; }, |
|
9 function() { document.documentElement.removeAttribute("class"); } |
|
10 ]; |
|
11 |
|
12 var i = 0; |
|
13 |
|
14 function advance() |
|
15 { |
|
16 var f = onPaintFunctions[i++]; |
|
17 if (f) |
|
18 f(); |
|
19 } |
|
20 |
|
21 function start() |
|
22 { |
|
23 window.addEventListener("MozAfterPaint", advance, true); |
|
24 advance(); |
|
25 } |
|
26 |
|
27 window.addEventListener("load", start, false); |
|
28 |
|
29 </script> |
|
30 </html> |