From: Simon D. M. <di...@bi...> - 2000-12-09 11:15:35
|
> Why not just disable selection events all together. It was done in the > dragEvent object way-back when. > Simply put: > if (is.ie) // Prevents text selection when dragging. > document.onselectstart = function () { return false; }; > That stopped IE from selecting other text on the screen when a layer was > being dragged. So presumably you'd have to reverse the change onmouseout or onmouseup. If you you use: if (is.ie) document.selection.clear(); you don't need to do that. >The cancelBrowseEvent is not even needed in the label widget for it to >work correctly. The setting of the cursor (which is done too) seems >to do excactly the same thing. I removed the cancelBrowseEvent in IE >5 and had no troubles with the examples. Just changing the cursor didn't turn off selection on my IE5/Win Dicon |