日期:2014-05-17  浏览次数:21120 次

ASP页面中怎么实现点击文本框弹出虚拟键盘的功能
ASP页面中怎么实现点击文本框弹出虚拟键盘的功能,急,望各位高手指点

------解决方案--------------------
http://www.baidu.com/s?wd=%C8%ED%BC%FC%C5%CC+javascript&cl=3
------解决方案--------------------
参考:
softkeyboard.js
var oPopUp=null;
function SoftKeyboard(Obj){
oPopUp=window.createPopup();
var popBody=oPopUp.document.body;
popBody.style.backgroundColor = "#FFFF99 ";
popBody.style.border = "solid black 1px ";
WriteToPopup(oPopUp,Obj);
oPopUp.show(0,22,650,300,Obj);
}
function WriteToPopup(oPopUp,Obj){
var strHTML= " <html> <head> ";
strHTML+= ' <meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 "> ';
strHTML+= ' <style type= "text/css "> ';
strHTML+= '.td{text-align:center; background-color:#FFFF99; vertical-align:middle;font-size:20px;background-Image:(url:bg.gif); font-weight:800} ';
strHTML+= '.button{border:0;width:90%; height:95%;} ';
strHTML+= ' </style> ';
strHTML+= ' <script language= "javascript "> ';
strHTML+= 'var arrLow=new Array( "` ", "1 ", "2 ", "3 ", "4 ", "5 ", "6 ", "7 ", "8 ", "9 ", "0 ", "- ", "= ", "\ ", "a ", "b ", "c ", "d ", "e ", "f ", "g ", "h ", "i ", "j ", "k ", "l ", "m ", "n ", "o ", "p ", "q ", "r ", "s ", "t ", "u ", "v ", "w ", "x ", "y ", "z ", "[ ", "] ", "; ", "\ ' ", ", ", ". ", "/ ", " "); ';
strHTML+= 'var arrUp =new Array( "~ ", "! ", "@ ", "# ", "$ ", "% ", "^ ", "& ", "* ", "( ", ") ", "_ ", "+ ", "| ", "A ", "B ", "C ", "D ", "E ", "F ", "G ", "H ", "I ", "J ", "K ", "L ", "M ", "N ", "O ", "P ", "Q ", "R ", "S ", "T ", "U ", "V ", "W ", "X ", "Y ", "Z ", "{ ", "} ", ": ", "\\ " ", " < ", "> ", "? ", " "); ';
strHTML+= 'var curOverTd=null; var curClkTd=null; var CapsStatus= "black "; ';
strHTML+= 'var ObjectId=parent.document.getElementById( " '+Obj.id+ ' "); ';
strHTML+= 'function TdMouseOver(TdObj){ ';
strHTML+= 'TdObj.style.backgroundColor= "blue "; ';
strHTML+= ' TdObj.style.color= "white "; ';
strHTML+= 'curOverTd=TdObj;} ';
strHTML+= 'function TdMouseOut(TdObj){ ';
strHTML+= 'if(curClkTd==TdObj){ ';
strHTML+= 'TdObj.style.backgroundColor= "red "; ';
strHTML+= 'TdObj.style.color= "white "; ';
strHTML+= '}else{ ';
strHTML+= 'TdObj.style.backgroundColor= "#FFFF99 "; ';
strHTML+= 'TdObj.style.color= "black "; } ';
strHTML+= '} ';
strHTML+= 'function TdMouseClk(TdObj){ ';
strHTML+= 'if(c