2.软文推荐
3.软文推荐
目录: 1、网页制作问题如何把各省市县连接起来 2、电脑上怎么打开不了普通话报名网页 3、六盘水有哪些职校 4、用Adobe Dreamweaver 编写网页,写省份的时候怎么能让写完之后点哪个省份就出来哪个市 5、请问如何实现:在网页中选择了国家,下面自动出现该国家的省名供选择 6、网页设计关于下拉列表的代码 网页制作问题如何把各省市县连接起来定义子类。。。XX省下的市全部在该分项内
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
title关联选择/title
/head
body onload="SelectCity();selectarea();"
p/p
form name="form1"
select name="sel" onchange="selectarea();"
option selected value=""-选择地区-/option
option value="00"华北地区/option
option value="01"华东地区/option
option value="02"华南地区/option
option value="03"华西北地区/option
option value="04"华东南地区/option
option value="05"华东北地区/option
option value="06"华西南地区/option
option value="07"华中地区/option
/select
select onchange="SelectCity();" name="selarea"
option selected value=-省/直辖市-/option
/select select name="city"
option value selected-地区/城市-/option
/select/form
script language="javascript"
var thecity = new Array("0000北京市","0100天津市","0200 秦皇岛市","0201沧州市","0202廊坊市","0203衡水市","0204石家庄市",
"0205邯郸市","0206邢台市","0207保定市","0208张家口市","0209承德市","0210唐山市","0300太原市","0301大同市",
"0302阳泉市","0303长治市","0304晋城市","0305朔州市","0306忻州地区","0307晋中地区","0308吕梁地区",
"0309临汾地区","0310运城地区","0400呼和浩特市","0401包头市","0402乌海市","0403赤峰市","0404乌兰察布盟",
"0405锡林郭勒盟","0406呼伦贝尔盟","0407哲里木盟","0408巴彦淖尔盟","0409伊克昭盟","0410阿拉善盟",
"0411兴安盟","0500沈阳市","0501大连市","0502鞍山市","0503抚顺市","0504本溪市","0505丹东市","0506锦州市",
"0507葫芦岛市","0508营口市","0509盘锦市","0510阜新市","0511辽阳市","0512铁岭市","0513朝阳市","0600长春市",
"0601吉林市","0602四平市","0603辽源市","0604通化市","0605白山市","0606松原市","0607白城市","0608延边自治州",
"0700哈尔滨市","0701齐齐哈尔市","0702鹤岗市","0703双鸭山市","0704鸡西市","0705大庆市","0706伊春市",
"0707牡丹江市","0708佳木斯市","0709七台河市","0710黑河市","0711绥化地区","0712大兴安岭地区","0800上海市",
"0900南京市","0901徐州市","0902连云港市","0903淮阴市","0904宿迁市","0905盐城市","0906扬州市","0907泰州市",
"0908南通市","0909镇江市","0910常州市","0911无锡市","0912苏州市","1000杭州市","1001宁波市","1002温州市",
"1003嘉兴市","1004湖州市","1005绍兴市","1006金华市","1007衢州市","1008舟山市","1009台州市","1010丽水地区",
"1100淮北市","1101芜湖市","1102铜陵市","1103蚌埠市","1104马鞍山市","1105安庆市","1106黄山市","1107滁州市",
"1108阜阳市","1109宿州市","1110安徽省直辖市","1111巢湖地区","1112宣城地区","1113池州地区","1114六安地区",
"1115合肥市","1116淮南市","1200福州市","1201厦门市","1202三明市","1203莆田市","1204泉州市","1205漳州市",
"1206南平市","1207龙岩市","1208宁德地区","1300南昌市","1301景德镇市","1302萍乡市","1303新余市","1304九江市",
"1305鹰谭市","1306赣州市","1307上饶地区","1308宜春地区","1309抚州地区","1310吉安地区","1400济南市",
"1401青岛市","1402淄博市","1403枣庄市","1404东营市","1405潍坊市","1406烟台市","1407威海市","1408济宁市",
"1409泰安市","1410日照市","1411莱芜市","1412德州市","1413临沂市","1414聊城市","1415滨州地区","1416菏泽地区",
"1500郑州市","1501开封市","1502洛阳市","1503平顶山市","1504焦作市","1505鹤壁市","1506新乡市","1507安阳市",
"1508濮阳市","1509许昌市","1510漯河市","1511山门峡市","1512南阳市","1513商丘市","1514信阳市",
"1515河南省直辖区","1516周口地区","1517驻马店地区","1600武汉市","1601黄石市","1602襄樊市","1603十堰市",
"1604荆州市","1605宜昌市","1606鄂州市","1607孝感市","1608黄冈市","1609咸宁市","1610湖北省直辖区",
"1611荆门市","1612恩施自治州","1700长沙市","1701株洲市","1702湘潭市","1703衡阳市","1704邵阳市",
"1705岳阳市","1706常德市","1707张家界市","1708湘西自治州","1709郴州市","1710益阳市","1711永州市","1712怀化市",
"1713娄底地区","1800广州市","1801深圳市","1802珠海市","1803汕头市","1804韶关市","1805河源市","1806梅州市",
"1807惠州市","1808汕尾市","1809东莞市","1810中山市","1811江门市","1812佛山市","1813阳江市","1814湛江市",
"1815茂名市","1816肇庆市","1817云浮市","1818清远市","1819潮州市","1820揭阳市","1900南宁市","1901柳州市",
"1902桂州市","1903梧州市","1904北海市","1905防城港市","1906钦州市","1907贵港市","1908玉林市","1909南宁地区",
"1910柳州地区","1911贺州地区","1912百色地区","1913河池地区","2000海口市","2001三亚市","2002文昌市",
"2003儋州市","2004琼海市","2005东方市","2006海南省直辖区","2100重庆市","2200成都市","2201自贡市",
"2202攀枝花市","2203泸州市","2204德阳市","2205广元市","2206遂宁市","2207内江市","2208乐山市","2209南充市",
"2210绵阳市","2211宜宾市","2212广安市","2213达川市","2214巴中地区","2215雅安地区","2216眉山地区",
"2217资阳地区","2218阿坝自治洲","2219甘孜自治州","2220凉山自治州","2300贵阳市","2301六盘水市","2302遵义市",
"2303侗仁地区","2304毕节地区","2305安顺地区","2306黔西南自治州","2307黔东南自治州","2308黔南自治州",
"2400昆明市","2401曲靖市","2402玉溪市","2403昭通地区","2404思茅地区","2405临沧地区
电脑上怎么打开不了普通话报名网页在百度输入“普通话水平测试在线报名系统“。
普通话测试是就近测试原则,即考生在哪个地方工作,就找到该地最近的一个测试点测试。请注意看一下上面打开的系统,将域名中的主机名改为所在省市的拼音声母,例如,考生在贵州省盘县参加测试,那么,请主机名由"ah"改为"gz"。
然后回车打开所在省市的“普通话水平测试在线报名系统”,并在打开的页面中,点击网站中间的“我要报名”按钮。
进入的是一个所在地区选择的页面,请选择最近测试地所在地,如考生所在地属在六盘水市,那么请选择“六盘水市”,然后点击下一步。
然后跳转到“测试站点”的选择页面,找到一个相对较近的测试点,单击后面的“报名”按钮。如考生选择的是“盘县职业技术学校”测试站点,则点击对应的“报名”按钮。
在弹出的页面中,如实填写好自己的信息,在这里特别要注意,填写好上面的信息后,拖延滚动条或滚动鼠标到网页底部还有很多信息要填写。
全部填写好后,点击页面下方的“确定”,就报名成功了。
六盘水有哪些职校2022年六盘水职校有贵州省机械职业技术学校、六盘水现代职业技术学校、盘州市职业技术学校、六盘水市钟山区职业技术学校、盘县职业技术学校、六枝特区职业技术学校、六盘水市军事技能职业学校等。
下面我简单介绍两所:
水城县职业技术学校
水城县职业技术学校专业名单:计算机及应用、酒店服务、网络技术、艺术设计、电子电器、数控技术、汽车应用与维修、采煤技术、旅游服务、服务设计与制作。
1、计算机及应用
计算机及应用专业目标定位于信息技术产业,毕业生可在科研机构、大型企业、跨国公司、电信行业、网络公司以及产品科技含量高的IT产业、计算机技术应用行业从事计算机硬件应用及研究、设计、开发等工作,也可从事计算机应用程序设计、软件开发、系统管理、技术维护等工作,还可从事计算机软件、硬件的运行、维护、管理等工作。毕业生主要面向各类计算机专业化公司、交通系统各单位、交通信息化与电子政务建设与应用部门、广告设计制作公司、汽车营销技术服务等从事IT行业工作。
六盘水现代职业技术学校
六盘水职业技术学院王牌专业有计算机网络技术、会计、康复治疗技术等。
1、计算机网络技术
本专业培养具备扎实的电子技术、计算机技术、网络技术等方面的基本理论知识与技能,具有计算机网络实际组建、管理、维护等基本能力,能在各企事业单位进行网络设计、安装、调试和管理等工作的应用型技术人才。
毕业生主要面向网络集成行业、网络设备厂商及各类企事业单位,在网络工程、网络管理、网络应用等岗位群,从事网络系统设计与组建、网络运行维护与安全管理、网站建设与管理、网络设备销售与维护等工作。
用Adobe Dreamweaver 编写网页,写省份的时候怎么能让写完之后点哪个省份就出来哪个市这个要javascript脚本实现,也可以和后台数据库联动,下面的例子是用javascript实现的代码为:
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
meta name="keywords" content="" /
meta name="description" content="" /
titleJS省市二级联动菜单,sky整理收集。/title
style
!--
body { font-size: 14px }
--
/style
/head
body bgcolor=#FFFFFF alink=#333333 vlink=#333333 link=#333333 topmargin=0 leftmargin=0 onLoad="init()"
form action="#ZC_BLOG_HOST#" method="post" name="creator" enctype="multipart/form-data"
script language="javascript"
!--
var where = new Array(35);
function comefrom(loca,locacity) { this.loca = loca; this.locacity = locacity; }
where[0]= new comefrom("请选择省份名","请选择城市名");
where[1] = new comefrom("北京","|东城|西城|崇文|宣武|朝阳|丰台|石景山|海淀|门头沟|房山|通州|顺义|昌平|大兴|平谷|怀柔|密云|延庆"); //
where[2] = new comefrom("上海","|黄浦|卢湾|徐汇|长宁|静安|普陀|闸北|虹口|杨浦|闵行|宝山|嘉定|浦东|金山|松江|青浦|南汇|奉贤|崇明");//。
where[3] = new comefrom("天津","|和平|东丽|河东|西青|河西|津南|南开|北辰|河北|武清|红挢|塘沽|汉沽|大港|宁河|静海|宝坻|蓟县");
where[4] = new comefrom("重庆","|万州|涪陵|渝中|大渡口|江北|沙坪坝|九龙坡|南岸|北碚|万盛|双挢|渝北|巴南|黔江|长寿|綦江|潼南|铜梁|大足|荣昌|壁山|梁平|城口|丰都|垫江|武隆|忠县|开县|云阳|奉节|巫山|巫溪|石柱|秀山|酉阳|彭水|江津|合川|永川|南川");
where[5] = new comefrom("河北","|石家庄|邯郸|邢台|保定|张家口|承德|廊坊|唐山|秦皇岛|沧州|衡水");
where[6] = new comefrom("山西","|太原|大同|阳泉|长治|晋城|朔州|吕梁|忻州|晋中|临汾|运城");
where[7] = new comefrom("内蒙古","|呼和浩特|包头|乌海|赤峰|呼伦贝尔盟|阿拉善盟|哲里木盟|兴安盟|乌兰察布盟|锡林郭勒盟|巴彦淖尔盟|伊克昭盟");
where[8] = new comefrom("辽宁","|沈阳|大连|鞍山|抚顺|本溪|丹东|锦州|营口|阜新|辽阳|盘锦|铁岭|朝阳|葫芦岛");
where[9] = new comefrom("吉林","|长春|吉林|四平|辽源|通化|白山|松原|白城|延边");
where[10] = new comefrom("黑龙江","|哈尔滨|齐齐哈尔|牡丹江|佳木斯|大庆|绥化|鹤岗|鸡西|黑河|双鸭山|伊春|七台河|大兴安岭");
where[11] = new comefrom("江苏","|南京|镇江|苏州|南通|扬州|盐城|徐州|连云港|常州|无锡|宿迁|泰州|淮安");
where[12] = new comefrom("浙江","|杭州|宁波|温州|嘉兴|湖州|绍兴|金华|衢州|舟山|台州|丽水");
where[13] = new comefrom("安徽","|合肥|芜湖|蚌埠|马鞍山|淮北|铜陵|安庆|黄山|滁州|宿州|池州|淮南|巢湖|阜阳|六安|宣城|亳州");
where[14] = new comefrom("福建","|福州|厦门|莆田|三明|泉州|漳州|南平|龙岩|宁德");
where[15] = new comefrom("江西","|南昌市|景德镇|九江|鹰潭|萍乡|新馀|赣州|吉安|宜春|抚州|上饶");
where[16] = new comefrom("山东","|济南|青岛|淄博|枣庄|东营|烟台|潍坊|济宁|泰安|威海|日照|莱芜|临沂|德州|聊城|滨州|菏泽");
where[17] = new comefrom("河南","|郑州|开封|洛阳|平顶山|安阳|鹤壁|新乡|焦作|濮阳|许昌|漯河|三门峡|南阳|商丘|信阳|周口|驻马店|济源");
where[18] = new comefrom("湖北","|武汉|宜昌|荆州|襄樊|黄石|荆门|黄冈|十堰|恩施|潜江|天门|仙桃|随州|咸宁|孝感|鄂州");
where[19] = new comefrom("湖南","|长沙|常德|株洲|湘潭|衡阳|岳阳|邵阳|益阳|娄底|怀化|郴州|永州|湘西|张家界");
where[20] = new comefrom("广东","|广州|深圳|珠海|汕头|东莞|中山|佛山|韶关|江门|湛江|茂名|肇庆|惠州|梅州|汕尾|河源|阳江|清远|潮州|揭阳|云浮");
where[21] = new comefrom("广西","|南宁|柳州|桂林|梧州|北海|防城港|钦州|贵港|玉林|南宁地区|柳州地区|贺州|百色|河池");
where[22] = new comefrom("海南","|海口|三亚");
where[23] = new comefrom("四川","|成都|绵阳|德阳|自贡|攀枝花|广元|内江|乐山|南充|宜宾|广安|达川|雅安|眉山|甘孜|凉山|泸州");
where[24] = new comefrom("贵州","|贵阳|六盘水|遵义|安顺|铜仁|黔西南|毕节|黔东南|黔南");
where[25] = new comefrom("云南","|昆明|大理|曲靖|玉溪|昭通|楚雄|红河|文山|思茅|西双版纳|保山|德宏|丽江|怒江|迪庆|临沧");
where[26] = new comefrom("西藏","|拉萨|日喀则|山南|林芝|昌都|阿里|那曲");
where[27] = new comefrom("陕西","|西安|宝鸡|咸阳|铜川|渭南|延安|榆林|汉中|安康|商洛");
where[28] = new comefrom("甘肃","|兰州|嘉峪关|金昌|白银|天水|酒泉|张掖|武威|定西|陇南|平凉|庆阳|临夏|甘南");
where[29] = new comefrom("宁夏","|银川|石嘴山|吴忠|固原");
where[30] = new comefrom("青海","|西宁|海东|海南|海北|黄南|玉树|果洛|海西");
where[31] = new comefrom("新疆","|乌鲁木齐|石河子|克拉玛依|伊犁|巴音郭勒|昌吉|克孜勒苏柯尔克孜|博尔塔拉|吐鲁番|哈密|喀什|和田|阿克苏");
where[32] = new comefrom("香港","");
where[33] = new comefrom("澳门","");
where[34] = new comefrom("台湾","|台北|高雄|台中|台南|屏东|南投|云林|新竹|彰化|苗栗|嘉义|花莲|桃园|宜兰|基隆|台东|金门|马祖|澎湖");
where[35] = new comefrom("其它","|北美洲|南美洲|亚洲|非洲|欧洲|大洋洲");
function select() {
with(document.creator.province) { var loca2 = options[selectedIndex].value; }
for(i = 0;i where.length;i ++) {
if (where[i].loca == loca2) {
loca3 = (where[i].locacity).split("|");
for(j = 0;j loca3.length;j++) { with(document.creator.city) { length = loca3.length; options[j].text = loca3[j]; options[j].value = loca3[j]; var loca4=options[selectedIndex].value;}}
break;
}}
document.creator.newlocation.value=loca2+loca4;
} //
function init() {
with(document.creator.province) {
length = where.length;
for(k=0;kwhere.length;k++) { options[k].text = where[k].loca; options[k].value = where[k].loca; }
options[selectedIndex].text = where[0].loca; options[selectedIndex].value = where[0].loca;
}
with(document.creator.city) {
loca3 = (where[0].locacity).split("|");
length = loca3.length;
for(l=0;llength;l++) { options[l].text = loca3[l]; options[l].value = loca3[l]; }
options[selectedIndex].text = loca3[0]; options[selectedIndex].value = loca3[0];
}} //
--
/script
font color=#000000b来自:/b
省份 select name="province" onChange = "select()"/select 城市 select name="city" onChange = "select()"/select
br
br
br
下面这些可以不要br
我在 input type=text name="newlocation" maxlength=12 size=12 style="font-weight: bold" 不能超过12个字符(6个汉字)
/form
/font
/body
/html
请问如何实现:在网页中选择了国家,下面自动出现该国家的省名供选择script type="text/javascript"
//定义了城市的二维数组,里面的顺序跟省份的顺序是相同的。通过selectedIndex获得省份的下标值来得到相应的城市数组
var city=[
["北京","天津","上海","重庆","香港","澳门"],
["石家庄","唐山","秦皇岛","邯郸","邢台","保定","张家口","承德","沧州","廊坊","衡水"],
["太原","大同","阳泉","长治","晋城","朔州","晋中","运城","忻州","临汾","吕梁"],
["呼和浩特","包头","乌海","赤峰","通辽","鄂尔多斯","呼伦贝尔","巴彦淖尔","乌兰察布","兴安","锡林郭勒","阿拉善"],
["沈阳","大连","鞍山","抚顺","本溪","丹东","锦州","营口","阜新","辽阳","盘锦","铁岭","朝阳","葫芦岛"],
["长春","吉林","四平","辽源","通化","白山","松原","白城","延边"],
["哈尔滨","齐齐哈尔","鸡西","鹤岗","双鸭山","大庆","伊春","佳木斯","七台河","牡丹江","黑河","绥化","大兴安岭"],
["南京","苏州","扬州","无锡","徐州","常州","南通","连云港","淮安","盐城","镇江","泰州","宿迁"],
["杭州","宁波","温州","嘉兴","湖州","绍兴","金华","衢州","舟山","台州","丽水"],
["合肥","芜湖","蚌埠","淮南","马鞍山","淮北","铜陵","安庆","黄山","滁州","阜阳","宿州","巢湖","六安","亳州","池州","宣城"],
["福州","宁德","南平","厦门","莆田","三明","泉州","漳州"],
["南昌","上饶","萍乡","九江","景德镇","新余","鹰潭","赣州","吉安","宜春","抚州"],
["济南","青岛","淄博","枣庄","东营","烟台","潍坊","威海","济宁","泰安","日照","莱芜","临沂","德州","聊城","滨州","菏泽"],
["郑州","开封","洛阳","平顶山","焦作","鹤壁","新乡","安阳","濮阳","漯河","许昌","三门峡","南阳","商丘","信阳","周口","驻马店"],
["武汉","十堰","襄樊","鄂州","黄石","荆州","宜昌","荆门","孝感","黄冈","咸宁","随州","恩施"],
["长沙","株洲","湘潭","岳阳","邵阳","常德","衡阳","张家界","益阳","郴州","永州","怀化","娄底","湘西"],
["广州","清远","潮州","东莞","珠海","深圳","汕头","韶关","佛山","江门","湛江","茂名","肇庆","惠州","梅州","汕尾","阳江","河源","中山","揭阳","云浮"],
["南宁","柳州","桂林","梧州","北海","防城港","钦州","贵港","玉林","百色","贺州","河池","来宾","崇左"],
["海口","三亚"],
["成都","自贡","攀枝花","泸州","德阳","绵阳","广元","遂宁","内江","乐山","南充","宜宾","广安","达州","眉山","雅安","巴中","资阳","阿坝","甘孜","凉山"],
["贵阳","六盘水","遵义","安顺","铜仁","毕节","黔西南","黔东南","黔南"],
["昆明","曲靖","玉溪","保山","昭通","丽江","普洱","临沧","文山","红河","西双版纳","楚雄","大理","德宏","怒江","迪庆"],
["拉萨","昌都","山南","日喀则","那曲","阿里","林芝"],
["西安","铜川","宝鸡","咸阳","渭南","延安","汉中","榆林","安康","商洛"],
["兰州","白银","定西","敦煌","嘉峪关","金昌","天水","武威","张掖","平凉","酒泉","庆阳","临夏","陇南","甘南"],
["西宁","海东","海北","黄南","海南","果洛","玉树","海西"],
["银川","石嘴山","吴忠","固原","中卫"],
["乌鲁木齐","克拉玛依","吐鲁番","哈密","和田","阿克苏","喀什","克孜勒苏柯尔克孜","巴音郭楞蒙古","昌吉","博尔塔拉蒙古","伊犁哈萨克","阿勒泰"],
["台北","高雄","基隆","台中","台南","新竹","嘉义"]
];
function getCity(){
//获得省份下拉框的对象
var sltProvince=document.forms[0].province;
//获得城市下拉框的对象
var sltCity=document.forms[0].city;
//得到对应省份的城市数组
var provinceCity=city[sltProvince.selectedIndex - 1];
//清空城市下拉框,仅留提示选项
sltCity.length=1;
//将城市数组中的值填充到城市下拉框中
for(var i=0;iprovinceCity.length;i++){
sltCity[i+1]=new Option(provinceCity[i],provinceCity[i]);
}
}
/script
form action="#" method="POST" name="myform" target="_self" id="myform"
select name="province" onChange="getCity()"
option value="null" disabled="disabled"请选择所在省份/option
option value="直辖市"直辖市/option
option value="河北"河北/option
option value="山西"山西/option
option value="内蒙古"内蒙古/option
option value="辽宁"辽宁/option
option value="吉林"吉林/option
option value="黑龙江"黑龙江/option
option value="江苏"江苏/option
option value="浙江"浙江/option
option value="安徽"安徽 /option
option value="福建"福建 /option
option value="江西"江西/option
option value="山东"山东/option
option value="河南"河南/option
option value="湖北"湖北/option
option value="湖南"湖南/option
option value="广东"广东/option
option value="广西"广西/option
option value="海南"海南/option
option value="四川"四川/option
option value="贵州"贵州/option
option value="云南"云南/option
option value="西藏"西藏/option
option value="陕西"陕西 /option
option value="甘肃"甘肃 /option
option value="青海"青海/option
option value="宁夏"宁夏/option
option value="新疆"新疆/option
option value="台湾"台湾/option
/select
select name="city"
option selected="selected" value="null"请选择所在城市/option
/select
/form 直接用就可以了。这是 省市 2级联动
网页设计关于下拉列表的代码看看这个不错:
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312" /
titleUntitled Document/title
script language="JavaScript" type="text/javascript"
//---------------------------------------------------------------------------
// 功能搜索选择框
// 作者:Joshua
// 创建时间:2007-02-07
// Email:JoshuaChen[at]126.com
// webSite:
//---------------------------------------------------------------------------
//省
var Data_Area_Province = new Array("安徽","北京","福建","甘肃","广东","广西","贵州","海南","河北","河南","黑龙江","湖北","湖南","吉林","江苏","江西","辽宁","内蒙古","宁夏","青海","山东","山西","陕西","上海","四川","天津","西藏","新疆","云南","浙江","重庆");
//市区
var Data_Area_City = new Array();
Data_Area_City[0] = new Array("安庆","蚌埠","马鞍山","宿州","铜陵","芜湖","宣城","亳州");
Data_Area_City[1] = new Array("北京");
Data_Area_City[2] = new Array("福州","龙岩","南平","宁德","莆田","泉州","三明","厦门","漳州");
Data_Area_City[3] = new Array("白银","定西","天水","武威","张掖");
Data_Area_City[4] = new Array("潮州","东莞","佛山","广州","肇庆","中山","珠海");
Data_Area_City[5] = new Array("百色","北海","崇左","防城港","桂林","贵港","河池","贺州","来宾","柳州","南宁","钦州","梧州","玉林");
Data_Area_City[6] = new Array("安顺","毕节","贵阳","六盘水","铜仁","遵义");
Data_Area_City[7] = new Array("白沙黎族自治县","乐东黎族自治县","万宁","文昌","五指山","儋州");
Data_Area_City[8] = new Array("保定","沧州","承德","邯郸","衡水","廊坊","秦皇岛","石家庄","唐山","邢台","张家口");
Data_Area_City[9] = new Array("安阳","鹤壁","济源","焦作","开封","洛阳","周口","驻马店","漯河","濮阳");
Data_Area_City[10]= new Array("大庆","大兴安岭","哈尔滨","鹤岗","七台河","齐齐哈尔","双鸭山","绥化","伊春");
Data_Area_City[11] = new Array("鄂州","恩施土家族苗族自治州","黄冈","襄樊","孝感","宜昌");
Data_Area_City[12] = new Array("常德","长沙","岳阳","张家界","株洲");
Data_Area_City[13] = new Array("白城","白山","长春","吉林","辽源","四平","松原","通化","延边朝鲜族自治州");
Data_Area_City[14] = new Array("常州","淮安","连云港","南京","南通","苏州","宿迁","泰州","无锡","徐州","盐城","扬州","镇江");
Data_Area_City[15] = new Array("抚州","赣州","吉安","景德镇","九江","南昌","萍乡","上饶","新余","宜春","鹰潭");
Data_Area_City[16] = new Array("鞍山","本溪","朝阳","沈阳","铁岭","营口");
Data_Area_City[17] = new Array("阿拉善盟","巴彦淖尔盟","包头","锡林郭勒盟","兴安盟");
Data_Area_City[18] = new Array("固原","石嘴山","吴忠","银川");
Data_Area_City[19] = new Array("果洛藏族自治州","西宁","玉树藏族自治州");
Data_Area_City[20] = new Array("滨州","德州","东营","菏泽","潍坊","烟台","枣庄","淄博");
Data_Area_City[21] = new Array("长治","大同","晋城","晋中","临汾","吕梁","朔州","太原","忻州","阳泉","运城");
Data_Area_City[22] = new Array("安康","宝鸡","汉中","商洛","铜川","渭南","西安","咸阳","延安","榆林");
Data_Area_City[23] = new Array("上海");
Data_Area_City[24] = new Array("阿坝藏族羌族自治州","绵阳","南充","内江","攀枝花","遂宁","雅安","宜宾","资阳","自贡","泸州");
Data_Area_City[25] = new Array("天津");
Data_Area_City[26] = new Array("阿里","昌都","拉萨","林芝","那曲","日喀则","山南");
Data_Area_City[27] = new Array("阿克苏","和田","喀什","吐鲁番","乌鲁木齐","五家渠","伊犁哈萨克自治州");
Data_Area_City[28] = new Array("保山","玉溪","昭通");
Data_Area_City[29] = new Array("杭州","湖州","嘉兴","金华","丽水","宁波","绍兴","台州","温州","舟山","衢州");
Data_Area_City[30] = new Array("重庆");
//学历
var Data_School = new Array("初中","高中","中专","大专","本科","双学位");
//行业
var Data_Industry = new Array("计算机类","金融/证券/保险类","财务类","工业/工厂类 ","技工类","机械/设备维修类","动力电气类", "轻工类 ","美容保健类");
//时间
var Data_Date = new Array("今天","三天内","一个星期内","半个月内","一个月内","三个月内","半年内","一年内","所有");
//层状态
var Date_DivState=new Array()
//鼠标焦点状态
var focusState=false
var Search = new Object();
//--------------------------------------
// 初始化Div标签事件
// Joshua 2007-02-07
//--------------------------------------
Search.Init = function(){
document.getElementById("Data_Area").onclick = Search.ShowArea.Init;
document.getElementById("Data_School").onclick = Search.ShowSchool;
document.getElementById("Data_Industry").onclick = Search.ShowIndustry;
document.getElementById("Data_Date").onclick = Search.ShowDate;
}
//-------------------------------
// 创建一个Div对象
// Joshua 2007-02-07
//-------------------------------
Search.CreateDiv = function(obj,Id,X,Y,oWidth,oHeight){
var Obj_Div = document.createElement("div");
Obj_Div.setAttribute("id",Id);
Obj_Div.style.position="absolute";
Obj_Div.style.background="#fff";
Obj_Div.style.zIndex = "10000";
Obj_Div.style.border="1px solid #CCCCCC";
Obj_Div.style.padding="3px";
Obj_Div.style.lineHeight ="120%";
Obj_Div.style.left=X+"px";
Obj_Div.style.top=Y+"px";
Obj_Div.style.whiteSpace="nowrap";
Obj_Div.style.width= oWidth + "px";
Obj_Div.style.height= oHeight + "px";
obj.appendChild(Obj_Div);
}
//------------------------------------
// 判断Div是否存在
// Joshua 2007-02-07
//------------------------------------
Search.IsDiv = function(Id){
var result = true
try{
document.getElementById(Id).a=1;
}catch(e){
result = false
}
return(result);
}
//----------------------------
// 删除Div对象
// Joshua 2007-02-07
//----------------------------
Search.RemoveDiv = function(Id){
try{
document.getElementById(Id).removeNode(true);
}catch(e){}
}
//---------------------------
// 遍历清除无用Div对象
// Joshua 2007-02-07
//---------------------------
Search.DelDiv = function(){
try{
document.getElementById("Div_Area").removeNode(true);
document.getElementById("Data_Area").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
}catch(e){}
try{
document.getElementById("Div_School").removeNode(true);
document.getElementById("Data_School").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Industry").removeNode(true);
document.getElementById("Data_Industry").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Date").removeNode(true);
document.getElementById("Data_Date").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
}catch(e){}
}
//--------------------------
// 失去焦点,清楚Div对象
// Joshua 2007-02-07
//--------------------------
Search.Lostfocus = function(){
if(!focusState){
try{
document.getElementById("Div_Area").removeNode(true);
document.getElementById("Data_Area").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
}catch(e){}
try{
document.getElementById("Div_School").removeNode(true);
document.getElementById("Data_School").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Industry").removeNode(true);
document.getElementById("Data_Industry").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
}catch(e){}
try{
document.getElementById("Div_Date").removeNode(true);
document.getElementById("Data_Date").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
}catch(e){}
}
}
Search.ShowArea = function(){} //空对象
//------------------------
// 显示地区一级菜单
// Joshua 2007-02-07
//------------------------
Search.ShowArea.Init = function(){
focusState = true;
Search.DelDiv()//删除其他DIV标签
if(!Search.IsDiv("Div_Area")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
//更改Data_Area对象内容
document.getElementById("Data_Area").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"6/font" + document.getElementById("Data_Area").innerText.substring(1,document.getElementById("Data_Area").innerText.length);
//显示层
Search.CreateDiv(document.body,"Div_Area",Search.getSelectPosition(document.getElementById("Data_Area"))[0],Search.getSelectPosition(document.getElementById("Data_Area"))[1]+12,80,0);
//创建省级分类
for(var i=0;iData_Area_Province.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Area_Province_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
if (!Date_DivState[this.getAttribute("value")]){
this.style.border="0px solid #ffffff";
this.style.background="#fff";}
}
Obj_Span.onclick = function(){
focusState = true;
//恢复非本对象的其他一级菜单项目样式
for(var i=0;iDate_DivState.length;i++){
if(Date_DivState[i]==truethis.value!=document.getElementById("Div_Area_Province_"+i).value){
document.getElementById("Div_Area_Province_"+i).style.border="0px solid #ffffff";
document.getElementById("Div_Area_Province_"+i).style.background="#fff";
}
}
//设置层状态
Date_DivState[this.getAttribute("value")] = true;
//生成二级菜单
Search.ShowArea.InitCity(this.getAttribute("value"),this)
}
Obj_Span.innerHTML = Data_Area_Province[i] + "font face="webdings" style="font-size:10px; color:#000;position:absolute;right:3px; "4/font";
document.getElementById("Div_Area").appendChild(Obj_Span);
}
}
}
//----------------------
// 显示地区二级菜单
// Joshua 2007-02-07
//----------------------
Search.ShowArea.InitCity = function(oId,obj){
if(!Search.IsDiv("Div_Area_City_"+oId)){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
//删除除对象外存在的二级菜单对象
for(var i=0;iDate_DivState.length;i++){
if(Date_DivState[i]==truei!=oId){
Search.RemoveDiv("Div_Area_City_"+i);
Date_DivState[i]=null;
}
}
//生成指定的二级菜单对象
Search.CreateDiv(obj,"Div_Area_City_"+oId,obj.offsetWidth,obj.offsetTop,50,0);
if(oIdData_Area_Province.length){
for(var i=0;iData_Area_City[oId].length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Area_City"+i);
Obj_Span.style.cursor="pointer";
Obj_Span.innerText = Data_Area_City[oId][i];
Obj_Span.setAttribute("value",oId);
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
//设置Data_Area的对象为选择的职
document.getElementById("Data_Area").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + this.innerText;
//删除Div对象
Search.RemoveDiv("Div_Area");
//恢复状态数组
Date_DivState.length=0;
}
document.getElementById("Div_Area_City_"+oId).appendChild(Obj_Span);
}
}
}
}
//-------------------
// 学历Div操作
// Joshua 2007-02-07
//-------------------
Search.ShowSchool=function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_School")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_School").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"6/font" + document.getElementById("Data_School").innerText.substring(1,document.getElementById("Data_School").innerText.length);
Search.CreateDiv(document.body,"Div_School",Search.getSelectPosition(document.getElementById("Data_School"))[0],Search.getSelectPosition(document.getElementById("Data_School"))[1]+12,60,0);
for(var i=0;iData_School.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_School_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_School").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + this.innerText;
Search.RemoveDiv("Div_School");
}
Obj_Span.innerHTML = Data_School[i];
document.getElementById("Div_School").appendChild(Obj_Span);
}
}
}
//----------------------
// 行业Div操作
// Joshua 2007-02-07
//----------------------
Search.ShowIndustry = function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_Industry")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_Industry").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"6/font" + document.getElementById("Data_Industry").innerText.substring(1,document.getElementById("Data_Industry").innerText.length);
Search.CreateDiv(document.body,"Div_Industry",Search.getSelectPosition(document.getElementById("Data_Industry"))[0],Search.getSelectPosition(document.getElementById("Data_Industry"))[1]+12,160,0);
for(var i=0;iData_Industry.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Industry_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_Industry").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + this.innerText;
Search.RemoveDiv("Div_Industry");
}
Obj_Span.innerHTML = Data_Industry[i];
document.getElementById("Div_Industry").appendChild(Obj_Span);
}
}
}
//-----------------------------
// 时间Div操作
// Joshua 2007-02-07
//-----------------------------
Search.ShowDate = function(){
focusState = true;
Search.DelDiv();//删除其他DIV标签
if(!Search.IsDiv("Div_Date")){//判断对象是否建立,防止再次激发事件,引起的对象多次重复建立
document.getElementById("Data_Date").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"6/font" + document.getElementById("Data_Date").innerText.substring(1,document.getElementById("Data_Date").innerText.length);
Search.CreateDiv(document.body,"Div_Date",Search.getSelectPosition(document.getElementById("Data_Date"))[0],Search.getSelectPosition(document.getElementById("Data_Date"))[1]+12,60,0);
for(var i=0;iData_Date.length;i++){
var Obj_Span = document.createElement("div");
Obj_Span.setAttribute("id","Div_Date_"+i);
Obj_Span.setAttribute("value",i);
Obj_Span.style.cursor="pointer";
Obj_Span.onmouseover = function(){
focusState = true;
this.style.border="1px solid #827C5F";
this.style.background="#CEC497";
}
Obj_Span.onmouseout = function(){
focusState = false;
this.style.border="0px solid #ffffff";
this.style.background="#fff";
}
Obj_Span.onclick = function(){
document.getElementById("Data_Date").innerHTML = "font face="webdings" style="font-size:10px; color:#ff9900;"4/font" + this.innerText;
Search.RemoveDiv("Div_Date");
}
Obj_Span.innerHTML = Data_Date[i];
document.getElementById("Div_Date").appendChild(Obj_Span);
}
}
}
//-----------------------
// 获取一个对象的坐标
//------------------------
Search.getSelectPosition = function(Gobj) {
var objLeft = Gobj.offsetLeft;
var objTop = Gobj.offsetTop;
var objParent = Gobj.offsetParent;
while (objParent!= null) {
objLeft += objParent.offsetLeft;
objTop += objParent.offsetTop;
objParent = objParent.offsetParent;
}
return([objLeft,objTop]);
}
//------------------------
// 页面初始化
//------------------------
window.onload=function(){
Search.Init();
}
window.document.onclick=function (){
Search.Lostfocus();
}
/script
style
BODY{FONT-SIZE: 12px;}
/style
/head
body
span id="Data_Area" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font地区/span
span id="Data_School" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font学历/span
span id="Data_Industry" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font行业/span
span id="Data_Date" style="cursor:pointer;"font face="webdings" style="font-size:10px; color:#ff9900;"4/font时间/span
/body
/html
1
目录:1、几款好用的数据库管理工具?2、北大青鸟设计培训:mysql数据库的优化方法?3、mysql数据库如何优化,优化了哪些功能4、mysql运维...