/*seleccion de codigos*/ Función Selectcode (a) { // Conseguir el código de identificación de bloque E = un var. Parentnode. Parentnode. Getelementsbytagname (' Código ')[ 0]; // No IE Si (la ventana. Getselection) { Var s = ventana. Getselection (); // Safari Si (s. Setbaseandextent) { S. Setbaseandextent (e, 0 e, e. Innertext. Longitud-1); } // Firefox y opera Más { // Solución para el error #42885 Si (la ventana. Ópera && E. Innerhtml. Subcadena (e. Innerhtml. Longitud-4) == '
') { Y. Innerhtml = y. Innerhtml + ' '; } Var R = documento. Createrange (); r.selectNodeContents(e); S. Removeallranges (); S. Addrange (R); } } // Algunos navegadores antiguos Más si (documento. Getselection) { Var s = documento. Getselection (); Var R = documento. Createrange (); r.selectNodeContents(e); S. Removeallranges (); S. Addrange (R); } // IE Más si (documento. Selección) { Var R = documento. Cuerpo. Createtextrange (); R. Movetoelementtext (e); R. Seleccionar (); } } If (text){} Else {var text = 'seleccionar todos';} Jquery (documento). Listo (función (){ jQuery("dl.codebox dt").not("dl.spoiler > dt").html('Code: Seleccionar todo el contenido '); });

Fecha y hora actual: Jue Mar 28, 2024 11:23 am

 
Por favor escribe tu nombre de usuario y tu contraseña para conectarte.
Recuperar mi contraseña
 
 
Registrarse

¿No tienes cuenta aún?
Puedes registrarte


Registrarse