Monday, March 14, 2011

Disable Highlight Entri Blog


Sesetengah orang mungkin agak tidak senang bagi sesiapa mengambil hasil entri dalam blog mereka. Antara cara yang digunakan untuk mengelakkan entri atau kandungan dalam blog di'ambil' adalah dengan disable right click atau disable highlight.


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.:)




Suka tutorial ini.?

53 comments:

zura asyfar on March 14, 2011 at 7:29 AM said...

tq..dh jd pon..hehe

~ Cik Azz ~ on March 14, 2011 at 7:48 AM said...

Dah letak walaupun tak berapa faham konsep.. huhuhu...

monsterbuncet on March 14, 2011 at 11:11 AM said...

kak . blog ira pnye title post ilang lha . cane na dpatkan alek ? :(
help mee ! hoho
*hope tak mnyusahkan =.='

monsterbuncet on March 14, 2011 at 11:12 AM said...

opss sowie . skaty jeah kak . tak ksah a ea . hoho =.='

fira on March 14, 2011 at 12:40 PM said...

dah letak, jadi apa?? biase jek heheheheh

niejoe on March 14, 2011 at 1:32 PM said...

tak muncul pun...:(

budakxaxao on March 14, 2011 at 1:32 PM said...

tade pape pon . huhu

Anonymous said...

Dh jDi. . tHanX so MuCH. .

Shira Afya Hashim on March 14, 2011 at 7:26 PM said...

tuan pnye blog, trime kasih sgt2 sbb byk sgt tutoriAL kt sini.. sy dpt belajar mcm2, tp bleh tak sy nk request satu tuto?
bleh tnjuk kn tuto cara utk tukar header blog ? :) bleh yea?

ViccMalarn on March 14, 2011 at 10:56 PM said...

thanks for this tutorial! it works and yeayyy :)

aisya ibrahim on March 15, 2011 at 3:16 AM said...

hi..!!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

SMAKER on March 15, 2011 at 2:33 PM said...

wah bagus juga bang tipsnya,lagi belajar nih caranya langsung ke Tkp.,.,,..,!!

lOvely mieNa on March 16, 2011 at 11:22 AM said...

haha..dh buat dn dh berjaye..thx3x!! :)

SMK JENAGOR on March 16, 2011 at 9:50 PM said...

lor takleh la buat note cepat klu camni.. hehehe

Haz Issac on March 17, 2011 at 3:28 AM said...

owhh.. aku paham.. org nak copy tajuk entri post kita tak boleh.. aku try highlight tajuk post, x boleh copy lgsg.. mmg x jd pape, cube korang copy tajuk entri balik.. aku pun tak boleh.. hehe

tq bro.. tips berguna..

:) http://hazissac.blogspot.com/

k h a i r i y a h on March 19, 2011 at 3:22 PM said...

wahh..nak try gak

ツFairy Of Happinessツ on March 21, 2011 at 3:45 AM said...

klau image lak ??

TOLONG :(

Amirah Donghae on March 22, 2011 at 3:26 PM said...

nak tnya blh x ?
mcm mana nak buat anak panah kite cantik lagi ..
gambar kartun.. tolong yer..

Budinz on March 25, 2011 at 10:23 PM said...

sal ble ltak je mende ni...cursor sye xde...??

eddy said...

kesemua steps tersebut boleh dilepasi dengan hanya menggunakan tutorial nie...http://eddytech03.blogspot.com/2010/12/tak-boleh-right-click-laa-kat-page.html
mmg elok javascript..tp kalau terlalu byk..its annoying. dan if possible..klu ada benda yang penting2 untuk dishare...kan dah susah dah

meriline ann on April 5, 2011 at 11:20 AM said...

thank u so much .. dah dpt :)

FieZaimi on April 6, 2011 at 4:36 PM said...

tq...fiza dah buat...dah jadi pun...cuma nak wat button like je x dapat2 lagi...eerrmm....

Admin on April 6, 2011 at 11:31 PM said...

