Ver Mensaje Individual
  #10 (permalink)  
Antiguo 31/12/2004, 14:16
Avatar de lexus
lexus
 
Fecha de Ingreso: enero-2002
Ubicación: Cali - Colombia
Mensajes: 2.234
Antigüedad: 22 años, 4 meses
Puntos: 4
hola gracias por responder
ya coloque el script como me lo pasaste y no me fuunciona ya todas las teclas funcionan y se puede oprimir f5, f1, f11, y backspace qeu podra ser?

voy a colocarte el archivo include.asp que uso en todas mis paginas con otros javascript depronto sera que entran en conflicto?

Código:
 
<script language=JavaScript>
<!--
var message="";
////////// DESHABILITA EL CLIC DERECHO DEL MOUSE
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// --> 
///////////// DESHABILITA LA OPCION DE SELECCIONAR TEXTOS E IMAGENES
function disableselect(e){
return false
}
function reEnable(){
return true
}
//Si es con Internet Explorer 4 o superior
document.onselectstart=new Function ("return false")
//si es con NetsCape 6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// deshabilita la tecla F5, F11
document.onkeydown = function(){ 
if(window.event && (window.event.keyCode == 116 || window.event.keyCode == 122 || window.event.keyCode == 8 || window.event.keyCode == 112)){
return false;
}
}
  
//Posiciona la ventana flotante en el centro de la pantalla
function posicionar()
{
iz=(screen.width-document.body.clientWidth) / 2; 
de=(screen.height-document.body.clientHeight) / 2; 
moveTo(iz,de); 
window.focus();
}
function deshabilita(){ 
document.form1.submits.disabled = true; 
 document.form1.submits.value = "Verificando Usuario..."; 
} 
//////////////////////////////////////
// funcion solo numeros en campo de formulario
function noletras(){
var key=window.event.keyCode;//codigo de tecla.
if (key < 48 || key > 57){//si no es numero 
window.event.keyCode=0;//anula la entrada de texto.
}}
//////////////////////////////////////
// funcion solo letras en campo de formulario
var contenido=""
	var Letra;
	var letra;
	var LETRA;
function comprobar(esto){
					palabra=esto.value;
					contenido="";
 for (numeroDeLetra=0;numeroDeLetra<palabra.length;numeroDeLetra++){
Letra=palabra.charAt(numeroDeLetra);
 LETRA=Letra.toUpperCase();
letra=Letra.toLowerCase();
 if (LETRA!=letra || Letra==" "){
contenido=contenido+Letra;
  }
 }
 return contenido;
 }
//////////////////////////////////////
// funcion para limitar las palabras en 
// text areas
function maximaLongitud(texto,maxlong) { 
  var tecla, in_value, out_value; 
  if (texto.value.length > maxlong) { 
	in_value = texto.value; 
	out_value = in_value.substring(0,maxlong); 
	texto.value = out_value; 
	return false; 
  } 
  return true; 
} 
// funcion para ocultar/mostrar tablas
function alternando(elemento) {
var meVeo = document.getElementById(elemento).style.display == "block";
document.getElementById(elemento).style.display = (meVeo) ? "none" : "block";
}
// funcion para abrir ventanas flotantes
function flotante(foto,ancho,alto){
nuevaVentana = window.open(foto,"nuevaVentana","height="+alto+",width="+ancho+",resizable=0,noresize=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no")
}
// funcion para abrir la ventana de ayuda
function ayuda(){
window.open("../ayuda/","ayuda","directories=0,width=300,height=300,scrollbars=yes");
}
</script>
<script> 
var howmanymenus = 0; // 0=1 1=2 2=3 etc
var menunames = new Array(howmanymenus);
menunames[0] = "menu";
//widths of navbar menu headers
var navwidth = new Array(howmanymenus);
navwidth[0] = 70;
var cellpad=0;
var effectopen = -1; //set to -1 for no effects
var effectclose = -1; //set to -1 for no effects
var buttonwidth = 130; //how wide is each menu Item
var buttonheight = 1; //how high is each menu Item
var menudir ="hor"; //horizontal or vert   use "hor" or "ver"
var path_to_stylesheet = "../apariencias/<%=request.cookies("apariencia")%>.css";
//these are for news only
var newstimer=-1; //in seconds
var newseffect=0;//open and close effect
var newswide=500;
var newshigh=80;
</script>
__________________
Control de Visitantes, Control de Accesos, Minutas digitales, Manejo de Correspondencia
http://www.controldevisitantes.com