Author: djgalix
Description: With the NoSelect BBCode You can't select the text.
Working in Internet Explorer and Firefox.
![Image](http://www.phpbb3bbcodes.com/images/valid-xhtml10.png)
BBCode:
Code: Select all
[NoSelect][/NoSelect]
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>
Code: Select all
[NoSelect][/NoSelect]
Code: Select all
[NoSelect][/NoSelect]
Try to select the text, You cant
![Smile :)](./images/smilies/icon_e_smile.gif)
Choose "Select all" in the codeboxes to get the code.
[noselect][/noselect]