[thelist] Stylesheet switching Jitters
Sam Carter
sam at iness.com
Tue Mar 8 10:47:56 CST 2005
Again, no luck, even coding the windows.onload event as text in the
header. It's a very tight order:
<link type="text/css" rel="stylesheet" href="../css/default.css">
<link type="text/css" rel="stylesheet" href="../css/white.css"
media="screen" title="white">
<link type="text/css" rel="alternate stylesheet" href="../css/black.css"
media="screen" title="black">
<script type="text/javascript" src="../include-library/ni.js"></script>
<script type="text/javascript">
window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
setGraphics(true);
}
Is there any other way to get the onload event processed before the page
is rendered in white?
Other information: The flash is only noticable when the next page has a
new graphic which must be downloaded. It's as if the graphic download
gives IE enough time to render the page before processing the
window.onload event.
Sam
More information about the thelist
mailing list