1) Script Title: Disable Text Selection script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/noselect.htm
3) Describe problem: trying to alter the code to disable all, and allow only certain ones... but its not working... anybody got any ideas? disableing works... but enableing wont![]()
Code:function disablemouse(){ var target=document.body; if(typeof target.onselectstart!="undefined") target.onselectstart=function(){return false} else target.onmousedown=function(){return false} } function enablemouse(){ this.onselectstart=function(){return true} this.onmousedown=function(){return true} }



Reply With Quote

Bookmarks