From: MikeJ on
Ok... sorry I again...
I got it to work in IE, I figured out how it was setup.
But the trapping of mousedown in opera seems a messy way to try to
handle it - since it would require me to trap events for all items
except the one selected ?? is there some type of "select" or
"OnSelect"?





On Fri, 26 Mar 2010 19:22:49 +0100, Martin Honnen <mahotrash(a)yahoo.de>
wrote:

>MikeJ wrote:
>> I have a script that allows users to move "windows" (actually floating
>> tables) about but as they do so text in the background gets
>> highlighted (because the mouse button is down for the dragging) - can
>> I hide or disable this highlighting?
>
>How do you attach the even listener? With the W3C DOM Level 2 Events you
>should be able to prevent the text selection in an mousedown listener by
>calling preventDefault() e.g.
> foo.addEventListener('mousedown'
> function(evt) {
> evt.preventDefault();
> // ...
> },
> false
> );
>
>For IE add an onselectstart listener that returns false e.g
>
> foo.attachEvent('onselectstart', function() { return false; });