this article might help with a cross-browser solution: (uses jQuery)
http://aleembawany.com/2009/01/20/disable-selction-on-menu-items-with-this-jquery-extension/
in theory, you can extend the jQUery core using this:
jQuery.fn.extend({
disableSelection : function() {
return this.each(function() {
this.onselectstart = function() { return false; };
this.unselectable = "on";
jQuery(this).addClass('unselectable');
});
}
});
and applying it like this:
// disable selection on selected objects
$('.myClass').disableSelection();
you must make sure you have this in your stylesheet:
.unselectable {
user-select: none;
-o-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
}
looks as if it basically does what SLaks and Sime have mentioned.
i haven't tried it, but i'd be interested to know if it works