- <script>
function click() {
if (event.button==2||event.button==3) {
oncontextmenu='return false';
}
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
</script>
Você deve colocar esse código antes da tag </head> no seu site e pronto o botão direito não funcionará mais em nenhuma parte do seu site nem nas imagens nem nos textos. No Blogspot você coloca esse código pela pagina editar html, nos outros blogs deve ser parecido com isso afinal todos permitem algumas alterações no código html do blog.
______________________________________...
Copie o codigo abaixo e cole antes da tag </head>
<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"
}
</script>
Agora copie o codigo abaixo e coloque antes da tag </html>
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page
</script>
pronto agora salve.
Filled Under:
Como bloquear a copia de postagens no blog do blogger/blogspot?
Posted by:
Arte Notícia
- 18:15
Share
Assinar:
Postar comentários (Atom)
0 comentários:
Postar um comentário