Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006


How will the definition of a static variable js

If that

There is another problem, how to determine which cursor in the text box, I had a successful
[html]
"Script language=" Javascript ""

KeyDown function ()
{
InputLength = document.keyform.length;
For (i=0;i<inputLength;i++)
  {
If (document.keyform.elements[i].focus ())
{alert (I) ;}
  }
}
Document.onkeydown=keyDown;
"/script>
"Form name=keyform>
"Input type=" government "name="_ftn1"" test1 "value=111>
"Input type=" government "name="_ftn1"" test2 "value=222>
"Input type=" government "name="_ftn1"" test3 "value=333>
"Input type=" government "name="_ftn1"" test4 "value=444>
"/form>
[/html]

[html]
"Script language=" Javascript ""

KeyDown function ()
{
Alert ( "Focus" +document.activeElement.name)

}
Document.onkeydown=keyDown;
"/script>
"Form name=keyform>
"Input type=" government "name="_ftn1"" test1 "value=111>
"Input type=" government "name="_ftn1"" test2 "value=222>
"Input type=" government "name="_ftn1"" test3 "value=333>
"Input type=" government "name="_ftn1"" test4 "value=444>
"/form>




[/html]





 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com