DOCTYPE HTML PUBLIC "- // w3c // DTD XHTML 1.0 Strict // En" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"
>
<
HTML
XMLNS
= "http://www.w3.org/1999/xhtml"
>
<
HEAD
>
<
Title
>
Runcode
Title
>
<
Meta
HTTP-Equiv
= "Content-Type"
Content
= "text / html; charSet = UTF-8"
/>
<
Meta
Name
= "Author"
Content
= "Sheneyan"
/>
<
Script
Type
= "Text / JavaScript"
>
FUNCTION
s (n) {
VAR
o
=
Document.getlementByid (n);
IF
(
!
o)
Return
;
VAR
t
=
[], TT
=
O.Options;
While
(Tt.Length
>
0
) {T [t.length]
=
TT [
0
] .text; tt.remove
0
} T.sort ();
for
(
VAR
i
=
0
, C; C
=
T [I]; i
) {Tt.add
New
Option (c));}}
Script
>
HEAD
>
<
Body
Online
= "s ('ABC')"
>
<
SELECT
id
= "ABC"
>
<
Option
>
ASUS
Option
>
<
Option
>
.NET
Option
>
<
Option
>
360 security guard
Option
>
<
Option
>
ACDSee
Option
>
<
Option
>
Adobe
Option
>
<
Option
>
Firewall
Option
>
<
Option
>
Alcohol 120%
Option
>
<
Option
>
AMD
Option
>
<
Option
>
Anydvd
Option
>
<
Option
>
Apple
Option
>
<
Option
>
ATI
Option
>
<
Option
>
Autodesk
Option
>
<
Option
>
Logitech
Option
>
<
Option
>
Bitcomet
Option
>
<
Option
>
BitsPirit (Bit Elf)
Option
>
<
Option
>
Blackice
Option
>
<
Option
>
Bluetooth
Option
>
<
Option
>
Cisco
Option
>
<
Option
>
Clonecd
Option
>
<
Option
>
CloneDVD
Option
>
<
Option
>
CS-half-life
Option
>
<
Option
>
Cuteftp
Option
>
<
Option
>
TTPlayer
Option
>
<
Option
>
Trend Technology (PC-CILLIN)
Option
>
<
Option
>
Daemon Tools
Option
>
<
Option
>
Dell
Option
>
<
Option
>
DirectX
Option
>
<
Option
>
DivX
Option
>
<
Option
>
Dreammail
Option
>
<
Option
>
PowerDVD
Option
>
<
Option
>
Easy CD-DA
Option
>
<
Option
>
Rising
Option
>
<
Option
>
Editplus
Option
>
<
Option
>
EMEDitor
Option
>
<
Option
>
EMULE
Option
>
<
Option
>
EMULE PLUS
Option
>
<
Option
>
Feeddemonon
Option
>
<
Option
>
Filezilla
Option
>
<
Option
>
Flashfxp
Option
>
<
Option
>
Flashget
Option
>
<
Option
>
Foobar2000
Option
>
<
Option
>
Foxit PDF Reader
Option
>
<
Option
>
Foxmail
Option
>
<
Option
>
FreeBSD
Option
>
<
Option
>
FTPRUSH
Option
>
<
Option
>
Gmail
Option
>
<
Option
>
Google Talk
Option
>
<
Option
>
Option
>
<
Option
>
Googletoolbar
Option
>
<
Option
>
Gosurf
Option
>
<
Option
>
GreenBrowser
Option
>
<
Option
>
HP
Option
>
<
Option
>
HypersNAP-DX
Option
>
<
Option
>
IBM
Option
>
<
Option
>
ICQ
Option
>
<
Option
>
IMAC G5
Option
>
<
Option
>
Intel
Option
>
<
Option
>
Internet Explorer
Option
>
<
Option
>
IPB
Option
>
<
Option
>
iTune
Option
>
<
Option
>
Tencent
Option
>
<
Option
>
Microsoft
Option
>
<
Option
>
Markarmor (iParmor)
Option
>
<
Option
>
Tiannun firewall
Option
>
<
Option
>
Trojan bundle
Option
>
<
Option
>
Fengyun firewall personal version
Option
>
<
Option
>
Kaspersky
Option
>
<
Option
>
Maxthon proud
Option
>
<
Option
>
Media Player Classic
Option
>
<
Option
>
Windows Media Player
Option
>
<
Option
>
Windows Live Messenger
Option
>
<
Option
>
Microsoft AntiSpyware
Option
>
<
Option
>
Microsoft Office
Option
>
<
Option
>
Mozilla Firefox
Option
>
<
Option
>
Mozilla Thunderbird
Option
>
<
Option
>
Mysql
Option
>
<
Option
>
Nero
Option
>
<
Option
>
Netcaptor
Option
>
<
Option
>
NetTransport
Option
>
<
Option
>
NVIDIA NFORCE
Option
>
<
Option
>
Fish fish table show
Option
>
<
Option
>
Opera
Option
>
<
Option
>
PHP
Option
>
<
Option
>
QQ virus killing tool
Option
>
<
Option
>
Quicktime
Option
>
<
Option
>
RealPlayer
Option
>
<
Option
>
Skype
Option
>
<
Option
>
SQL Server 2005
Option
>
<
Option
>
Stylexp
Option
>
<
Option
>
TheWorld Browser
Option
>
<
Option
>
TuneUp Utilities
Option
>
<
Option
>
UltraEdit
Option
>
<
Option
>
Ultraiso
Option
>
<
Option
>
Winamp
Option
>
<
Option
>
Windows OneCare
Option
>
<
Option
>
Windows Optimization King
Option
>
<
Option
>
Windows Optimization Master
Option
>
<
Option
>
Windvd
Option
>
<
Option
>
WinRAR
Option
>
<
Option
>
Winzip
Option
>
<
Option
>
XnView
Option
>
<
Option
>
ZoneAlarm
Option
>
<
Option
>
Zoom Player
Option
>
<
Option
>
Super rabbit
Option
>
<
Option
>
Wind thunder
Option
>
<
Option
>
Rapid starts hurryrun
Option
>
SELECT
>
Body
>
HTML
>
There are some following summary:
1. The SELECT control itself supports the alphabet index. For example, when the SELECT control is in the focus, press B. The corresponding option in the Option will appear.
2,
VAR
t
=
[], TT
=
O.Options;
While
(Tt.Length
>
0
) {T [t.length]
=
TT [
0
] .text; tt.remove
0
}
This code is better, but it doesn't understand it.
The role of this code is that an assignment SELECT space list is assigned to another array.
First define the array t = [] (
This kind of definition is still the first time, I am ignorant); used to store the original SELECT list content.
TT = O.Options; read the SELECT space content, stored in the TT array as an array.
t [t.length] =
TT [
0