Author: djgalix
Description: With the NoSelect BBCode You can't select the text.
Working in Internet Explorer and Firefox.
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
Choose "Select all" in the codeboxes to get the code.
[noselect][/noselect]