Indonesia
<!--完整的HTML代码如下:--> <html> <head> <SCRIPT> //定义当前是否大写的状态 window.onload= function() { password1=null; initCalc(); } var Nilai CapsLock=0; pemeriksaan var; fungsi setVariables() { tablewidth=630; // lebar logo, dalam piksel tinggi tabel=20; // tinggi logo, dalam piksel if (navigator.appName == "Netscape") { horz=".left"; vert=".atas"; docStyle="dokumen."; gayaDok=""; innerW="jendela.innerWidth"; innerH="jendela.innerHeight"; offsetX="jendela.halamanXOffset"; offsetY="jendela.halamanYOffset"; } else { horz=".pixelLeft"; vert=".pixelTop"; gaya doc=""; styleDoc=".style"; innerW="document.body.clientWidth"; innerH="document.body.clientHeight"; offsetX="document.body.scrollLeft"; offsetY="dokumen.tubuh.scrollTop"; } } fungsi checkLocation() { if (centang) { objectXY="softkeyboard"; var tersediaX=eval(innerW); var tersediaY=eval(innerH); var currentX=eval(offsetX); var currentY=eval(offsetY); x=tersediaX-lebar tabel+saat iniX; //y=availableY-tableheight+currentY; y=saat iniY; evalMove(); } setTimeout("periksaLokasi()",0); } fungsi evalMove() { //eval(docStyle + objectXY + styleDoc + horz + "=" + x); eval(docStyle + objekXY + styleDoc + vert + "=" + y); } diri.onError=null; arusX = arusY = 0; yang mana = null; gulir terakhirX = 0; Gulir terakhirY = 0; NS = (dokumen.lapisan) ? 1 : 0; IE = (dokumen.semua) ? 1: 0; function heartBeat() { if(IE) { diffY = document.body.scrollTop; diffX = dokumen.body.scrollLeft; } if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; } if(diffY != lastScrollY) { persen = .1 * (diffY - lastScrollY); if(persen > 0) persen = Math.ceil(persen); else persen = Math.floor(persen); if(IE) document.all.softkeyboard.style.pixelTop += persen; if(NS) document.softkeyboard.top += persen; lastScrollY = lastScrollY + persen;} if(diffX != lastScrollX) { persen = .1 * (diffX - lastScrollX); if(persen > 0) persen = Math.ceil(persen); else persen = Math.floor(persen); if(IE) document.all.softkeyboard.style.pixelLeft += persen; if(NS) document.softkeyboard.left += persen; lastScrollX = lastScrollX + persen; } } fungsi checkFocus(x,y) { penguntitx = dokumen.softkeyboard.pageX; penguntit = dokumen.softkeyboard.pageY; stackerwidth = dokumen.softkeyboard.clip.width; tinggi penguntit = dokumen.softkeyboard.clip.height; if( (x > penguntitx && x < (penguntitx+lebar penguntit)) && (y > penguntit && y < (penguntit+tinggi penguntit))) mengembalikan nilai true; jika tidak, kembalikan salah;} fungsi ambilIt(e) { centang = salah; if(IE) { yang mana = event.srcElement; while (whichIt.id.indexOf("softkeyboard") == -1) { yang mana = yang mana.parentElement; if (yang mana == null) { kembali benar; } } yangItu.gaya.pixelLeft = yangItu.offsetLeft; yang mana.gaya.pixelTop = yang mana.offsetTop; currentX = (event.clientX + dokumen.body.scrollLeft); currentY = (event.clientY + dokumen.body.scrollTop); } else { window.captureEvents(Event.MOUSEMOVE); if(checkFocus (e.pageX,e.pageY)) { yang mana = document.softkeyboard; StalkerTouchedX = e.pageX-document.softkeyboard.pageX; StalkerTouchedY = e.pageY-document.softkeyboard.pageY;} } mengembalikan nilai true; } fungsi moveIt(e) { if (whichIt == null) { return false; } if(IE) { newX = (event.clientX + document.body.scrollLeft); newY = (event.clientY + dokumen.body.scrollTop); jarakX = (baruX - saat iniX); jarakY = (baruY - saat iniY); currentX = newX; saat iniY = baruY; yangIt.style.pixelLeft += distanceX; yang manaIt.style.pixelTop += jarakY; if(whichIt.style.pixelTop < document.body.scrollTop) yangIt.style.pixelTop = document.body.scrollTop; if(whichIt.style.pixelLeft < document.body.scrollLeft) yangIt.style.pixelLeft = document.body.scrollLeft; if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - yangIt.style.pixelWidth - 20) yangIt.style.pixelLeft = document.body.offsetWidth - yangIt.style.pixelWidth - 20; if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - yangIt.style.pixelHeight - 5) yangIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - yangIt.style. pikselTinggi - 5; acara.returnValue = false; } else { yang mana.moveTo(e.pageX-StalkerTouchedX,e.pageY-StalkerTouchedY); if(whichIt.left < 0+self.pageXOffset) yangIt.left = 0+self.pageXOffset; if(whichIt.top < 0+self.pageYOffset) yangIt.top = 0+self.pageYOffset; if( (whichIt.left + yangIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) yangIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17 ; if( (whichIt.top + yang.clip.height) >= (window.innerHeight+self.pageYOffset-17)) yangIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17 ; kembali salah;} kembali salah; } fungsi dropIt() {yang mana = null; if(NS) window.releaseEvents (Event.MOUSEMOVE); kembali benar; } if(NS) {window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN); window.onmousedown = ambilIt; window.onmousemove = pindahkan; window.onmouseup = dropIt; } if(IE) { document.onmousedown = ambilIt; dokumen.onmousemove = moveIt; dokumen.onmouseup = dropIt; } // if(NS || YAITU) tindakan = window.setInterval("heartBeat()",1); //lebih banyak javascript dari http://www.downcodes.com document.write("<DIV align=center id="softkeyboard" name="softkeyboard" style="position:absolute; left:0px; atas:0px; lebar:500px; z-index:180;display:none"> <id tabel="CalcTable" lebar="" border="0" align="center" bantalan sel ="0" Cellspacing="0" bgcolor=""> <FORM id=Nama Calc=Calc action="" method=post autocomplete="off"> <tr> <td title="尊敬的客户:为了保证网上交易安全,建议使用密码输入器输入密码!" align="right" valign="middle" bgcolor="" style= "kursor: default;height:30"> <Jenis INPUT=nilai tersembunyi="" nama=kata sandi> <Jenis INPUT=nilai tersembunyi=nama oke=tindakan2>密码输入器             <INPUT style="width:100px;height:20px;background- color:#54BAF1;" type=button value="使用键盘输入" bgtype="1" onclick="password1.readOnly=0;password1.focus();softkeyboard.style.display='none ';password1.value='';"><span style="width:2px;"></span></td> </tr> <tr align="center"> <td align ="center" bgcolor="#FFFFFF"> <perataan tabel="center" width="%" border="0" Cellspacing="1" cellpadding="0 ">n <tr align="left" valign="middle"> n <td> <tipe input=button value=" ~ "></td>n <td> < tipe masukan=nilai tombol=" ! "></td>n <td> <tipe masukan=nilai tombol=" @ "></td>n <td> <tipe masukan=nilai tombol=" # "></td >n <td> <tipe masukan=nilai tombol=" $ "></td>n <td> <tipe masukan=nilai tombol=" % "></td>n <td> <tipe masukan=nilai tombol=" ^ "></td>n <td> <tipe masukan=nilai tombol=" & "></td>n <td> <tipe masukan=nilai tombol =" * "></td>n <td> <tipe masukan=nilai tombol=" ( "></td>n <td> <tipe masukan=nilai tombol=" ) " ></td>n <td> <tipe masukan=nilai tombol=" _ "></td>n <td> <tipe masukan=nilai tombol=" + "></td> n <td> <tipe masukan=nilai tombol=" | "></td>n <td colspan="1" rowpan="2"> <nama masukan="button10" type=button value=" 退格" onclick=" setpassvalue();" onDblClick="setpassvalue();" style="width:100px;height:42px"> n </td>n </tr>n <tr align=" kiri" valign="tengah"> n <td> <tipe masukan=nilai tombol=" ` "></td>n <td> <tipe masukan=nilai tombol=" 1 " ></td>n <td> <tipe masukan=nilai tombol=" 2 "></td>n <td> <tipe masukan=nilai tombol=" 3 "></td> n <td> <tipe masukan=nilai tombol=" 4 "></td>n <td> <tipe masukan=nilai tombol=" 5 "></td>n <td> <masukan type=button value=" 6 "></td>n <td> <input type=button value=" 7 "></td>n <td> <input type=button value= " 8 "></td>n <td> <tipe masukan=nilai tombol=" 9 "></td>n <td> <nama masukan="button6" type=nilai tombol= " 0 "></td>n <td> <tipe masukan=nilai tombol=" - "></td>n <td> <tipe masukan=nilai tombol=" = "> </td>n <td> <tipe masukan=button value=" \ "></td>n <td> </td>n </tr>n <tr align=" kiri" valign="tengah"> n <td> <tipe masukan=nilai tombol=" q "></td>n <td> <tipe masukan=nilai tombol=" w " ></td>n <td> <tipe masukan=nilai tombol=" e "></td>n <td> <tipe masukan=nilai tombol=" r "></td> n <td> <tipe masukan=nilai tombol=" t "></td>n <td> <tipe masukan=nilai tombol=" y "></td>n <td> <masukan type=button value=" u "></td>n <td> <input type=button value=" i "></td>n <td> <input type=button value= " o "></td>n <td> <nama masukan="button8" type=button value=" p "></td>n <td> <nama masukan="button9 " type=button value=" { "></td>n <td> <input type=button value=" } "></td>n <td> <input type=button value =" [ "></td>n <td> <tipe masukan=nilai tombol=" ] "></td>n <td><nama masukan="button9" tipe=tombol onClick="capsLockText();setCapsLock();" onDblClick="capsLockText();setCapsLock();" value="切换大/小写" style="width:100px;">< /td>n </tr>n <tr align="left" valign="middle"> n <td> <tipe input=button value=" a "></td> n <td> <tipe masukan=nilai tombol=" s "></td>n <td> <tipe masukan=nilai tombol=" d "></td>n <td> < tipe masukan=nilai tombol=" f "></td>n <td> <tipe masukan=nilai tombol=" g "></td>n <td> <tipe masukan=nilai tombol= " h "></td>n <td> <tipe masukan=nilai tombol=" j "></td>n <td> <nama masukan="button3" tipe=nilai tombol =" k "></td>n <td> <nama masukan="button4" type=nilai tombol=" l "></td>n <td> <nama masukan= "button5" type=button value=" : "></td>n <td> <input name="button7" type=button value=" " "></td>n <td> <tipe masukan=nilai tombol=" ; "></td>n <td> <tipe masukan=nilai tombol=" ' "></td>n <td rowpan="2" colspan="2"> <masukan nama="button12" type=button onclick="OverInput();" value=" 确定 " style="width:130px;height:42"></td>n </tr >n <tr align="left" valign="middle"> n <td> <input name="button2" type=button value=" z "></td> n <td> <tipe masukan=nilai tombol=" x "></td>n <td> <tipe masukan=nilai tombol=" c "></td>n <td> <masukan type=button value=" v "></td>n <td> <input type=button value=" b "></td>n <td> <input type=button value= " n "></td>n <td> <tipe masukan=nilai tombol=" m "></td>n <td> <tipe masukan=nilai tombol=" < "></td>n <td> <tipe masukan=nilai tombol=" > "></td>n <td> <tipe masukan=nilai tombol=" ? "></td>n <td> <tipe masukan=nilai tombol=" , "></td>n <td> <tipe masukan=nilai tombol=" . "></td>n <td> <tipe masukan=button value=" / "></td>n </tr>n </table></td> </FORM> < /tr> </table></DIV>") //给输入的密码框添加新值 function addValue(newValue) { if (CapsLockValue==0) { var str=Calc.password.value; if(str.length<password1.maxLength) { Calc.password.value += newValue; } if(str.length<=password1.maxLength) { password1.value=Calc.password.value; } } else { var str=Calc.password.value; if(str.length<password1.maxLength) { Calc.password.value += newValue.toUpperCase(); } if(str.length<=password1.maxLength) { password1.value=Calc.password.value; } } } //实现BackSpace键的功能 function setpassvalue() { var longnum=Calc.password.value.length; var num num=Calc.password.value.substr(0,longnum-1); Calc.password.nilai=angka; var str=Kalc.kata sandi.nilai; password1.value=Calc.password.nilai; } //输入完毕 function OverInput() { //m_pass.mempass.value=Calc.password.value; var str=Kalc.kata sandi.nilai; password1.value=Calc.password.nilai; //alert(Form.nilai); //theForm.value=m_pass.mempass.value; softkeyboard.style.display="tidak ada"; Calc.kata sandi.nilai=""; kata sandi1.readOnly=1; //password1.value=Calc.password.nilai; } //关闭软键盘 function closekeyboard(theForm) { //eval("var theForm="+theForm+";"); //Form.nilai=""; softkeyboard.style.display="tidak ada"; //Calc.password.value=""; } //显示软键盘 function showkeyboard() { if(event.y+140) softkeyboard.style.top=event.y+document.body.scrollTop+15; if((event.x-250)>0) { softkeyboard.style.left=event.x-250; } else { softkeyboard.style.kiri=0; } softkeyboard.style.display="blok"; kata sandi1.readOnly=1; kata sandi1.blur(); //kata sandi1.nilai=""; } //设置是否大写的值 function setCapsLock() { if (CapsLockValue==0) { CapsLockValue=1 // Calc.showCapsLockValue.value="当前是大写 "; } else { CapsLockValue=0 // Calc.showCapsLockValue.value="当前是小写 "; } } fungsi setCalcborder() { CalcTable.style.border="1px solid #0090FD" } fungsi setHead() { CalcTable.cells[0].style.backgroundColor="#7EDEFF" } function setCalcButtonBg() { untuk(var i =0;i<Calc.elements.length;i++) { if(Calc.elements[i].type=="button"&&Calc.elements[i].bgtype!="1") { // if(i= =10) // peringatan(123); Kalk.elemen[i].style.borderTopWidth= 0 Kalk.elemen[i].style.borderRightWidth= 2 Kalk.elemen[i].style.borderBottomWidth= 2 Kalk.elemen[i].style.borderLeftWidth= 0 Kalk. elemen[i].style.borderTopStyle= "tidak ada"; Calc.elements[i].style.borderRightStyle= "padat"; Calc.elements[i].style.borderBottomStyle= "padat"; Calc.elements[i].style.borderLeftStyle= "tidak ada"; //#46AC17 Kalkal.elemen[i].style.borderTopColor= "#118ACC"; Calc.elements[i].style.borderRightColor= "#118ACC"; Calc.elements[i].style.borderBottomColor= "#118ACC"; Calc.elements[i].style.borderLeftColor= "#118ACC"; //#CBF3B2 Kalkal.elemen[i].style.backgroundColor="#ADDEF8"; var str1=Kalc.elemen[i].nilai; str1=str1.trim(); /* if(str1=="`") { Calc.elements[i].style.fontSize=14; } */ if(str1.length==1) { //Calc.elements[i].style.fontSize=16; //Calc.elements[i].style.fontWeight='bold'; } var thisButtonValue=Kalc.elemen[i].nilai; thisButtonValue=iniButtonValue.trim(); if(thisButtonValue.length==1) { Calc.elements[i].onclick= function () { var thisButtonValue=this.value; thisButtonValue=iniButtonValue.trim(); addValue(iniButtonValue); //alert(234) } Calc.elements[i].ondblclick= function () { var thisButtonValue=this.value; thisButtonValue=iniButtonValue.trim(); addValue(iniButtonValue); //alert(234) } } } } } fungsi initCalc() { setCalcborder(); setKepala(); setCalcButtonBg(); } String.prototype.trim = function() { // 用正则表达式将前后空格 // 用空字符串替代。 kembalikan this.replace(/(^s*)|(s*$)/g, ""); } var capsLockFlag; capsLockFlag=benar; fungsi capsLockText() { if(capsLockFlag)//改成大写 { for(var i=0;i<Calc.elements.length;i++) { var char=Calc.elements[i].value; var char=char.trim() if(Calc.elements[i].type=="button"&&char>="a"&&char<="z"&&char.length==1) { Calc.elements[i]. value=" "+String.fromCharCode(char.charCodeAt(0)-32)+" " } } } else { for(var i=0;i<Calc.elements.length;i++) { var char=Calc.elements [i].nilai; var char=char.trim() if(Calc.elements[i].type=="button"&&char>="A"&&char<="Z"&&char.length==1) { Calc.elements[i]. value=" "+String.fromCharCode(char.charCodeAt(0)+32)+" " } } } capsLockFlag=!capsLockFlag; }</SCRIPT> </head> <body> <INPUT class=textlogin id=LOGPASS onkeydown=Calc.password.value=this.value title=登录密码 onclick="password1=this;showkeyboard();this.readOnly= 1;Calc.password.value=''" readOnly type=password maxLength=12 onchange=Calc.password.value=this.value name=LOGPASS minLength="6"> </body> </html>