Jump to content


Photo

Bloqueio Anti Cópia


  • Faça o login para participar
3 replies to this topic

#1 Link

Link

    12 Horas

  • Usuários
  • 154 posts
  • Sexo:Não informado
  • Localidade:Campinas - SP

Posted 12/12/2003, 09:22

Como fazer um bloqueio anti copias, com os 2 botões do mouse desbilitado.
E quando ele tentar copiar, nem aparece um caixa falando bla..bla..bla.
Gostaria que apenas ele tentasse copiar e não aparecer nada

Grato

#2 Dinho Z.

Dinho Z.

    Rock'n'Roll !!! Yeah !!!

  • Usuários
  • 755 posts
  • Sexo:Não informado
  • Localidade:Santo André - SP

Posted 12/12/2003, 09:26

Faça uma busca aqui no fórum que você vai achar alguns tópicos que falam sobre isto...
Dinho

Ajude a proibir os "jabás" nas rádios brasileiras.
Mas, afinal, o que é o "jabá"?!? acesse Rock Brasil
Acesse Fórum SOS Designers
Coluna de JavaScript/CSS do Upmasters

#3 farejador

farejador

    Novato no fórum

  • Usuários
  • 19 posts
  • Sexo:Não informado

Posted 12/12/2003, 10:27

OLá amigo


Segue o código

Abraços





<script language="JavaScript1.3">
if (window.Event)
document.captureEvents(Event.MOUSEUP);

function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//-->
</script>
  <script language=JavaScript>
<!--
  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
  src.style.cursor = 'hand';
  src.bgColor = clrOver;
}
  }
  function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
  src.style.cursor = 'default';
  src.bgColor = clrIn;
}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
  src.children.tags('A')[0].click();
    }
  }
// -->
</script>



#4 Link

Link

    12 Horas

  • Usuários
  • 154 posts
  • Sexo:Não informado
  • Localidade:Campinas - SP

Posted 12/12/2003, 10:54

OLá amigo


Segue o código

Abraços






<script language="JavaScript1.3">
if (window.Event)
document.captureEvents(Event.MOUSEUP);

function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;

return false;
}

function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}

}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//-->
</script>
  <script language=JavaScript>
<!--
  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
   src.style.cursor = 'hand';
   src.bgColor = clrOver;
}
  }
  function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
   src.style.cursor = 'default';
   src.bgColor = clrIn;
}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
   src.children.tags('A')[0].click();
    }
  }
// -->
</script>

Valeu GRande !!!
deu certo

GRato (y)




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq