Page 1 of 1

NoSelect BBCode

Posted: 06 Mar 2010, 10:55
by BBCode Bot
NoSelect BBCode

Author: djgalix
Description: With the NoSelect BBCode You can't select the text.
Working in Internet Explorer and Firefox.
Image

BBCode:

Code: Select all

[NoSelect][/NoSelect]
HTML:

Code: Select all

<script type="text/javascript">

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Helpline:

Code: Select all

[NoSelect][/NoSelect]
Example:

Code: Select all

[NoSelect][/NoSelect]
Demo:
Try to select the text, You cant :)
Choose "Select all" in the codeboxes to get the code.
[noselect][/noselect]

Re: NoSelect BBCode

Posted: 25 Jun 2010, 22:26
by Gulf Knight
Please can you send me the code I can't copy it I have tried to do the select all but I didn't work email is
-email removed-

Re: NoSelect BBCode

Posted: 25 Jun 2010, 23:24
by Stoker
You can quote the post and then grab the code.

Re: NoSelect BBCode

Posted: 25 Jun 2010, 23:27
by cisco007
just like the post says, use the "Select All" to copy code working ok for me!

Re: NoSelect BBCode

Posted: 26 Jun 2010, 01:11
by Gulf Knight
Thanks