1. In your dashboard, go to Layout and then click on Add a Gadget.
2. Select HTML/JavaScript
3. Copy and paste this code below:
2. Select HTML/JavaScript
3. Copy and paste this code below:
<script type="text/javascript">
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
4. Then save the widget and you’re done.
Comments
Post a Comment