TechMates
member?
If not be one of us!Join us guys!
Login if your a member!
Enjoy!
TechMates
member?
If not be one of us!Join us guys!
Login if your a member!
Enjoy!
TechMates
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TechMates

Life is Useless without TechMates
 
HomePortalSearchLatest imagesRegisterLog in

 

 Disable Highlight (lol)

Go down 
AuthorMessage
JorgyRom
Admin
Admin
JorgyRom


Posts : 49
Points : 78
Reputation : 3
Join date : 2009-07-26
Age : 31
Location : Manila

Disable Highlight (lol) Empty
PostSubject: Disable Highlight (lol)   Disable Highlight (lol) EmptyFri 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
Back to top Go down
 
Disable Highlight (lol)
Back to top 
Page 1 of 1
 Similar topics
-
» Disable Error Reporting(Windows XP)

Permissions in this forum:You cannot reply to topics in this forum
TechMates :: Friendster Design and Development :: Friendster Tricks and Tutorials :: JavaScript-
Jump to: