Just one click dear :D

9.10.11

Tutorial : Disable right click

Haiii ! kay harini terasa free pulak . saya nak buat tuto disable right click .


Sila tengok gambar diatas^^

Copy code di bawah dan paste di html java korang !
<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>
Lepastu save lah kay ? =)

1 comment:

eilya ^_^ said...

huh. da bt. tpi x de yg berube pon ?

Post a Comment

Thanks sebab comment :)
Comment perkataan yang baik-2 je tau !