One of the practical JavaScript functions (automatically convert the content in the input text box to uppercase characters)
2001-12-24 00:00:00
/ / =========================================================================================================================================================================================== ================ // This function is used to automatically convert the content in the input text box to uppercase characters / / =============== ============================================================================================================================================================================================================= Function jhshtouppercase () {i ((Window.Event.keycode> = 97) && (Window.Event.KeyCode <= 122)) {WINDOW.Event.KeyCode = WINDOW.EVENT.KEYCODE - 32;}}
[
hit
============================================================================================================================================================================================================= =====
Practical JavaScript function 2 (automatically convert content in the input text box into small-write characters)
2001-12-24 15:40:34
/ / =========================================================================================================================================================================================== ================ // This function is used to automatically convert the content in the input text box into lowercase characters / / =============== ============================================================================================================================================================================================================= Function jhshtolowercase () {if ((WINDOW.Event.KeyCode> = 65) && (Window.Event.KeyCode <= 90)) {WINDOW.Event.KeyCode = Window.Event.KeyCode 32;}} Practical JavaScript function Four (used to cut the SSTRING string to cut out)
2001-12-24 15:42:01
/ / -------------------------------------------------------------------------------------------- --------------------------------- // This function is used to take the SSTRING string before / / -------------------------------------------------------------------------------------------- ---------------------------------- Function Jhshltrim (sstring) {var sstr, i, iStart, SResult = ""; sstr = sstring.split (""); iStart = -1; for (i = 0; i Practical JavaScript function 3 (restricted text input box can only enter digital "0" to "9") 2001-12-24 15:41:25