Function AutoComplete (OTEXTBOX, OEVENT, Arrvalues) {switch (OEvent.Keycode) {Case 38: // á key case 40: // â key case 37: // ß key case 39: // à key case 33: // Page Up Key Case 34: // Page Down Case 36: // End Key Case 13: // Enter Case 9: // Tab Key Case 27: // ESC Key Case 16: / / Shift key case 17: // Ctrl key case 18: // alt key case 20: // Caps lock key case 8: // 退 格 格 Case 46: // delete key Return True; Break; ...}}
Posted @
2004-12-06 18:11 Longlong Read (17) |
Comments (0) |
edit
Collect
Different paragraphs with ENTER to implement TAB function code
Different paragraphs with ENTER to implement TAB function code
2004-11-21 23:12:01 (Article Category: JavaScript)
1 ------------
Function document. OnKeyPress ()
{
VAR ESRC = WINDOW.EVENT.SRCELEMENT;
IF (esrc.tagname == "infut" && esrc.type == "text" && window.event.keycode == 13)
{
VAR INPUTS = Document. All.tags ("input");
For (var i = 0; I { IF (INPUTS [i] .type == "text" && Inputs [i] .sourceIndex> esrc.sourceIndex) Break; } IF (i INPUTS [I] .focus (); } } script> 2 ------------------------------- <% SSQL = "SELECT * from TableName" SET RS = Server.createObject ("AdoDb.Recordset") RS.Open SSQL, CONN, 3, 3 %> Function Handlekey () { fernt; IF (Window.Event.Keycode == 13) { IF (window.event.srcelement.index <> ") { next = (Parseint (window.event.srcelement.index) 1) ""; Document. All (next) .focus (); } } } script>
<%
DIM I
i = 0
While Not Rs.eof
%>
<%
rs.movenext
wend
%>
form>
body>