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
avatar

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

PostSubject: 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

_________________
"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/NEWS] VOTE FOR THE NEW PROPLICA ON PREMIUM BANDAI!!!
» Dwarfs going for a dip! Now with some greenskins.
» HIGHLIGHT: Brand new Sailor Moon site Isshou-ni.net!
» Highlight: Sailor Moon Nail Art Tutorial by Andreea Magyar
» HIGHLIGHT: Custom Sailor Moon Inspired Pony(s)

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