Beautification drop-down list

Source: Internet
Author: User

<! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN"> <HTML> <HEAD> <TITLE> simulate combox control-http://www.never-online.net </TITLE> <META NAME = "Generator" CONTENT = "EditPlus"> <meta name = "Author" CONTENT = ""> <meta name = "Keywords" CONTENT = ""> <meta name = "Description "CONTENT =" "> <style> body, input {font-family: verdana; font-size: 9pt;} h1 {font-family: tahoma; font-size: 22pt; text-align: left ;} pre {font-size: 9pt; font-family: verdana; border: 1px solid #006600; width: 400px; padding: 10px; background: # ffffff; color: #006600 ;}. ctlSelect {border: 1px solid #006600; font-family: verdana; height: 20px; color: #006600; background: # ffffff;/* background: background );*/}. selected {background: #006600; color: # ffffff; height: 20px ;}. unselected {height: 20px; color: #006600; line-height: 120%; border-bottom: 1px solid #006600 ;}. ctlSelect1 {border: 1px solid #003399; font-family: verdana; height: 20px; color: #003399; background: # ffffff;/* background: background );*/}. selected1 {background: #003399; color: # ffffff; height: 20px ;}. unselected1 {height: 20px; color: #003399; line-height: 120%; border-bottom: 1px solid #003399 ;}. ctlSelect2 {border: 1px solid #990000; font-family: verdana; height: 20px; color: #990000; background: # ffffff;/* background: background );*/}. selected2 {background: #990000; color: # ffffff; height: 20px ;}. unselected2 {height: 20px; color: #990000; line-height: 120%; border-bottom: 1px solid #990000 ;}. copyright {margin-top: 10px; font-size: 9pt; text-align: center; color: #333; font-weight: bold ;} </style> </HEAD> </P> <BODY> simulate combox control demonstrate </P> <p> <select id = "s0"> <option value = "-please select your options-">-please select your options-</option> <option value = "1"> option1 </option> <option value = "2"> option2 </option> <option value = "3"> option3 </option> <option value = "4"> option4 </option> <option value =" 5 "> option5 </option> </select> </p> </P> <p> <select id =" s1 "> <option value = "- please select your options-">-please select your options-</option> <option value =" 1 "> 1option1 </option> <option value =" 2 "> 1option2 </option> <option value = "3"> 1option3 </option> <option value = "4"> 1option4 </option> <option value = "5"> 1option5 </ option> </select> </p> </P> <p> <select id = "s2"> <option value = "-please select your options -" >-please select your options-</option> <option value = "1"> 2option1 </option> <option value = "2"> 2option2 </option> <option value = "3"> 2option3 </option> <option value = "4"> 2option4 </option> <option value = "5"> 2option5 </option> </select> </p> </P> <p> <select id = "s3"> <option value = "-please select your options-">-please select your options -</option> <option value = "1"> 3option1 </option> <option value = "2"> 3option2 </option> <option value = "3"> 3option3 </option> <option value = "4"> 3option4 </option> <option value = "5"> 3option5 </option> </select> </p> </ p> <button onclick = "alert (. getValue ('s1') + '\ n \ n' + B. getValue ('s2 ')) "class =" CtlSelect "> Get value </button> </P> <P> description <pre> // ----------------------------------------------------- // @ Module: simulate select control, IE only. // @ Debug in: IE 6.0 // @ Script by: blueDestiny, never-online // @ Updated: 2006-3-22 // @ Version: 1.0 apha // @ Email: blueDestiny [at] 126.com// @ Website: http://www.never-online.net // @ Please Hold this item please. /// API // @ simulateSelect (ctlSelIDs) // ctlSelIDs: select control IDs, split by "," // @ simulateSelect. style (ctlStyle [, selStyle] [, unselStyle]) // ctlStyle: main control combox css class name // selStyle: when mouseover or option focus css class name // unselStyle: options blur's css class name // @ simulateSelect. width = (widthPX) // widthPX must be a digit number. //// @ simulateSelect. height = (heightPX) // heightPX must be a digit number. /// -------------- for the next Version ---------- // @ simulateSelect. readOnly = (blnReadOnly) // blnReadOnly must be a boolean type or a number type. // @ simulateSelect. addEvent (w, h) // w: fire handler's event. // h: handler function. // --------------------------------------------------------- </pre> </P> <P> Power By blueDestiny, never-onlinehttp: // www.never-online.net </BODY> </HTML>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Related Article

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.