NoSelect BBCode

Ordinary BBCode Database
BBCodes that need nothing else than installation through ACP

NoSelect BBCode

Post 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

Post 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-
Last edited by cisco007 on 25 Jun 2010, 21:25, edited 1 time in total.
Reason: removed email!

Re: NoSelect BBCode

Post by Stoker »

You can quote the post and then grab the code.

Re: NoSelect BBCode

Post by cisco007 »

just like the post says, use the "Select All" to copy code working ok for me!

Re: NoSelect BBCode

Post by Gulf Knight »

Thanks