The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
disable text selection highlighting
For all or most browsers
I would like to have this option in one forum, I guess that this is possible as I saw that in some forums...not talking about right click or such but as title says "disable text selection highlighting" Would like to crate one style which will work for certain forums, if possible, and if one knows please elaborate a bit as this is not that clear to me how to do... Found this CSS code, but not quite sure should I place it as it is or...? : Code:
-webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; *.unselectable { -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; } <div id="foo" unselectable="on" class="unselectable">...</div> function makeUnselectable(node) { if (node.nodeType == 1) { node.unselectable = true; } var child = node.firstChild; while (child) { makeUnselectable(child); child = child.nextSibling; } } makeUnselectable(document.getElementById("foo")); -webkit-user-select:none; -moz-user-select:none; onselectstart="return false;" ::selection { background: transparent; } ::-moz-selection { background: transparent; } * { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: -moz-none; -o-user-select: none; user-select: none; } p { -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -o-user-select: text; user-select: text; } <div class="draggable"></div> .draggable { -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; } .draggable input { -webkit-user-select: text; -khtml-user-select: text; -moz-user-select: text; -o-user-select: text; user-select: text; } if ($.browser.msie) $('.draggable').find(':not(input)').attr('unselectable', 'on'); Thank you |
#2
|
|||
|
|||
What I do with my projects is put this in the <html> tag, or the <body> tag if the body covers the whole page:
onselectstart="return false;" Seems to eliminate selection highlighting. You need to do it in the page templates -- SHOWTHREAD, ONLINE etc |
#3
|
|||
|
|||
Quote:
(joking of course) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|