Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/06/2009, 06:34
Avatar de colote
colote
 
Fecha de Ingreso: julio-2008
Ubicación: Rosario - Santa Fe - Argentina
Mensajes: 729
Antigüedad: 16 años, 8 meses
Puntos: 8
Respuesta: ayuda con firefox y javascript

Hola , este script lo saque hace tiempo de ese link que dejo David ahi arriba, pero con poca modificacion ...

Código javascript:
Ver original
  1. function tabular(e,obj)  
  2. {
  3. teclaa=(document.all) ? e.keyCode : e.which;
  4.  
  5. if(teclaa!=13) return;
  6.  
  7. frm=obj.form;
  8.  
  9. for(i=0;i<frm.elements.length;i++)
  10.     if(frm.elements[i]==obj)  
  11.     {  
  12.     if (i==frm.elements.length-1)
  13.     i=-1;
  14.     break;
  15.     }
  16.  
  17.     if (frm.elements[i + 1].disabled == true || frm.elements[i+1].type == "hidden")
  18.     tabular(e,frm.elements[i+1]);
  19.     else frm.elements[i+1].focus();
  20.     return false;
  21. }

Y en el input, o select o lo que quieras , para que te tabule le agregas, un onkeypress="return tabular(event,this)"

<input type="text" size=50 name="mail" onkeypress="return tabular(event,this)">

Saludos, Ricardo!!!
__________________
Mail: [email protected]