NOTE: the example below was written by someone else (and posted to the web),
but illustrates the problem. Thanks to whoever wrote the example. I cannot
find any resolution, thought I'd post it here:
Basically, a <div> defined with any scrollbar style crashes IE whenever you
move it using the mouse (or via code, as in the example).
The following html/javascript code crashes IE. The code defines a <div>,
then tries to move it when the page loads. I believe the scrollbar style
used is causing this, because when you remove it, everything works fine. (It
appears that this is not isolated to just the scrollbar-base-color style, but
also crashes using any of these styles as well: scrollbar-3dlight-color,
scrollbar-arrow-color,
scrollbar-base-color, scrollbar-darkshadow-color, scrollbar-face-color,
scrollbar-highlight-color, scrollbar-shadow-color, scrollbar-track-color)
<HTML>
<HEAD>
<title>CRASH-IE</title>
<STYLE TYPE="TEXT/CSS">
html, body {
overflow-y: hidden;
scrollbar-base-color: "#330066";
}
..crash {
position:absolute;
left:200px;
top:200px;
width:200px;
}
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function galgenfrist() {
window.setTimeout('crashIE();',1000);
}
function crashIE() {
var moveNode = document.getElementById("move");
if(moveNode) {
moveNode.style.top = "100px";
moveNode.style.left = "200px";
}
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="javascript:galgenfrist();">
<h1>CRASH-IE</h1>
<div id="move" class="crash">
<table>
<tbody>
<tr>
<td>
<textarea></textarea>
</td>
</tr>
</tbody>
</table>
</div>
</BODY>
</HTML>
|