Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/12/2002, 13:03
Yanix
 
Fecha de Ingreso: noviembre-2002
Ubicación: Washington, DC
Mensajes: 822
Antigüedad: 21 años, 5 meses
Puntos: 5
Esto solamente te desactiva la función del F5 (recrea) y el botón derecho del mouse. Recuerda colocarlo entre los tags de <head> </head>.

Código:
<script language="javascript">
	document.onkeydown = function(){ 
	if(window.event && window.event.keyCode == 116)         
	{ 
     	window.event.keyCode = 505; 
     	}
if(window.event && window.event.keyCode == 505) 
     { 
     return false;    
     } 
	} 
</script>
<script>
	var ns6=(document.getElementById&&!document.all)?true:false;
	bV  = parseInt(navigator.appVersion);
	var mensaje = "Esta opción está deshabilitada.";
	function nrc(e) {
	if (ns6 && e.which > 1){
		alert(mensaje);
		return false;
	}else if (document.all && !ns6 &&(event.button >1)){
		alert(mensaje);
		return false;
	}}
	document.onmousedown = nrc;
	if (document.layers) window.captureEvents(Event.mousedown);
	if (ns6 && bV<5) window.onmousedown = nrc;
</script>
__________________
Yanira

Última edición por Yanix; 10/12/2002 a las 13:51