手册网
参考手册
在线工具
在线文档
在线代码
素材大全
推荐
导航
在线手册 »
WEB优质项目
开放平台
工具软件
CSS3.0中文手册
jQuery 1.8 参考手册
HTML4参考手册
HTML基础手册
HTML快速参考手册
MySQL5.1中文参考手册
JavaScript参考手册
Delphi6函数大全
Delphi7参考手册
SQL基础教程
jQuery 1.10 中文参考手册
CSS2 参考手册
ASP参考手册
C/C++中文手册
django中文教程
DOS命令大全
jQueryEasyUI1.3中文手册
Hibernate3.2中文参考文档
Html4.01参考手册
JAVA学习笔记
JSP中文教程
Linux参考手册
Lua5参考手册
Oracle参考手册
Phpcmsv9二次开发手册
phpwind二次开发手册
PostgreSQL参考手册
Python2中文手册
Spring2.5中文参考手册
XML参考手册
正则表达式参考手册
jQuery 1.11.3 中文参考手册
ThinkPHP3.2.2完全开发手册
ThinkPHP3.2.3完全开发手册
yii1和php5开发
ThinkPHP5.0完全开发手册
jQuery 3.1 参考手册
Underscore1.8.3 参考手册
Swift3 中文手册
Sass 3.4.21 中文手册
Backbone.js 1.1.2 API中文文档
JSDoc 参考手册
Webpack 2.2 中文文档
JavaScript 全栈教程
Nginx 中文官方手册
CSS4.2.4 参考手册
ThinkPHP5.1完全开发手册.CHM
HTML/CSS »
Html
Bootstrap
HTML5
CSS
CSS3
Foundation
JavaScript »
JavaScript
jQuery
HTML DOM
AngularJS
jQuery UI
jQuery EasyUI
Node.js
JSON
Highcharts
AJAX
React
jQuery插件大全
AlloyUI
Vue.js v2.0 中文
Vuex
vue-router
Underscore.js
Zepto.js
程序设计 »
PHP
Java
JSP
Python
Python3
Django
Linux
Ruby
C
C++
Servlet
Lua
Go
设计模式
正则表达式
ASP
AppML
VBScript
Scala
数据库 »
SQL
MySQL
SQLite
MongoDB
Redis
Memcached
移动端 »
jQuery Mobile
Android
ionic
IOS
Sencha Touch
Clouda+
efe
Frozen UI
Amaze UI
CardKit
App.js
Mobile Angular UI
Kendo UI
PhoneGap
Framework7
Junior
Jingle
mui
SUI Mobile
ReactNative
Weex
APICloud
Wex5
Ratchet
HTML5plus
Plane UI
Swift 教程
XML 教程 »
XML
DTD
XML DOM
XSLT
XPath
XQuery
XLink
XML Schema
XSLFO
SVG
ASP.NET »
ASP.NET
C#
开发工具 »
Eclipse
Git
Firebug
SVN 教程
Chrome 控制台
开源项目 »
Yii中文参考手册
Yii1开发教程
Yii2开发教程
ThinkPHP3.1开发教程
ThinkPHP3.2.3开发教程
地图开发
Wordpress
Laravel中文文档
Web Service »
Web Service 教程
WSDL 教程
SOAP 教程
RDF 教程
RSS 教程
转码工具 »
HTML/JavaScript格式化
CSS 格式化/压缩
JS格式化/加密/压缩
Native互换Unicode大全
日期格式化工具
Markdown转HTML
CSS 整理压缩
JSON 在线解析
短网址生成
代码处理 »
进制互换大全
16进制互换RGB
简体转繁体
汉字转拼音
小写转大写
大写转小写
加密和解密
繁体转简体
实用工具 »
Bootstrap图标定制
CSS 颜色选择器
字数统计
正则表达式测试
htpasswd 生成器
全世界数据库
IP归属地查询
实用计算器
生成二维码
ICO图标制作
CSS3 气泡对话框
CSS & JS Hack 大全
CSS3 背景渐变色生成器
CSS3 阴影边框生成器
CSS3 动画工具
Web 常用字体演示
CSS3 选择器演示
CSS 中文字体 Unicode 编码表
CSS3 GitHub Buttons
CSS Webkit 自定义滚动条样式
在线自动分词
ionic图标
阿里巴巴矢量图标库
IcoMoon 图标库
CSS3 代码生成
CSS3 Flexbox 演示
便民工具 »
快递查询
安全期计算器
周公解梦
笑话大全
常用对照表 »
HTTP Content-type 详细对照表
HTML特殊转义字符对照表
ASCII对照表
HTTP状态码详解
运算符优先级
TCP/UDP常见端口参考
经典小游戏 »
像素小鸟
爱消除
飞更高
俄罗斯方块
台球
贪吃蛇
拼图魔方
坦克大战
解救公主
中国象棋
压扁小鸟
打飞字
Flappy小鸟
登陆
小提示
Ctrl+/
代码提示(需
IE11
)
F11
键放大
ESC
键缩小
PgUp
上页
PgDn
下页
推荐代码
1
jQuery owlcarousel 旋转木马
2
jQuery仿蜜淘在线客服
3
jQuery-插件-图片左右无缝滚动
新7款HTML5/CSS3特效之浏览器的小泥块
新7款HTML5/CSS3特效之图片扇形展开
底部工具条,支持动画关闭,Li列表滚动,jQuery版
jquery相关的动画操作小例子
超酷jQuery菜单代码
CSS3圆角+投影效果带背景色的表格
鼠标移到图片上,图片开始疯狂抖动
8种超炫的html5 Loading加载图标动画
点击后文字会炸开的HTML5特效 图片爆炸效果
流动的网页背景代码,是不是很漂亮?
jQuery鼠标悬浮遮罩显示分享按钮
CSS3鼠标悬停360度旋转效果
运行代码
缩小
引入JS
jQuery
»
3.0.0
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.1
1.9.0
1.8.3
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7
1.6.4
1.6.2
1.6.1
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
prototype
»
1.7.3
1.7.2
1.7.1.0
1.7.0.0
Angular
»
2.0.0-beta.0
2.0.0-alpha.55
1.5.0-rc.0
1.4.8
1.4.0
1.3.20
1.2.29
1.1.5
1.0.8
Underscore
»
1.8.3
1.7.0
1.6.0
1.5.2
1.4.4
1.3.3
1.2.4
1.1.7
Dojo
»
1.10.4
1.9.7
1.8.10
1.7.8
1.6.3
1.5.4
1.4.6
1.3.3
Mootools
»
core1.6.0
core-compat1.6.0
core1.5.2
core-compat1.5.2
core-full-compat-yc1.4.5
core-full-compat1.4.5
core-full-nocompat-yc1.4.5
core-full-nocompat1.4.5
Respond
»
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
html5shiv
»
3.7.3
3.7.2
3.7.1
3.7.0
3.7
3.6.2
3.6.1
3.6
引入框架
jQueryMobile
»
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
jQueryUI
»
1.11.4
1.11.3
1.11.2
1.11.1
1.11.0
1.10.4
1.10.3
1.10.2
Bootstrap
»
3.3.6
3.3.5
3.3.0
3.2.0
2.3.2
CDN库
CDN公共库
»
BootCDN开源项目CDN服务
引入图片
代码换肤
选择换肤
»
汉王
HTML代码
复制
格式化
注释
注释
清空
放大
<title>一个基于JS的5级联动Select下拉选择框</title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var state = new Array(50); var capital = new Array(50); var date = new Array(50); var flower = new Array(50); var bird = new Array(50); state[0] = "Alabama"; capital[0] = "Montgomery"; date[0] = "December 14, 1819"; flower[0] = "Camellia"; bird[0] = "Yellowhammer"; state[1] = "Alaska"; capital[1] = "Juneau"; date[1] = "January 3, 1959"; flower[1] = "Forget-me-not"; bird[1] = "Willow Ptarmigan"; state[2] = "Arizona"; capital[2] = "Phoenix"; date[2] = "February 14, 1912"; flower[2] = "Suguaro Cactus Blossom"; bird[2] = "Cactus Wren"; state[3] = "Arkansas"; capital[3] = "Little Rock"; date[3] = "June 15, 1836"; flower[3] = "Apple Blossom"; bird[3] = "Mockingbird"; state[4] = "California"; capital[4] = "Sacremento"; date[4] = "September 9, 1850"; flower[4] = "Golden Poppy"; bird[4] = "California Valley Quail"; state[5] = "Colorado"; capital[5] = "Denver"; date[5] = "August 1, 1876"; flower[5] = "Mountain Columbine"; bird[5] = "Lark Bunting"; state[6] = "Connecticut"; capital[6] = "Hartford"; date[6] = "January 9, 1788"; flower[6] = "Mountain Laurel"; bird[6] = "Robin"; state[7] = "Florida"; capital[7] = "Tallahassee"; date[7] = "March 3, 1845"; flower[7] = "Orange Blossom"; bird[7] = "Mockingbird"; state[8] = "Georgia"; capital[8] = "Atlanta"; date[8] = "January 2, 1788"; flower[8] = "Cherokee Rose"; bird[8] = "Brown Thrasher"; state[9] = "Hawaii"; capital[9] = "Honolulu"; date[9] = "August 21, 1959"; flower[9] = "Red Hibiscus"; bird[9] = "Nene (Hawaiian Goose)"; state[10] = "Idaho"; capital[10] = "Boise"; date[10] = "July 3, 1890"; flower[10] = "Syringa"; bird[10] = "Mountain Bluebird"; state[11] = "Illinois"; capital[11] = "Springfield"; date[11] = "December 3, 1818"; flower[11] = "Violet"; bird[11] = "Cardinal"; state[12] = "Indiana"; capital[12] = "Indianapolis"; date[12] = "December 11, 1816"; flower[12] = "Peony"; bird[12] = "Cardinal"; state[13] = "Iowa"; capital[13] = "Des Moines"; date[13] = "December 28, 1846"; flower[13] = "Wild Rose"; bird[13] = "Eastern Goldfinch"; state[14] = "Kansas"; capital[14] = "Topeka"; date[14] = "January 29, 1861"; flower[14] = "Sunflower"; bird[14] = "Western Meadowlark"; state[15] = "Kentucky"; capital[15] = "Frankfort"; date[15] = "June 1, 1792"; flower[15] = "Goldenrod"; bird[15] = "Cardinal"; state[16] = "Louisiana"; capital[16] = "Baton Rouge"; date[16] = "April 30, 1812"; flower[16] = "Magnolia"; bird[16] = "Eastern Brown Pelican"; state[17] = "Maine"; capital[17] = "Augusta"; date[17] = "March 15, 1820"; flower[17] = "Pine Cone & Tassel"; bird[17] = "Chickadee"; state[18] = "Tennessee"; capital[18] = "Nashville"; date[18] = "June 1, 1796"; flower[18] = "Iris"; bird[18] = "Mockingbird"; state[19] = "Maryland"; capital[19] = "Annapolis"; date[19] = "April 28, 1788"; flower[19] = "Black-eyed Susan"; bird[19] = "Baltimore Oriole"; state[20] = "Delaware"; capital[20] = "Dover"; date[20] = "December 7, 1787"; flower[20] = "Peach Blossom"; bird[20] = "Blue Hen Chicken"; state[21] = "Massachusetts"; capital[21] = "Boston"; date[21] = "February 6, 1788"; flower[21] = "Mayflower"; bird[21] = "Chickadee"; state[22] = "Rhode Island"; capital[22] = "Providence"; date[22] = "May 29, 1790"; flower[22] = "Violet"; bird[22] = "Rhode Island Red"; state[23] = "Minnesota"; capital[23] = "St. Paul"; date[23] = "May 11, 1858"; flower[23] = "Lady-slipper"; bird[23] = "Loon"; state[24] = "Mississippi"; capital[24] = "Jackson"; date[24] = "December 10, 1817"; flower[24] = "Magnolia"; bird[24] = "Mockingbird"; state[25] = "Missouri"; capital[25] = "Jefferson City"; date[25] = "August 10, 1821"; flower[25] = "Hawthorn"; bird[25] = "Bluebird"; state[26] = "Michigan"; capital[26] = "Lansing"; date[26] = "January 26, 1837"; flower[26] = "Apple Blossom"; bird[26] = "Robin"; state[27] = "Montana"; capital[27] = "Helena"; date[27] = "November 8, 1889"; flower[27] = "Bitterroot"; bird[27] = "Western Meadowlark"; state[28] = "Nebraska"; capital[28] = "Lincoln"; date[28] = "March 1, 1867"; flower[28] = "Goldenrod"; bird[28] = "Western Meadowlark"; state[29] = "Nevada"; capital[29] = "Carson City"; date[29] = "October 31, 1864"; flower[29] = "Sagebrush"; bird[29] = "Mountain Bluebird"; state[30] = "New Hampshire"; capital[30] = "Concord"; date[30] = "June 21, 1788"; flower[30] = "Purple Lilac"; bird[30] = "Purple Finch"; state[31] = "Vermont"; capital[31] = "Montpelier"; date[31] = "March 4, 1791"; flower[31] = "Red Clover"; bird[31] = "Hermit Thrush"; state[32] = "New Jersey"; capital[32] = "Trenton"; date[32] = "December 18, 1787"; flower[32] = "Violet"; bird[32] = "Eastern Goldfinch"; state[33] = "New Mexico"; capital[33] = "Santa Fe"; date[33] = "January 6, 1912"; flower[33] = "Yucca"; bird[33] = "Road Runner"; state[34] = "New York"; capital[34] = "Albany"; date[34] = "July 26, 1788"; flower[34] = "Rose"; bird[34] = "Bluebird"; state[35] = "North Carolina"; capital[35] = "Raleigh"; date[35] = "November 21, 1789"; flower[35] = "Flowering Dogwood"; bird[35] = "Cardinal"; state[36] = "Wyoming"; capital[36] = "Cheyenne"; date[36] = "July 10, 1890"; flower[36] = "Indian Paintbrush"; bird[36] = "Meadowlark"; state[37] = "North Dakota"; capital[37] = "Bismarck"; date[37] = "November 2, 1889"; flower[37] = "Prairie Rose"; bird[37] = "Meadowlark"; state[38] = "Ohio"; capital[38] = "Columbus"; date[38] = "March 1, 1803"; flower[38] = "Scarlet Carnation"; bird[38] = "Cardinal"; state[39] = "Oklahoma"; capital[39] = "Oklahoma City"; date[39] = "November 16, 1907"; flower[39] = "Mistletoe"; bird[39] = "Scissor-tailed Flycatcher"; state[40] = "Oregon"; capital[40] = "Salem"; date[40] = "February 14, 1859"; flower[40] = "Oregon Grape"; bird[40] = "Western Meadowlark" state[41] = "Pennsylvania"; capital[41] = "Harrisburg"; date[41] = "December 12, 1787"; flower[41] = "Mountain Laurel"; bird[41] = "Ruffed Grouse"; state[42] = "South Carolina"; capital[42] = "Columbia"; date[42] = "May 23, 1788"; flower[42] = "Yellow Jessamine"; bird[42] = "Carolina Wren"; state[43] = "South Dakota"; capital[43] = "Pierre"; date[43] = "November 2, 1889"; flower[43] = "Pasqueflower"; bird[43] = "Ring-necked Pheasant"; state[44] = "Texas"; capital[44] = "Austin"; date[44] = "December 29, 1845"; flower[44] = "Bluebonnet"; bird[44] = "Mockingbird"; state[45] = "Utah"; capital[45] = "Salt Lake City"; date[45] = "January 4, 1896"; flower[45] = "Sego Lily"; bird[45] = "Sea Gull"; state[46] = "Virginia"; capital[46] = "Richmond"; date[46] = "June 26, 1788"; flower[46] = "Dogwood"; bird[46] = "Cardinal"; state[47] = "Washington"; capital[47] = "Olympia"; date[47] = "November 11, 1889"; flower[47] = "Coast Rhododendron"; bird[47] = "Willow Goldfinch"; state[48] = "West Virginia"; capital[48] = "Charleston"; date[48] = "June 20, 1863"; flower[48] = "Rhododendron"; bird[48] = "Cardinal"; state[49] = "Wisconsin"; capital[49] = "Madison"; date[49] = "May 29, 1848"; flower[49] = "Wood Violet"; bird[49] = "Robin"; function showInfo() { var page = document.triviaform; var choice = page.statesList; for (var i = 0; i <= state.length; i++) { if (choice.options[choice.selectedIndex].value == state[i]) { page.capital.value = capital[i]; page.date.value = date[i]; page.flower.value = flower[i]; page.bird.value = bird[i]; break; } else { page.capital.value = ""; page.date.value = ""; page.flower.value = ""; page.bird.value = ""; } } } // End --> </script> <form name=triviaform> <table border=1> <tr><td align=center> <p><font size=6><em><strong><u><font size="2">这个实例只是提供给你一种思路而已</font></u></strong></em></font> <p>(故未做汉化)<br> <font size=3></font> <p>Select a state: <select name=statesList size=1 onChange="showInfo()"> <option value="">Select ----> <option value="Alabama">Alabama <option value="Alaska">Alaska <option value="Arizona">Arizona <option value="Arkansas">Arkansas <option value="California">California <option value="Colorado">Colorado <option value="Connecticut">Connecticut <option value="Delaware">Delaware <option value="Florida">Florida <option value="Georgia">Georgia <option value="Hawaii">Hawaii <option value="Idaho">Idaho <option value="Illinois">Illinois <option value="Indiana">Indiana <option value="Iowa">Iowa <option value="Kansas">Kansas <option value="Kentucky">Kentucky <option value="Louisiana">Louisiana <option value="Maine">Maine <option value="Maryland">Maryland <option value="Massachusetts">Massachusetts <option value="Michigan">Michigan <option value="Minnesota">Minnesota <option value="Mississippi">Mississippi <option value="Missouri">Missouri <option value="Montana">Montana <option value="Nebraska">Nebraska <option value="Nevada">Nevada <option value="New Hampshire">New Hampshire <option value="New Jersey">New Jersey <option value="New Mexico">New Mexico <option value="New York">New York <option value="North Carolina">North Carolina <option value="North Dakota">North Dakota <option value="Ohio">Ohio <option value="Oklahoma">Oklahoma <option value="Oregon">Oregon <option value="Pennsylvania">Pennsylvania <option value="Rhode Island">Rhode Island <option value="South Carolina">South Carolina <option value="South Dakota">South Dakota <option value="Tennessee">Tennessee <option value="Texas">Texas <option value="Utah">Utah <option value="Vermont">Vermont <option value="Virginia">Virginia <option value="Washington">Washington <option value="West Virginia">West Virginia <option value="Wisconsin">Wisconsin <option value="Wyoming">Wyoming </select> <p>Capital: <input type=text size=25 name=capital> <p>Admitted On: <input type=text size=20 name=date> <p>State Flower: <input type=text size=20 name=flower> <p>State Bird: <input type=text size=23 name=bird> </td></tr> </table> </form>
CSS代码
复制
格式化
注释
注释
颜色
清空
放大
JS代码
复制
格式化
注释
注释
清空
放大
运行代码
简介
请输入代码名称!
名称
基于JS的5级联动Select下拉选择框(级联菜单)
分类
表单按钮
描述
一个基于JS的5级联动Select下拉选择框,这里仅是一个示例,没有做汉化,当初从老外网站扒下时花了很多时间,当然我们平时用时候可能不需要这么多级,意在介绍一种编写方法和思路,希望大家喜欢。
收藏