sasuke! Por favor!! Dale una oportunidad a mi código!! que sí que funciona!! (perdona Kao, esto viene del foro de HTML)
Código PHP:
<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";pregunta.innerText="Ocultar teclado";}
else {z=0;botones.style.visibility="hidden";pregunta.innerText="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=javascript: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>
En qué falla?