TechMates
member?
If not be one of us!Join us guys!
Login if your a member!
Enjoy!

TechMates

Life is Useless without TechMates
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share
 

 Disable Highlight (lol)

Go down 
AuthorMessage
JorgyRom
Admin
Admin
JorgyRom

Posts : 49
Points : 78
Reputation : 3
Join date : 2009-07-26
Age : 26
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

_________________
"Life is Useless Without Techmates"

http://profiles.friendster.com/111675865

How to make JS(javascript) File?
Click here

How to make CSS(cascading style sheets file)?
Click here
Back to top Go down
View user profile
 
Disable Highlight (lol)
Back to top 
Page 1 of 1
 Similar topics
-
» [Highlight] Where in the World Is Naoko Takeuchi?
» [HIGHLIGHT] Paper Cut Sailor Senshi!
» [Highlight] Custom SM Dolls by HeXtian
» HIGHLIGHT - Sailor Moon Sacrifice

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