Búsqueda personalizada

30 de julio de 2007

Coleccion de scripts de ratón

Otra coleccion de scripts les traigo hoy sobre el cursor y el mouse (son totalmente configurables



Para anular boton derecho del mouse:



<script LANGUAGE="JavaScript1.1">



<!-- Adaptado por Tk: Compatible con IE y NS -->



function derecha(e) {

if (navigator.appName == 'Netscape' && (e.which == 3 e.which == 2)){

alert('Botón derecho inhabilitado')

return false;

}



else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){

alert('Botón derecho inhabilitado')

}

}

document.onmousedown=derecha

</script>




Para anular boton izquierdo del mouse:



><!-- Botón izquierdo del mouse -->



<script LANGUAGE="JavaScript1.1">



<!-- Adaptado por Tk: Compatible con IE y NS -->



function izquierda(e) {

if (navigator.appName == 'Netscape' && (e.which == 1 e.which == 2)){

alert('Botón izquierdo inhabilitado')

return false;

}



else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 1)){

alert('Botón izquierdo inhabilitado')

}

}

document.onmousedown=izquierda

</script>










No deja hacer clicks en la pagina:





<SCRIPT>if (document.all)

document.body.onmousedown=new Function("if

(event.button==2event.button==3) alert('Tu mensaje

aquí')")

</SCRIPT>




Para anular el boton derecho e izqiuerdo del mouse:



<!-- Botón izquierdo y derecho del mouse -->



<script LANGUAGE="JavaScript1.1">



<!-- Adaptado por Tk: Compatible con IE y NS -->



function ambos(e) {

if (navigator.appName == 'Netscape' && (e.which == 1 e.which == 3 e.which == 2)){

alert('Los botones del mouse han sido inhabilitados')

return false;

}



else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 1 event.button == 2)){

alert('Los botones del mouse han sido inhabilitados')

}

}

document.onmousedown=ambos

</script>




<script language="Javascript">

zaehler=0;

function right(e) {

if (navigator.appName == 'Netscape'){

if (e.which == 3 e.which == 2){

alert("Boton Derecho Inhailitado");

for(i=0;i!=zaehler;i++)alert("Penalizado con \n

"+(zaehler-i)+"\n clicks.");

zaehler+=10;

alert("La proxima vez sera peor");

return false;}}

if (navigator.appName == 'Microsoft Internet Explorer'){

if (event.button == 2 event.button == 3){

alert("Boton Derecho Inhailitado");

for(i=0;i!=zaehler;i++)alert("Penalizado con \n

"+(zaehler-i)+"\n clicks.");

zaehler+=10;

alert("La proxima vez sera peor ");

return false;}}

return true;

}

document.onmousedown=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

window.onmousedown=right;

// --></script>






0 opiniones:

Publicar un comentario

Hola , el blog nesesita tu commentario asi que por favor escribe lo que tu de verdad quieras

Posicionamiento en buscadores

El secreto del Posicionamiento en Google está en los enlaces. Los buscadores valoran la popularidad de un sitio por el número de enlaces hacia el mismo y su calidad. Sin duda el posicionamiento web y el link building es un paso clave para cualquier blog.

Posicionamiento en buscadores

 

Copyright © 2011 Marketing y Posicionamiento en Internet. Trucos blogger | Design by Kenga Ads-template