pehh~~tq r banyk2 admin ni... bergune betul... singgah blog cerita kelakar saya ok..:p http://lawakbodoh4u.blogspot.com/

Sheila Tan on April 7, 2011 at 3:37 PM said...

Thank youuuu :)
Dah lama cari code ni :D

choc-o-choc on April 13, 2011 at 8:08 PM said...

wah3.. menarik... suke3.. :)
klau disable highlight utk pic xder ker?? :)

yanie on April 15, 2011 at 4:57 PM said...

thanks fr sharing the tips! luv it ;)

noratikah on April 18, 2011 at 11:10 PM said...

yeh!! berjaya! thank you thank you!

buatbest on April 20, 2011 at 1:37 PM said...

nice info here~

SYAHIDAH PAMIDI on April 21, 2011 at 7:57 PM said...

bagi sape2 yg xnk pic nye kne curi,mse post pic tu buang p'kataan herf yg kt dpn tu

thx for this tuto,,,tp np ble wt mnde ni,cursor sy jdi mcm biase blek yep???

zaza on April 22, 2011 at 3:37 PM said...

knpa x boleh?

rkyt on April 23, 2011 at 5:29 AM said...

nice tutorial here..thanks..

*dreamcda* on April 23, 2011 at 3:59 PM said...

dah jadik...tq so much!..

babe love you (: on April 24, 2011 at 4:23 PM said...

Thanks yaa , (:

adybbab ;O on April 25, 2011 at 1:39 PM said...

thanx!!

SHAHIRAH ADIZAN on April 26, 2011 at 2:26 PM said...

tq . berguna .

PaPaJaHaT on May 2, 2011 at 3:43 PM said...

tq

Anonymous said...

salam..nk tnya..mcmna kta nk hide kan ikon 2k EDIT kat stp gadget yg kta dah wat..

Amirah_Ariff26 on May 11, 2011 at 6:25 PM said...

ok.. thankyouu..

i'm not real on May 16, 2011 at 6:07 PM said...

tq,,,,hehe,,,seronok pulak rase.haha

fana on May 22, 2011 at 1:05 PM said...

comel gak ek..huhuhu..

YVONNE CHEW HWEE PING on May 31, 2011 at 9:57 PM said...

kasih...

Akmal Ruzain Sedap nak aku Hehe!!! "Gurau jerk"!!.. on June 22, 2011 at 8:09 PM said...

jangan ego dan sombong bila orang tunjukkan peluang..dah buang ego tu??? daftar sekarang disini http://SLIMBERRYEXTREMEBIZ.TK

hanie on June 23, 2011 at 11:19 AM said...

tenkiu..dah berjaya buat..

Wanaa Nana on June 26, 2011 at 7:41 PM said...

saya copy ye

Fyffah on July 8, 2011 at 7:13 PM said...

using thiss tuto ! ^^ thax ~

Anonymous said...

kalau guna mozilla
click 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?

lysa akyra on November 21, 2011 at 5:06 PM said...

da bole..thanx so much...mcm mne plak ngan gambar?

nOris on December 15, 2011 at 2:55 AM said...

nmpak cm kejam jer..de x code y just say assalamualaikum ker or just nk ckp y comey2 de x??

ezyra daniel on February 2, 2012 at 3:15 PM said...

thanks..da jd.tpy pix uwhh tk jd2..pelik tul...????padahal simple je arahan dia :(

dill on February 8, 2012 at 9:51 PM said...

time kasih banyak2 :)

dill.

မင္းမင္းသူ on April 28, 2012 at 11:59 PM said...

thanks u so much my sister....

topSpot | Find your top spot here on December 21, 2012 at 8:48 PM said...

Thanks buat tutorialnya nya sob! :)

topspot-official.blogspot.com

Haryz Khairuddin on January 14, 2013 at 9:24 PM said...

dalam tutorial ni, kita just disable highlight kan? tapi camne nak disable middle click sekali. (macam contoh kalau kita klik kat gambar first tu.)

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com Edited by Unwanted