scripts html 2
camara sobre la pagina
contador de caractares
Contador de caracteres
codigo
<textarea rows="6" cols="40"><html>
<head>
<title>Contador de caracteres</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT>
//
function wordCount() {
textoArea = document.formulario.area.value;
numeroCaracteres = textoArea.length;
inicioespacio = /^ /
finespacio = / $/
variosespacios = /[ ]+/g
textoArea = textoArea.replace(inicioespacio,"");
textoArea = textoArea.replace(finespacio,"");
textoArea = textoArea.replace(variosespacios," ");
textoAreaDividido = textoArea.split(" ");
numeroPalabras = textoAreaDividido.length;
tC = (numeroCaracteres==1)?" carácter":" caracteres";
tP = (numeroPalabras==1)?" palabra":" palabras";
alert (numeroCaracteres + tC +" " + numeroPalabras + tP);
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="formulario">
<TEXTAREA NAME="area" COLS=20 ROWS=10>Escribe tu texto</TEXTAREA>
<BR>
<INPUT TYPE="button" VALUE=" Mostrar numero de caracteres" onClick="wordCount();">
</FORM>
</body>
</html>
<textarea rows="6" cols="40"><html>
<head>
<title>Contador de caracteres</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT>
//
function wordCount() {
textoArea = document.formulario.area.value;
numeroCaracteres = textoArea.length;
inicioespacio = /^ /
finespacio = / $/
variosespacios = /[ ]+/g
textoArea = textoArea.replace(inicioespacio,"");
textoArea = textoArea.replace(finespacio,"");
textoArea = textoArea.replace(variosespacios," ");
textoAreaDividido = textoArea.split(" ");
numeroPalabras = textoAreaDividido.length;
tC = (numeroCaracteres==1)?" carácter":" caracteres";
tP = (numeroPalabras==1)?" palabra":" palabras";
alert (numeroCaracteres + tC +" " + numeroPalabras + tP);
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="formulario">
<TEXTAREA NAME="area" COLS=20 ROWS=10>Escribe tu texto</TEXTAREA>
<BR>
<INPUT TYPE="button" VALUE=" Mostrar numero de caracteres" onClick="wordCount();">
</FORM>
</body>
</html>
caracteristicas de tu equipo
codigo
<html>
<head>
<title>Aporta informacion del equipo con que se abre la pagina</title>
<script language=javascript>
<!--
document.write("<br><center><table border=1 cellpadding=2><tr><td>")
document.write("<center><b>", navigator.appName,"</b>")
document.write("</td></tr><tr><td>")
document.write("<center><table border=1 cellpadding=2><tr><td>Código: </td><td><center><b>", navigator.appCodeName,"</td></tr>")
document.write("<tr><td>Versión: </td><td><center><b>",navigator.appVersion,"</td></tr>")
document.write("<tr><td>Plataforma: </td><td><center><b>", navigator.platform,"</td></tr>")
document.write("<tr><td>Plugins: </td><td><center><b>", navigator.plugins," </td></tr>")
document.write("<tr><td>Java activado: </td><td><center><b>")
if (navigator.javaEnabled()) document.write("Si</td></tr>"); else document.write("No</td></tr>")
document.write("<tr><td>Resolución de pantalla: </td><td><center><b>",screen.width," x ",screen.height,"</td></tr>")
document.write("<tr><td>Procedencia: </td><td><center><b>",document.referrer,"</td></tr>")
document.write("<tr><td>Núm. de páginas visitadas: </td><td><center><b>", history.length,"</td></tr>")
document.write("</table></tr></td></table></center>")
//-->
</script>
</head>
<body>
</body>
</html>
HOBIE.es.tl <html>
<head>
<title>Aporta informacion del equipo con que se abre la pagina</title>
<script language=javascript>
<!--
document.write("<br><center><table border=1 cellpadding=2><tr><td>")
document.write("<center><b>", navigator.appName,"</b>")
document.write("</td></tr><tr><td>")
document.write("<center><table border=1 cellpadding=2><tr><td>Código: </td><td><center><b>", navigator.appCodeName,"</td></tr>")
document.write("<tr><td>Versión: </td><td><center><b>",navigator.appVersion,"</td></tr>")
document.write("<tr><td>Plataforma: </td><td><center><b>", navigator.platform,"</td></tr>")
document.write("<tr><td>Plugins: </td><td><center><b>", navigator.plugins," </td></tr>")
document.write("<tr><td>Java activado: </td><td><center><b>")
if (navigator.javaEnabled()) document.write("Si</td></tr>"); else document.write("No</td></tr>")
document.write("<tr><td>Resolución de pantalla: </td><td><center><b>",screen.width," x ",screen.height,"</td></tr>")
document.write("<tr><td>Procedencia: </td><td><center><b>",document.referrer,"</td></tr>")
document.write("<tr><td>Núm. de páginas visitadas: </td><td><center><b>", history.length,"</td></tr>")
document.write("</table></tr></td></table></center>")
//-->
</script>
</head>
<body>
</body>
</html>
HOBIE