![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/12/2002, 10:22
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Si fueras un poco más específico en cuanto a tus preferencias lo tendríamos todos un poco más fácil. Prueba a ver este, le he quitado lo de evitar escribir en el Text Box. A ver si así te gusta más:
<html>
<head>
<script>
texto="";
var z=0;
function anadir(letra){
texto=barra.value;
texto=texto+letra;
barra.value=texto;
}
function mostrar(){
if (z==0){z=1;botones.style.visibility="visible";preg unta.innerText="Ocultar teclado";}
else {z=0;botones.style.visibility="hidden";pregunta.in nerText="Mostrar teclado";}
}</script>
</head>
<body style="font:normal 10px/15px verdana">
<center>
<div style="width:300px">
<input type="Text" name="barra" style="width:300px;border:solid 1px black" ><br>
<a id="pregunta" href='#' onClick="mostrar()">Mostrar teclado</a>
<br>
<br>
<br>
<br>
<br><div align=center id="botones" style="font:normal 8px/4px verdana;visibility:hidden;"></div>
<script>
var letras="";
var p=0;
for (a=65;a<91;a++){
letras=letras+"<input style='width:20px;heiht:20px;' type='Button' value=&#"+a+" onclick=anadir('&#"+a+"')> ";
p=p+1;
if(p==9){p=0;letras=letras+"<br><br>";}
}
botones.innerHTML=letras+"<input style='width:20px;heiht:20px;' type='Button' value=© onClick=alert('KarlanKas-2002')><br><br><input style='width:205px;height:22px;' type='Button' value='espacio' onclick=anadir(' ')>";
</script>
</div>
</center>
</body>
</html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |