手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >美化下拉列表
美化下拉列表
摘要:simulatecomboxcontrol-http://www.never-online.netbody,input{font-famil...

simulate combox control - http://www.never-online.net 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:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/}.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:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/}.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:url({E5066804-650D-4757-9BA4-A92DB8817A18}0.jpg);*/}.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;}

simulate combox control demonstrate

- please select your options -option1option2option3option4option5

- please select your options -1option11option21option31option41option5

- please select your options -2option12option22option32option42option5

- please select your options -3option13option23option33option43option5

Get value

description

//-------------------------------------------------------------// @ 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.//-------------------------------------------------------------

Power By blueDestiny, never-onlinehttp://www.never-online.net

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

【美化下拉列表】相关文章:

JS面向对象(3)之Object类,静态属性,闭包,私有属性, call和apply的使用,继承的三种实现方法

JS+CSS实现美化的下拉列表框效果

下拉菜单的简易制作

JavaScript中Number.MIN_VALUE属性的使用示例

快速判断某个值是否在select中的方法

jQuery获取上传文件的名称的正则表达式

网页中移动的广告效果 鼠标悬停

下拉菜单

点此处秒后立即下载

jQuery实现在列表的首行添加数据

精品推荐
分类导航