PC Review


Reply
Thread Tools Rate Thread

applying any scrollbar style to a movable <DIV> crashes IE

 
 
=?Utf-8?B?TWFudVQ=?=
Guest
Posts: n/a
 
      11th Mar 2005
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>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying Normal Style does not override previous style gj49 Microsoft Word Document Management 6 26th Apr 2009 05:57 PM
help me !! how do i put scrollbar style widget in ajax?? ipratik9@gmail.com Microsoft ASP .NET 0 26th Oct 2007 05:55 AM
Help ! Applying a style to a selection changes the style itself =?Utf-8?B?UGF0cmljayBHZXJtYWlu?= Microsoft Word Document Management 3 30th Sep 2005 11:58 AM
TreeView with grey scrollbar while using WinXP style Michael Microsoft Dot NET Framework Forms 1 21st Apr 2005 03:32 AM
How to apply scrollbar to form having border style none TusharP Microsoft Dot NET Framework Forms 0 21st Sep 2004 03:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:51 PM.