Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/05/2006, 17:50
yconoclasta
 
Fecha de Ingreso: febrero-2005
Mensajes: 135
Antigüedad: 20 años
Puntos: 0
Ya cree las funciones y están trabajando:

http://percepcionunitaria.org/eo/ver...omo_brulas.php

Ahora me gustaría saber cómo poder regresar a los cambios hechos sin recargar la página.

Aquí las funciones que escribí (para regresar al sistema unicode no me convence esto):

Código PHP:
function hsistemo() {
    
txt document.body.innerHTML;
    
txt txt.replace(/u0109/g,'ch');
    
txt txt.replace(/u011d/g,'gh');
    
txt txt.replace(/u0125/g,'hh');
    
txt txt.replace(/u0135/g,'jh');
    
txt txt.replace(/u015d/g,'sh');
    
txt txt.replace(/u016d/g,'u');
    
txt txt.replace(/u0108/g,'Ch');
    
txt txt.replace(/u011c/g,'Gh');
    
txt txt.replace(/u0124/g,'Hh');
    
txt txt.replace(/u0134/g,'Jh');
    
txt txt.replace(/u015c/g,'Sh');
    
txt txt.replace(/u016c/g,'U');
  
document.body.innerHTML txt;
}
function 
unikodo() {
    
txt document.body.innerHTML;
    
txt txt.replace(/ch/g,'\u0109');
    
txt txt.replace(/gh/g,'\u011d');
    
txt txt.replace(/hh/g,'\u0125');
    
txt txt.replace(/jh/g,'\u0135');
    
txt txt.replace(/sh/g,'\u015d');
    
txt txt.replace(/au/g,'a\u016d');
    
txt txt.replace(/Ch/g,'\u0108');
    
txt txt.replace(/Gh/g,'\u011c');
    
txt txt.replace(/Hh/g,'\u0124');
    
txt txt.replace(/Jh/g,'\u0134');
    
txt txt.replace(/Sh/g,'\u015c');
    
txt txt.replace(/aU/g,'a\u016c');
  
document.body.innerHTML txt;

De la forma que regreso a Unicode lo malo es que afecta también a uno de los estilos de la página y algunas palabras que no están en Esperanto, por ello de que no esté bien esta manera.

Gracias.