//Forever Love♥
disable highlight words.

Tuesday 26 April 2011 @ 22:04 | 4 Flying kisses ❤

salam guys :)
tutorial ni direquest oleh "yang tak bernama a.k.a anonymous" dekat formspring wawa.dia tanya dekat wawa,kalau setakat buat disable right click,orang lain still boleh copy,tekan ctrt+C dekat blog kita kan? memang betul..copycat still boleh curi korang punya entry dengan mudah saja.so nak buat macam mana? :) senang saja blogger-blogger comell sekalian,kita buat saja disable text selection,jadi copycat tu tak boleh highlight langsung perkataan dekat blog korang. ^__^ kalau dah tak boleh nak highlight pun,dorang nak copy macam mana kan?

okeyy..korang dah ready nak belajar? jom start. :)




1. tekan dashboard Design Add a gadget HTLM/JavaScript

2. korang copy code dekat bawah ni.

<script type="text/javascript">
/***********************************************
* Disable Text Selection script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

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. kalau tiada sebarang masalah,korang just save jela.lepas tu,pegi view blog korang dan try highlight apa-apa entry dekat blog korang.mesti dah tak boleh kan? :)




senang saja kan? :)
selamat mencuba.










Older Post | Newer Post
3 applelovelove[s]


Hello little earthling jello, awkward strangers and mysterious stalkers (:



please click the like button to support my blog. :) i love♥ you guys so much.rawr!






Blog's name: ujawa4ever.blogspot.com
Blog's owner: Alwani Zulhilman

I'm using this template from blogskin, tweak and twist the coding and made it mine.

Background :Glitter-graphics
Icons : Iconspedia
Images : We❤it,Glitter-graphics