Super powerful select development history page 1/2

Source: Internet
Author: User

Author: marvellous
This article aims to give you a comprehensive understanding of select and analog select, so that this technology can play a higher level.
The original select is indeed a simple drop-down list:
<Style> select, option {background-color: lime} </style> <select> <center> <option> 1 <option> 2 <option> not the same </select> <style> select, option {background-color: lime; font-family: 文; color: red ;}</style> <select name = "select" onfocus = "this. options [0]. innerText = 'shanghai' "> <option value =" Shanghai "> Shanghai </option> <option value =" Beijing "> Beijing </option> <option value =" Hong Kong"> Hong Kong </option> </select>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
After a long day, people have high requirements for select, and they need to repair the edge frame:
<Center> <ptml> <pead> <title> Untitled Document </title> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "> <style>. table1 {background-color: white; FONT-FAMILY: Courier New, Courier; font-size: 12px }. td_out {FONT-FAMILY: Courier New, Courier; font-size: 12px; color: #000000; height: 15px; border: 1 solid # ffffff ;}. td_over {FONT-FAMILY: Courier New, Courier; font-size: 12px; cursor: default; background-color: # 3366cc; border: 1 solid #000000; color: # ffffff; height: 15px }. slv {vertical-align: bottom; FONT-FAMILY: Courier New, Courier; font-size: 12px; border-left-width: 0; border-top-width: 0; border-bottom-width: 0; border-right: 0 solid #000000; vertical-align: middle; height: 18px; color: #000000 ;}. down {position: relative; left:-2px; font-size: 11px; vertical-align: middle; width: 16; height: 16; color: #2050b0; background-color: # D0DFF7; border: 1 solid # 9fA3Ce; writing-mode: tb-rl; font-weight: bold ;}. seldiv {position: absolute; z-index: 1000; overflow-x: hidden; border-left: 1 solid #000000; border-bottom: 1 solid #000000; border-right: 1 solid #000000; SCROLLBAR-FACE-COLOR: # d0dff7; SCROLLBAR-HIGHLIGHT-COLOR: # d0dff7; SCROLLBAR-SHADOW-COLOR: # FFFFFF; SCROLLBAR-3DLIGHT-COLOR: # FFFFFF; SCROLLBAR-ARROW-COLOR: # ffffff; SCROLLBAR-TRACK-COLOR: # ffffff: # d0dff7 ;}</style> </pead> <body>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
You need to add some links to the menu:
<STYLE> body {cursor: url (http://vip.6to23.com/candylau/image/xiucursor.cur)} </STYLE> <style>. select {border: 0 inset buttonface; width: 100; font: icon; cursor: default ;}. selected {border: 0 inset buttonface; background: window; padding: 0; font: icon ;}. selectTable {height: 100%; width: 100%; border: 2 inset buttonhighlight; background: buttonface ;}. option {font: icon; padding: 1; padding-left: 3; padding-right: 3; width: 100% ;}. dropDown {position: absolute; visibility: hidden; width: 100%; border: 1 solid windowtext; padding: 0; background: window ;}. select. button {width: 16px; height: 5; font-family: webdings; padding: 0; font-size: 11px; border: 2 outset buttonhighlight ;} </style> <select onchange = "if (this. options [this. selectedIndex]. value! = '') {Location = this. options [this. selectedIndex]. value ;} "> <option value =" http://www.163.com "> Netease </option> <option value =" http://www.google.com "> google </option> <option value =" http://wwwsohu.com "> Sohu </option> </select>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
<SELECT onchange = "window. open (this. value, '','') "> <OPTION> quick product navigation </OPTION> <OPTION style =" BACKGROUND: #999; COLOR: # fff "value = 03 product/pro2.jsp? CateID = 1 & CateId = 1 selected> multimedia products </OPTION> <OPTION value = http://www.tcl.com/03product/ TV /chanpin-hid.htm> DLP digital optical display back projection </OPTION> <OPTION value = http://www.tclking.com> LCD TV </ OPTION> <OPTION value = http://www.tcl.com/03product/ TV /chanpin-hid.htm> Digital HD rear projection </OPTION> <OPTION value = http://www.tcl.com/03product/ TV /chanpin-pdp.htm> PDP plasma TV </OPTION> <OPTION value = http://www.tcl.com/03product/ TV /chanpin-crt.htm> Crt hd color TV </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 1 & CateId = 61> hotel TV </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 1 & CateId = 141> lehua TV </OPTION> <OPTION value = http://av.tcl.com/03products/List.asp? ListID = 246> video host </OPTION> <OPTION value = http://www.tcl.com/03product/mon/index.html> Monitor </OPTION> <OPTION value = http://www.tcl.com/03product/vw/index.html> TV wall </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff "value = 03 product/pro2.jsp? CateID = 11 & CateId = 1> communication products </OPTION> <OPTION value = http://www.tclmobile.com.cn/mobile/product.jsp? Catid = 77> mobile phone </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 11 & CateId = 18> telephone </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 11 & CateId = 19> network device </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 11 & CateId = 293> broadband products </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff" value = 03 product/pro2.jsp? CateID = 12 & CateId = 1> digital products </OPTION> <OPTION value = http://www.tcl-digital.com/product/family.asp> Home computers </OPTION> <OPTION value = http://www.tcl-digital.com/product/business.asp> Business computers </OPTION> <OPTION value = http://www.tcl-digital.com/product/notebook.asp> laptop </OPTION> <OPTION value = http://www.tcl-digital.com/product/digital.asp> DV products </OPTION> <OPTION value = http://www.tcl-digital.com/product/digital.asp? Cateid = 82> MP3 player </OPTION> <OPTION value = http://www.go-video.com.cn/html/productshow.asp? Sortid = 25 & sortid2 = 7> MP4 Player </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff" value = 03 product/pro2.jsp? CateID = 13 & CateId = 1> Home Appliance Products </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 13 & CateId = 25> refrigerator </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 13 & CateId = 26> washing machine </OPTION> <OPTION value = http://www.tclac.com/tclaccn/product/product.aspx> air conditioning </OPTION> <OPTION value = http://www.tclac.com/tclaccn/product/productlist6.aspx> central air conditioning </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist1.aspx> electric cooker </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist2.aspx> Induction Cooker </OPTION> <OPTION value = http://www.nanhaitcl.com/product/p Roductlist3.aspx> fan </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist4.aspx> water dispenser </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist5.aspx> heater </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist6.aspx> water purifier </OPTION> <OPTION value = http://www.nanhaitcl.com/product/productlist7.aspx> grill </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff "value = 0 3 product/pro2.jsp? CateID = 14 & CateId = 1> electrical products </OPTION> <OPTION value = http://www.tcl-elc.com/main/gb/product/index.jsp> switch socket </OPTION> <OPTION value = http://www.tcl-lighting.com/products.asp> lighting products </OPTION> <OPTION value = http://www.tclelec.com/product/product_ljfl.htm> industrial appliances </OPTION> <OPTION value = 03 product/pro2.jsp? CateID = 14 & CateId = 161> smart buildings </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff" value = 03 product/pro2.jsp? CateID = 15 & CateId = 1> product </OPTION> <OPTION value = http://www.asic.com.cn/cn/product.htm> integrated circuit </OPTION> <OPTION value = http://www.tclrf.com/products/index.html> high frequency header </OPTION> <OPTION value = http://www.tclbattery.com/china/product01.asp> battery </OPTION> <OPTION style = "BACKGROUND: #999; COLOR: # fff "value = 03 product/pro2.jsp? CateID = 16 & CateId = 1> cultural products </OPTION> <OPTION value = http://www.meikamusic.com/> card audio and video </OPTION> <OPTION value = http://www.tcl-disc.com/tp.htm> TCL disc </OPTION> </SELECT>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Later, the text content can be added, deleted, edited, or modified, that is, it can be edited:
<Html> <pead> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "> <title> EditSelect </title> <style>. selecttext {border: 0px height: 16; font-family: arial; font-size: 12px ;}. selectbutton {font-family: webdings; font-size: 10px; height: 19; width: 16; border: 1px solid # 83A5EB; line-height: 0px; padding-bottom: 3px; background-color: # D1E0FD }. selecttable {font-family: arial; font-size: 12px; cursor: default ;}. selectcontent {position: absolute; top: 0; left: 0; overflow: auto; border: 1px solid #000000 }. selectdiv {position: absolute; width: 100; overflow: hidden ;}. select {border-collapse: collapse; border: 1px solid #7F9DB9} </style> </pead> <body bgcolor = "# 83A5EB" background = "http://moodboy.com/puterjam/blog/attachments/month_0408/oldr_cs1.JPG"> <table border = "0" width = "100%"> <tr> <td width = "151" align = "center"> editable Select </td> </tr> <td width = "151" align = "center"> the length can be changed to read-only </td> </tr> <td width = "151" align = "center"> system Select </td> </tr> <td width = "151" align = "right"> </td> <select> <option> Select </option> </select> </td> </tr> </table> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.