JS技术

Javascript实现软键盘_Javascript教程(2)

字号+ 作者:H5之家 来源:H5之家 2015-09-17 17:12 我要评论( )

document.write (' DIV align=center id=\softkeyboard\ name=\softkeyboard\ style=\position:absolute; left:300px; top:0px; width:517px; z-index:180;display:none\'); document.write (' table width=\34

document.write (' <DIV align=center id=\"softkeyboard\" name=\"softkeyboard\" style=\"position:absolute; left:300px; top:0px; width:517px; z-index:180;display:none\">');

document.write (' <table width=\"348\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#FF9900\">');

document.write (' <FORM name=Calc action=\"\" method=post autocomplete=\"off\">');

document.write (' <INPUT type=hidden value=ok name=action2>');

document.write (' <tr> ');

document.write (' <td align=\"left\" bgcolor=\"#FF9900\" align=\"center\"> <INPUT class=td1b type=password size=20 value=\"\" name=password> ');

document.write (' <INPUT class=button type=button value=输入完毕 name=\"Submit3\" onclick=\"OverInput(curEditName);\"> <INPUT class=button type=reset value=输错重来 name=\"Submit23\"> ');

document.write (' <input class=button type=button value=\"关闭\" name=\"Submit222\" onclick=\"closekeyboard(curEditName);\"> </td>');

document.write (' </tr>');

document.write (' <tr> ');

document.write (' <td align=\"center\" bgcolor=\"#FFFFFF\" align=\"center\"> <table align=\"center\" width=\"98%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');

document.write (' <tr align=\"left\" valign=\"middle\"> ');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'1\');\" value=\" 1 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'2\');\" value=\" 2 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'3\');\" value=\" 3 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'4\');\" value=\" 4 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'5\');\" value=\" 5 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'6\');\" value=\" 6 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'7\');\" value=\" 7 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'8\');\" value=\" 8 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'9\');\" value=\" 9 \"></td>');

document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'0\');\" value=\" 0 \"></td>');

document.write (' <td> ');
 

 

    document.write (' <input type=button onclick=\"addValue(\'-\');\" value=\" - \"></td>');

    document.write (' <td><input name=\"button10\" type=button value=\" BackSpace\" onclick=\"setpassvalue();\"> ');

    document.write (' </td>');

    document.write (' <td> </td>');

    document.write (' </tr>');

    document.write (' <tr align=\"left\" valign=\"middle\"> ');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'q\');\" value=\" q \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'w\');\" value=\" w \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'e\');\" value=\" e \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'r\');\" value=\" r \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'t\');\" value=\" t \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'y\');\" value=\" y \"></td>');

    document.write (' <td> ');

document.write (' <input type=button onclick=\"addValue(\'u\');\" value=\" u \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'i\');\" value=\" i \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'o\');\" value=\" o \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'p\');\" value=\" p \"></td>');

    document.write (' <td> ');

    document.write (' <input name=\"button6\" type=button onClick=\"addValue(\':\');\" value=\" : \"></td>');

    document.write (' <td><input name=\"button12\" type=button onclick=\"OverInput(curEditName);\" value=\" Enter \"> ');

    document.write (' </td>');

    document.write (' <td> ');

    document.write (' </td>');

    document.write (' </tr>');

    document.write (' <tr align=\"left\" valign=\"middle\"> ');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'a\');\" value=\" a \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'s\');\" value=\" s \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'d\');\" value=\" d \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'f\');\" value=\" f \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'g\');\" value=\" g \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'h\');\" value=\" h \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'j\');\" value=\" j \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'k\');\" value=\" k \"></td>');

    document.write (' <td> ');

    document.write (' <input type=button onclick=\"addValue(\'l\');\" value=\" l \"></td>');

    document.write (' <td> ');

    document.write (' <input name=\"button8\" type=button onClick=\"addValue(\'[\');\" value=\" [ \"></td>');

    document.write (' <td> ');

    document.write (' <input name=\"button9\" type=button onClick=\"addValue(\']\');\" value=\" ] \"></td>');

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
网友点评