JorgyRom Admin
Posts : 49 Points : 78 Reputation : 3 Join date : 2009-07-26 Age : 31 Location : Manila
| Subject: Disable Highlight (lol) Fri Jul 31, 2009 2:17 am | |
| This Code disables highlight through your Mouse;
Credits: sir Feruz - Code:
-
/* Disable highlight */
//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 }
function urlencode(txt) { return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E"); }
Preview: My Profile | |
|