Tutorial untuk disable right click sudah pun ada sebelum ini, dan kali ini tutorial adalah untuk disable highlight text dalam blog.
Ikuti tutorial mudah seperti di bawah.
1. Dari dashboard > design > add a gadget > HTML/javascript
2. Masukkan kod di bawah dalam ruangan HTML/javascript
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"
</script>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
3. Save dan lihat hasilnya..:)
TIPS:
Untuk kesan yang lebih baik, letakkan/drag HTML atas ruangan blog post. Ini akan membuatkan kod disable highlight ini 'dibaca' dahulu sebelum entri.:)
tq..dh jd pon..hehe
ReplyDeleteDah letak walaupun tak berapa faham konsep.. huhuhu...
ReplyDeletekak . blog ira pnye title post ilang lha . cane na dpatkan alek ? :(
ReplyDeletehelp mee ! hoho
*hope tak mnyusahkan =.='
opss sowie . skaty jeah kak . tak ksah a ea . hoho =.='
ReplyDeletedah letak, jadi apa?? biase jek heheheheh
ReplyDeletetak muncul pun...:(
ReplyDeletetade pape pon . huhu
ReplyDeleteDh jDi. . tHanX so MuCH. .
ReplyDeletetuan pnye blog, trime kasih sgt2 sbb byk sgt tutoriAL kt sini.. sy dpt belajar mcm2, tp bleh tak sy nk request satu tuto?
ReplyDeletebleh tnjuk kn tuto cara utk tukar header blog ? :) bleh yea?
thanks for this tutorial! it works and yeayyy :)
ReplyDeletehi..!!saye sesat mse nk letak clock kat blog sye...clock yg appear kat blog sye huduh sgt....cari dekat sini, xjumpe plak....boleh tulung ajar x???~time kaseh
ReplyDeletewah bagus juga bang tipsnya,lagi belajar nih caranya langsung ke Tkp.,.,,..,!!
ReplyDeletehaha..dh buat dn dh berjaye..thx3x!! :)
ReplyDeletelor takleh la buat note cepat klu camni.. hehehe
ReplyDeletewahh..nak try gak
ReplyDeleteklau image lak ??
ReplyDeleteTOLONG :(
nak tnya blh x ?
ReplyDeletemcm mana nak buat anak panah kite cantik lagi ..
gambar kartun.. tolong yer..
sal ble ltak je mende ni...cursor sye xde...??
ReplyDeletekesemua steps tersebut boleh dilepasi dengan hanya menggunakan tutorial nie...http://eddytech03.blogspot.com/2010/12/tak-boleh-right-click-laa-kat-page.html
ReplyDeletemmg elok javascript..tp kalau terlalu byk..its annoying. dan if possible..klu ada benda yang penting2 untuk dishare...kan dah susah dah
thank u so much .. dah dpt :)
ReplyDeletetq...fiza dah buat...dah jadi pun...cuma nak wat button like je x dapat2 lagi...eerrmm....
ReplyDeletepehh~~tq r banyk2 admin ni... bergune betul... singgah blog cerita kelakar saya ok..:p http://lawakbodoh4u.blogspot.com/
ReplyDeleteThank youuuu :)
ReplyDeleteDah lama cari code ni :D
wah3.. menarik... suke3.. :)
ReplyDeleteklau disable highlight utk pic xder ker?? :)
thanks fr sharing the tips! luv it ;)
ReplyDeleteyeh!! berjaya! thank you thank you!
ReplyDeletenice info here~
ReplyDeletebagi sape2 yg xnk pic nye kne curi,mse post pic tu buang p'kataan herf yg kt dpn tu
ReplyDeletethx for this tuto,,,tp np ble wt mnde ni,cursor sy jdi mcm biase blek yep???
knpa x boleh?
ReplyDeletenice tutorial here..thanks..
ReplyDeletedah jadik...tq so much!..
ReplyDeleteThanks yaa , (:
ReplyDeletethanx!!
ReplyDeletetq . berguna .
ReplyDeletetq
ReplyDeletesalam..nk tnya..mcmna kta nk hide kan ikon 2k EDIT kat stp gadget yg kta dah wat..
ReplyDeleteok.. thankyouu..
ReplyDeletetq,,,,hehe,,,seronok pulak rase.haha
ReplyDeletecomel gak ek..huhuhu..
ReplyDeletekasih...
ReplyDeletejangan ego dan sombong bila orang tunjukkan peluang..dah buang ego tu??? daftar sekarang disini http://SLIMBERRYEXTREMEBIZ.TK
ReplyDeletetenkiu..dah berjaya buat..
ReplyDeletesaya copy ye
ReplyDeleteusing thiss tuto ! ^^ thax ~
ReplyDeletekalau guna mozilla
ReplyDeleteclick 1st jadi, but klu click utk 2nd time akan keluar "prevent this page from creating additional dialogs"
if sape2 yg view blog kite click
box tu, dah boleh copy entry dlm blog.
so camne nk settle benda ni?
da bole..thanx so much...mcm mne plak ngan gambar?
ReplyDeletenmpak cm kejam jer..de x code y just say assalamualaikum ker or just nk ckp y comey2 de x??
ReplyDeletethanks..da jd.tpy pix uwhh tk jd2..pelik tul...????padahal simple je arahan dia :(
ReplyDeletetime kasih banyak2 :)
ReplyDeletedill.
thanks u so much my sister....
ReplyDeleteThanks buat tutorialnya nya sob! :)
ReplyDeletetopspot-official.blogspot.com
dalam tutorial ni, kita just disable highlight kan? tapi camne nak disable middle click sekali. (macam contoh kalau kita klik kat gambar first tu.)
ReplyDeleteTERBAIK LAH TQ..
ReplyDeletetq bro
ReplyDeleteThank you so much!!! I really appreciate it… really simple and works best. hope you will continue your great works. Success!!! -
ReplyDeletewebsite design
terbaik la bro tq
ReplyDeleteterima kasih bro. baru menjadi
ReplyDeletetutor lain kalau buat still boleh ctrl + c