TUTORIAL 24 : DISABLED HIGHLIGHT

October 13, 2011


hari ni nak ajoorrr korang buat disabled highlight.. tutorial kali ni untuk elak dari stalker korang copy paste apa apa je yang korang post...hihihi... jom lah start.. :)

1. DASHBOARD - LAYOUT - ADD GADJET - HTML/JAVASCRIPT

2.copy and paste kan code bawah ni

<script type="text/javascript">
//form tags to omit in NS6+:
//http://eking.in
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
}
</script>




3. save and done :)

You Might Also Like

2 comment

  1. sudah . da buat credit kat belah kiri sidebar . terima kasih yea . (^.^)

    ReplyDelete

Terima kasih :)

728 x 90

Flickr Images

Like us on Facebook

INSTAGRAM