This widget will not allow your visitors to highlight the text in your articles.
Go to Layout--->Add A gadget-->HTML/Javascript and add add this code :
<script type="text/javascript">
/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//form tags to omit in NS6+:
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>
If any problems please leave a comment and subscribe me now.
41 comments:
What a nice blog!
I'm a Korean.
I'll post much information about Korea.
Feel free to visit my blog site.
Have a great day! ^^
Uh , it did not work for me .
Oh I don't think so XINNNZXC
I have checked it and it ran very very good, have you done exactly what i told you above ?
THATS AWESOME!!!!!!!!!
wow, this is awesome :) thank you very much!!!!!
~Ehtesham~
its really works!!!
thanks..
hello. I'm using the edit html myself sort of blogger template. it doesn't work for me! Is there a different code for my case?
thank you so much for this!
Doesnt work for me?
I HAV A DOUTE HOW U PUT ADD IN UT TEMPLATE ON UR RIGHT SIDE..I'M ALSO USING THE A TEMPLATE LIKE UR CAN U PLE HELP ME
whew. Thanks for this. i've been looking for this for sooo long. :)
http://vanezzaexist.blogspot.com
yeah! very effective! thanks!
it's a big help.
Thanks A Lot
wonderful thank you
visit my site and please follow it at
www.allrounder-1.co.cc
It's not working to me....but the code for disable right click is working..but not this code for disable highlight
Thank you so much! It worked like a charm. :)
It's not worked for me and the right click copy image too.I use your Sweet Cupcake template and it may cause of trouble, right.Thank you very much for your kindness and much more very good tips for me.I can use it more working except that 2 types.BYE THANKS!!!!!!!
nice trick.. it's good for protect our posting
please visit and follow my blog for up my trafict.. thank's before.
http://www.ngurahadis.co.cc
it cant work for me. they kept prompting
"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The markup in the document following the root element must be well-formed."
what should i do?
A good trick, for the miserly
owsome!! nice! looking for this :)
thank you so much !
thanks it is perfect
Thanks! I just used it on my blog to help protect my articles.
thnks 4 d tutorial.. it help a lot..^^,
Owhhh million thanks for this! Really useful! Like it! ^^
tq for your information
thanks man
awesome :D thank you
Thank you SO much for this! :) You are an angel!
thanks good work
I just want to thank you very much for this code.
I really appreciate it.
Omar
It really works! visit www.nplover.blogspot.com
Thank you too
DISABLING JAVASCRIPT ...
mate, it doesn't work on my blog. Any ideas why?
I had a code which was working, but then I changed my blog template and added streampad and text selection prevention code stopped working, however right-click prevention code is still working.
Great it works just put the javascript gadget below post and your'e good to go,, downside of this is its a bit slow to load.
http://pctionary.blogspot.com/
thank you very much
it work very well for me . thankyou ! <3
This is sooooooo awesome... ^^ Someone has been taking stuff from my blog and here is the perfect thing to slow him down! ahahahaha i feel victorious! Thanks!
Awesome..the best!!
Post a Comment
Thanks for reading , if you have any problem please leave me a comment here I will help you by my best.Please note that you put the friendly words tohelp each other to improving and developing these tips to be better,or the best way for you to track my blog is subscribing my Feed.You are always welcome on Zenplate.
Best regard
Zen