Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/05/2012, 13:43
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 4 meses
Puntos: 1012
Respuesta: Formato numérico

prueba con esta mascara
Cita:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">
function operaciones(total) {
var valorParseado = total.replace(/\./g, '');
var valorParseado2 = valorParseado.toString().split('').reverse().join( '').replace(/\d{3}(?=\d)/g, function(encaja){ return encaja+'.';})
document.getElementById('n').value = valorParseado2.toString().split('').reverse().join ('');
}
</script>
</head>
<body>
<form>
<input id="n" type="text" onkeyup="operaciones(this.value)" value="" />
</form>
</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}