Bloqueio
Publicado por Leonardo Berbert Gomes 02/01/2005
[ Hits: 7.001 ]
Homepage: https://www.linkedin.com/in/leoberbert
Script de Bloqueio muito bom, sem mensagens chatas e não seleciona texto
<!-- BE
function blockError(){return true;}
window.onerror = blockError;
//-->
<!-- DS
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//-->
<!-- BD
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;
//-->
Cookie - Número de visitas do usuário
Notícias do site Ultimo Segundo
Audacious, VLC e QMMP - que saudades do XMMS
SUNO OpenSource: Crie um servidor de gerador de música com IA
Instalação Completa e Configuração Básica do Void Linux
A Fundação da Confiança Digital: A Importância Estratégica de uma PKI CA na Segurança de Dados
Script para configurar o DOOM Retro no Linux
Script para organizar janelas em cascata no KDE Plasma 6 (Wayland)
Qual é a melhor forma de utilizar ponteiros? (5)
Instalador não reconhece SSD Sata. (3)
Crontab não executa algumas tarefas (7)









