东营javascript,东营市
ASP里的表单问题~!急
select onchange=setcity(); name=prv
创新互联公司是一家集网站建设,东西湖企业网站建设,东西湖品牌网站建设,网站定制,东西湖网站建设报价,网络营销,网络优化,东西湖网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。
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
OPTION value=台湾台湾/OPTION
OPTION value=天津天津/OPTION
OPTION value=新疆新疆/OPTION
OPTION value=西藏西藏/OPTION
OPTION value=云南云南/OPTION
OPTION value=浙江浙江/OPTION
/select
select name=city/select市
SCRIPT language=javascript
!--
function setcity() {
switch (document.form1.prv.value) {
case "" :
var cityOptions = new Array("", "");
break;
case "安徽" :
var cityOptions = new Array(
"合肥", "合肥","安庆", "安庆","蚌埠", "蚌埠","亳州", "亳州","巢湖", "巢湖","滁州", "滁州","阜阳", "阜阳","贵池", "贵池","淮北", "淮北","淮化", "淮化","淮南", "淮南", "黄山", "黄山", "九华山", "九华山", "六安", "六安","马鞍山", "马鞍山","宿州", "宿州","铜陵", "铜陵","屯溪", "屯溪","芜湖", "芜湖", "宣城", "宣城");
break;
case "北京" :
var cityOptions = new Array(
"北京", "北京","东城","西城","崇文","宣武","朝阳","丰台","石景山","海淀","门头沟","房山","通州","顺义","昌平","大兴","平谷","怀柔","密云","延庆");
break;
case "重庆" :
var cityOptions = new Array(
"重庆", "重庆","万州","涪陵","渝中","大渡口","江北","沙坪坝","九龙坡","南岸","北碚","万盛","双挢","渝北","巴南","黔江","长寿","綦江","潼南","铜梁","大足","荣昌","壁山","梁平","城口","丰都","垫江","武隆","忠县","开县","云阳","奉节","巫山","巫溪","石柱","秀山","酉阳","彭水","江津","合川","永川","南川");
break;
case "福建" :
var cityOptions = new Array(
"福州", "福州","福安", "福安","龙岩", "龙岩","南平", "南平","宁德", "宁德","莆田", "莆田","泉州", "泉州","三明", "三明","邵武", "邵武","石狮", "石狮","永安","永安", "武夷山", "武夷山","厦门", "厦门", "漳州", "漳州");
break;
case "甘肃" :
var cityOptions = new Array(
"兰州(*)", "兰州",
"白银", "白银",
"定西", "定西",
"敦煌", "敦煌",
"甘南", "甘南",
"金昌", "金昌",
"酒泉", "酒泉",
"临夏", "临夏",
"平凉", "平凉",
"天水", "天水",
"武都", "武都",
"西峰", "西峰",
"张掖", "张掖");
break;
case "广东" :
var cityOptions = new Array(
"广州(*)", "广州",
"潮阳", "潮阳",
"潮州", "潮州",
"澄海", "澄海",
"东莞", "东莞",
"佛山", "佛山",
"河源", "河源",
"惠州", "惠州",
"江门", "江门",
"揭阳", "揭阳",
"开平", "开平",
"茂名", "茂名",
"梅州", "梅州",
"清远", "清远",
"汕头", "汕头",
"汕尾", "汕尾",
"韶关", "韶关",
"深圳", "深圳",
"顺德", "顺德",
"阳江", "阳江",
"阳江", "阳江",
"英德", "英德",
"云浮", "云浮",
"增城", "增城",
"湛江", "湛江",
"肇庆", "肇庆",
"中山", "中山",
"珠海", "珠海");
break;
case "广西" :
var cityOptions = new Array(
"南宁(*)", "南宁",
"百色", "百色",
"北海", "北海",
"桂林", "桂林",
"防城港", "防城港",
"河池", "河池",
"柳州", "柳州",
"钦州", "钦州",
"梧州", "梧州",
"玉林", "玉林");
break;
case "贵州" :
var cityOptions = new Array(
"贵阳(*)", "贵阳",
"安顺", "安顺",
"毕节", "毕节",
"都匀", "都匀",
"凯里", "凯里",
"六盘水", "六盘水",
"铜仁", "铜仁",
"兴义", "兴义",
"玉屏", "玉屏",
"遵义", "遵义");
break;
case "海南" :
var cityOptions = new Array(
"海口(*)", "海口",
"儋县", "儋县",
"陵水", "陵水",
"琼海", "琼海",
"三亚", "三亚",
"通什", "通什",
"万宁", "万宁");
break;
case "河北" :
var cityOptions = new Array(
"石家庄(*)", "石家庄",
"保定", "保定",
"北戴河", "北戴河",
"沧州", "沧州",
"承德", "承德",
"丰润", "丰润",
"邯郸", "邯郸",
"衡水", "衡水",
"廊坊", "廊坊",
"南戴河", "南戴河",
"秦皇岛", "秦皇岛",
"唐山", "唐山",
"新城", "新城",
"邢台", "邢台",
"张家口", "张家口");
break;
case "黑龙江" :
var cityOptions = new Array(
"哈尔滨(*)", "哈尔滨",
"北安", "北安",
"大庆", "大庆",
"大兴安岭", "大兴安岭",
"鹤岗", "鹤岗",
"黑河", "黑河",
"佳木斯", "佳木斯",
"鸡西", "鸡西",
"牡丹江", "牡丹江",
"齐齐哈尔", "齐齐哈尔",
"七台河", "七台河",
"双鸭山", "双鸭山",
"绥化", "绥化",
"伊春", "伊春");
break;
case "河南" :
var cityOptions = new Array(
"郑州(*)", "郑州",
"安阳", "安阳",
"鹤壁", "鹤壁",
"潢川", "潢川",
"焦作", "焦作",
"开封", "开封",
"漯河", "漯河",
"洛阳", "洛阳",
"南阳", "南阳",
"平顶山", "平顶山",
"濮阳", "濮阳",
"三门峡", "三门峡",
"商丘", "商丘",
"新乡", "新乡",
"信阳", "信阳",
"许昌", "许昌",
"周口", "周口",
"驻马店", "驻马店");
break;
case "香港" :
var cityOptions = new Array(
"香港", "香港",
"九龙", "九龙");
break;
case "湖北" :
var cityOptions = new Array(
"武汉(*)", "武汉",
"恩施", "恩施",
"鄂州", "鄂州",
"黄岗", "黄岗",
"黄石", "黄石",
"荆门", "荆门",
"荆州", "荆州",
"潜江", "潜江",
"十堰", "十堰",
"随州", "随州",
"武穴", "武穴",
"仙桃", "仙桃",
"咸宁", "咸宁",
"襄阳", "襄阳",
"襄樊", "襄樊",
"孝感", "孝感",
"宜昌", "宜昌");
break;
case "湖南" :
var cityOptions = new Array(
"长沙(*)", "长沙",
"常德", "常德",
"郴州", "郴州",
"衡阳", "衡阳",
"怀化", "怀化",
"吉首", "吉首",
"娄底", "娄底",
"邵阳", "邵阳",
"湘潭", "湘潭",
"益阳", "益阳",
"岳阳", "岳阳",
"永州", "永州",
"张家界", "张家界",
"株洲", "株洲");
break;
case "江苏" :
var cityOptions = new Array(
"南京(*)", "南京",
"常熟", "常熟",
"常州", "常州",
"海门", "海门",
"淮安", "淮安",
"江都", "江都",
"江阴", "江阴",
"昆山", "昆山",
"连云港", "连云港",
"南通", "南通",
"启东", "启东",
"沭阳", "沭阳",
"苏州", "苏州",
"太仓", "太仓",
"泰州", "泰州",
"同里", "同里",
"无锡", "无锡",
"徐州", "徐州",
"盐城", "盐城",
"扬州", "扬州",
"宜兴", "宜兴",
"仪征", "仪征",
"张家港", "张家港",
"镇江", "镇江",
"周庄", "周庄");
break;
case "江西" :
var cityOptions = new Array(
"南昌(*)", "南昌",
"抚州", "抚州",
"赣州", "赣州",
"吉安", "吉安",
"景德镇", "景德镇",
"井冈山", "井冈山",
"九江", "九江",
"庐山", "庐山",
"萍乡", "萍乡",
"上饶", "上饶",
"新余", "新余",
"宜春", "宜春",
"鹰潭", "鹰潭");
break;
case "吉林" :
var cityOptions = new Array(
"长春(*)", "长春",
"白城", "白城",
"白山", "白山",
"珲春", "珲春",
"辽源", "辽源",
"梅河", "梅河",
"吉林", "吉林",
"四平", "四平",
"松原", "松原",
"通化", "通化",
"延吉", "延吉");
break;
case "辽宁" :
var cityOptions = new Array(
"沈阳(*)", "沈阳",
"鞍山", "鞍山",
"本溪", "本溪",
"朝阳", "朝阳",
"大连", "大连",
"丹东", "丹东",
"抚顺", "抚顺",
"阜新", "阜新",
"葫芦岛", "葫芦岛",
"锦州", "锦州",
"辽阳", "辽阳",
"盘锦", "盘锦",
"铁岭", "铁岭",
"营口", "营口");
break;
case "澳门" :
var cityOptions = new Array(
"澳门", "澳门");
break;
case "内蒙古" :
var cityOptions = new Array(
"呼和浩特(*)", "呼和浩特",
"阿拉善盟", "阿拉善盟",
"包头", "包头",
"赤峰", "赤峰",
"东胜", "东胜",
"海拉尔", "海拉尔",
"集宁", "集宁",
"临河", "临河",
"通辽", "通辽",
"乌海", "乌海",
"乌兰浩特", "乌兰浩特",
"锡林浩特", "锡林浩特");
break;
case "宁夏" :
var cityOptions = new Array(
"银川(*)", "银川",
"固源", "固源",
"石嘴山", "石嘴山",
"吴忠", "吴忠");
break;
case "青海" :
var cityOptions = new Array(
"西宁(*)", "西宁",
"德令哈", "德令哈",
"格尔木", "格尔木",
"共和", "共和",
"海东", "海东",
"海晏", "海晏",
"玛沁", "玛沁",
"同仁", "同仁",
"玉树", "玉树");
break;
case "山东" :
var cityOptions = new Array(
"济南(*)", "济南",
"滨州", "滨州",
"兖州", "兖州",
"德州", "德州",
"东营", "东营",
"荷泽", "荷泽",
"济宁", "济宁",
"莱芜", "莱芜",
"聊城", "聊城",
"临沂", "临沂",
"蓬莱", "蓬莱",
"青岛", "青岛",
"曲阜", "曲阜",
"日照", "日照",
"泰安", "泰安",
"潍坊", "潍坊",
"威海", "威海",
"烟台", "烟台",
"枣庄", "枣庄",
"淄博", "淄博");
break;
case "上海" :
var cityOptions = new Array(
"上海", "上海",
"崇明", "崇明",
"朱家角", "朱家角");
break;
case "山西" :
var cityOptions = new Array(
"太原(*)", "太原",
"长治", "长治",
"大同", "大同",
"候马", "候马",
"晋城", "晋城",
"离石", "离石",
"临汾", "临汾",
"宁武", "宁武",
"朔州", "朔州",
"忻州", "忻州",
"阳泉", "阳泉",
"榆次", "榆次",
"运城", "运城");
break;
case "陕西" :
var cityOptions = new Array(
"西安(*)", "西安",
"安康", "安康",
"宝鸡", "宝鸡",
"汉中", "汉中",
"渭南", "渭南",
"商州", "商州",
"绥德", "绥德",
"铜川", "铜川",
"咸阳", "咸阳",
"延安", "延安",
"榆林", "榆林");
break;
case "四川" :
var cityOptions = new Array(
"成都(*)", "成都",
"巴中", "巴中",
"达安", "达安",
"德阳", "德阳",
"都江堰", "都江堰",
"峨眉山", "峨眉山",
"涪陵", "涪陵",
"广安", "广安",
"广元", "广元",
"九寨沟", "九寨沟",
"康定", "康定",
"乐山", "乐山",
"泸州", "泸州",
"马尔康", "马尔康",
"绵阳", "绵阳",
"南充", "南充",
"内江", "内江",
"攀枝花", "攀枝花",
"遂宁", "遂宁",
"汶川", "汶川",
"西昌", "西昌",
"雅安", "雅安",
"宜宾", "宜宾",
"自贡", "自贡");
break;
case "台湾" :
var cityOptions = new Array(
"台北(*)", "台北",
"基隆", "基隆",
"台南", "台南",
"台中", "台中");
break;
case "天津" :
var cityOptions = new Array(
"天津", "天津");
break;
case "新疆" :
var cityOptions = new Array(
"乌鲁木齐(*)", "乌鲁木齐",
"阿克苏", "阿克苏",
"阿勒泰", "阿勒泰",
"阿图什", "阿图什",
"博乐", "博乐",
"昌吉", "昌吉",
"东山", "东山",
"哈密", "哈密",
"和田", "和田",
"喀什", "喀什",
"克拉玛依", "克拉玛依",
"库车", "库车",
"库尔勒", "库尔勒",
"奎屯", "奎屯",
"石河子", "石河子",
"塔城", "塔城",
"吐鲁番", "吐鲁番",
"伊宁", "伊宁");
break;
case "西藏" :
var cityOptions = new Array(
"拉萨(*)", "拉萨",
"阿里", "阿里",
"昌都", "昌都",
"林芝", "林芝",
"那曲", "那曲",
"日喀则", "日喀则",
"山南", "山南");
break;
case "云南" :
var cityOptions = new Array(
"昆明(*)", "昆明",
"大理", "大理",
"保山", "保山",
"楚雄", "楚雄",
"大理", "大理",
"东川", "东川",
"个旧", "个旧",
"景洪", "景洪",
"开远", "开远",
"临沧", "临沧",
"丽江", "丽江",
"六库", "六库",
"潞西", "潞西",
"曲靖", "曲靖",
"思茅", "思茅",
"文山", "文山",
"西双版纳", "西双版纳",
"玉溪", "玉溪",
"中甸", "中甸",
"昭通", "昭通");
break;
case "浙江" :
var cityOptions = new Array(
"杭州(*)", "杭州",
"安吉", "安吉",
"慈溪", "慈溪",
"定海", "定海",
"奉化", "奉化",
"海盐", "海盐",
"黄岩", "黄岩",
"湖州", "湖州",
"嘉兴", "嘉兴",
"金华", "金华",
"临安", "临安",
"临海", "临海",
"丽水", "丽水",
"宁波", "宁波",
"瓯海", "瓯海",
"平湖", "平湖",
"千岛湖", "千岛湖",
"衢州", "衢州",
"瑞安", "瑞安",
"绍兴", "绍兴",
"嵊州", "嵊州",
"台州", "台州",
"温岭", "温岭",
"温州", "温州");
break;
}
document.form1.city.options.length = 0;
for(var i = 0; i cityOptions.length/2; i++) {
document.form1.city.options[i]=new Option(cityOptions[i*2],cityOptions[i*2+1]);
if (document.form1.city.options[i].value=="") document.form1.city.selectedIndex = i;
}
}
function initprovcity() {
for(var i = 0; i document.form1.prv.options.length; i++) {
if (document.form1.prv.options[i].value=="") document.form1.prv.selectedIndex = i;
}
setcity();
}
onload=initprovcity;
--
/SCRIPT
/select
关于javascript中select下拉列表的一些用法
这个非常麻烦,给你一个三级的例子,自己看吧,你不给我分都可以,只是想用你一下:
html
head
title网页特效|xrss.cn/Js|--- 三级下拉菜单 (通用版)/title
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
/head
body
SCRIPT LANGUAGE="JavaScript"
!--
function CreateSelect(_FormName,_SName,_SValue,_Ds,_AllOptionStr,ShowType)
{
//三级关链菜单通用版
//作者:海娃, 有问题请到留言。
if (_FormName=="")
_FormName = "all"
var _DsArr = _Ds.split("|")
var _Ds1,_Ds2,_Ds3
var _Ds1 = _DsArr[0]
var _Ds2 = (_DsArr.length1)?_DsArr[1]:_DsArr[0]
var _Ds3 = (_DsArr.length2)?_DsArr[2]:_DsArr[0]
var _SNameArr = _SName.split("|")
var _SName1,_SName2,_SName3
var _SName1 = _SNameArr[0]
var _SName2 = (_SNameArr.length1)?_SNameArr[1]:_SNameArr[0]
var _SName3 = (_SNameArr.length2)?_SNameArr[2]:_SNameArr[0]
var _SValueArr = _SValue.split("|")
var _SValue1,_SValue2,_SValue3
var _SValue1 = _SValueArr[0]
var _SValue2 = (_SValueArr.length1)?_SValueArr[1]:_SValueArr[0]
var _SValue3 = (_SValueArr.length2)?_SValueArr[2]:_SValueArr[0]
if (ShowType==3){
_AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^")
_AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*")
}
else if(ShowType==2){
_AllOptionStr = _AllOptionStr.replace(/\{\{/ig,"\{\{"+_Ds2+"\(\("+_Ds3+"\*\*")
}
else if(ShowType==1){
_AllOptionStr = _AllOptionStr.replace(/\(\(/ig,"\(\("+_Ds3+"\^")
}
var AllStr = _Ds1 + "{{"+ _Ds2 + "(("+ _Ds3 +"||"+_AllOptionStr
//alert(AllStr)
var _AR0 = AllStr.split("||");
document.writeln("select name=\"" + _SName1 + "\" size=\"1\" onChange=\""+_SName1+"redirect(this.options.selectedIndex)\"");
for (var i1 = 0;i1 _AR0.length;i1++)
{
var Area1Str = _AR0[i1];
var _AR10 = Area1Str.split("{{");
var _AR11 = _AR10[0].split("@");
var Tstr1 = _AR11[0];
var Vstr1 = (_AR11.length==2)?_AR11[1]:_AR11[0]
document.writeln("option value=\""+Vstr1+"\""+Tstr1+"\/option");
}
document.writeln("\/select");
document.writeln("select name=\"" + _SName2 + "\" size=\"1\" onChange=\""+_SName1+"redirect1(this.options.selectedIndex)\"");
var _AR111 = _Ds2.split("@");
var Tstr11 = _AR111[0];
var Vstr11 = (_AR111.length==2)?_AR111[1]:_AR111[0];
document.writeln("option value=\""+Vstr11+"\""+Tstr11+"\/option");
document.writeln("\/select");
document.writeln("select name=\"" + _SName3 + "\" size=\"1\"");
var _AR222 = _Ds3.split("@");
var Tstr22 = _AR222[0];
var Vstr22 = (_AR222.length==2)?_AR222[1]:_AR222[0];
document.writeln("option value=\""+Vstr22+"\""+Tstr22+"\/option");
document.writeln("\/select");
document.writeln("S"+"CRIPT LANGUAGE=\"JavaScript\" defer");
document.writeln("!--");
document.writeln("var "+_SName1+"NewAllStr = \""+ AllStr +"\"");
document.writeln("var "+_SName1+"_AR0 = "+_SName1+"NewAllStr.split(\"||\");");
document.writeln("var "+_SName1+"groups=document."+ _FormName +"." + _SName1 + ".options.length;");
document.writeln("var "+_SName1+"group=new Array("+_SName1+"groups)");
document.writeln("for (i=0; i"+_SName1+"groups; i++){");
document.writeln(" "+_SName1+"group[i]=new Array();");
document.writeln("}");
document.writeln("for (var i1 = 0;i1 "+_SName1+"_AR0.length;i1++){");
document.writeln(" var Area1Str = "+_SName1+"_AR0[i1];");
document.writeln(" var _AR10 = Area1Str.split(\"{{\");");
document.writeln(" var _AR12 = _AR10[1].split(\"**\");");
document.writeln(" for (var i2 = 0;i2 _AR12.length;i2++){");
document.writeln(" var Area2Str = _AR12[i2];");
document.writeln(" var _AR20 = Area2Str.split(\"((\");");
document.writeln(" var _AR211 = _AR20[0].split(\"@\");");
document.writeln(" var Tstr2 = _AR211[0];");
document.writeln(" var Vstr2 = (_AR211.length==2)?_AR211[1]:_AR211[0];");
document.writeln(" "+_SName1+"group[i1][i2]=new Option(Tstr2,Vstr2);");
document.writeln(" }");
document.writeln("}");
document.writeln("var "+_SName1+"temp = document."+ _FormName +"." + _SName2);
document.writeln("function "+_SName1+"redirect(x){");
document.writeln(" for (m="+_SName1+"temp.options.length-1;m0;m--)");
document.writeln(" "+_SName1+"temp.options[m]=null;");
document.writeln(" for (i=0;i"+_SName1+"group[x].length;i++){");
document.writeln(" "+_SName1+"temp.options[i]=new Option("+_SName1+"group[x][i].text,"+_SName1+"group[x][i].value);");
document.writeln(" }");
document.writeln(" "+_SName1+"temp.options[0].selected=true");
document.writeln(" "+_SName1+"redirect1(0)");
document.writeln("}");
document.writeln("var "+_SName1+"Group2s=document."+ _FormName +"." + _SName2 + ".options.length;");
document.writeln("var "+_SName1+"Group2=new Array("+_SName1+"groups);");
document.writeln("for (i=0; i"+_SName1+"groups; i++){");
document.writeln(" "+_SName1+"Group2[i]=new Array("+_SName1+"group[i].length)");
document.writeln(" for (j=0; j"+_SName1+"group[i].length; j++){");
document.writeln(" "+_SName1+"Group2[i][j]=new Array()");
document.writeln(" }");
document.writeln("}");
document.writeln("for (var i1 = 0;i1 "+_SName1+"_AR0.length;i1++){");
document.writeln(" var Area1Str = "+_SName1+"_AR0[i1]");
document.writeln(" var _AR10 = Area1Str.split(\"{{\");");
document.writeln(" var _AR12 = _AR10[1].split(\"**\");");
document.writeln(" for (var i2 = 0;i2 _AR12.length;i2++){");
document.writeln(" var Area2Str = _AR12[i2]");
document.writeln(" var _AR20 = Area2Str.split(\"((\");");
document.writeln(" _AR212 = _AR20[1].split(\"^\");");
document.writeln(" for (var i3 = 0;i3 _AR212.length;i3++){");
document.writeln(" Area3Str = _AR212[i3]");
document.writeln(" _AR3 = Area3Str.split(\"@\");");
document.writeln(" Tstr3 = _AR3[0]");
document.writeln(" Vstr3 = (_AR3.length==2)?_AR3[1]:_AR3[0]");
document.writeln(" "+_SName1+"Group2[i1][i2][i3]=new Option(Tstr3,Vstr3);");
document.writeln(" }");
document.writeln(" }");
document.writeln("}");
document.writeln("var "+_SName1+"temp1=document."+ _FormName +"." + _SName3 + "");
document.writeln("function "+_SName1+"redirect1(y){");
document.writeln(" for (m="+_SName1+"temp1.options.length-1;m0;m--)");
document.writeln(" "+_SName1+"temp1.options[m]=null");
document.writeln(" for (i=0;i"+_SName1+"Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y].length;i++){");
document.writeln(" "+_SName1+"temp1.options[i]=new Option("+_SName1+"Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y][i].text," + _SName1 + "Group2[document."+ _FormName +"." + _SName1 + ".options.selectedIndex][y][i].value)");
document.writeln(" }");
document.writeln(" "+_SName1+"temp1.options[0].selected=true");
document.writeln("}");
document.writeln("\/\/--");
document.writeln("\/script");
document.writeln("s"+"cript language=\"JavaScript\"");
document.writeln("!--");
document.writeln("function "+_SName1+"SetValue(){");
document.writeln(" try{");
document.writeln(" if (\""+_SValue1+"\"!=\"\"){");
document.writeln(" document."+ _FormName +"."+_SName1+".value=\""+_SValue1+"\"");
document.writeln(" "+_SName1+"redirect(document."+ _FormName +"."+_SName1+".options.selectedIndex);");
document.writeln(" if (\""+_SValue2+"\"!=\"\"){");
document.writeln(" document."+ _FormName +"."+_SName2+".value=\""+_SValue2+"\"");
document.writeln(" "+_SName1+"redirect1(document."+ _FormName +"."+_SName2+".options.selectedIndex)");
document.writeln(" if (\""+_SValue3+"\"!=\"\")");
document.writeln(" document."+ _FormName +"."+_SName3+".value=\""+_SValue3+"\"");
document.writeln(" }");
document.writeln(" }");
document.writeln(" }");
document.writeln(" catch(e){");
document.writeln(" }");
document.writeln("}");
document.writeln("window.attachEvent(\"onload\","+_SName1+"SetValue)");
document.writeln("\/\/--");
document.writeln("\/script");
}
//--
/script
SCRIPT LANGUAGE="JavaScript"
!--
var AllStr1 = ""
+"东北地区{{"
+"黑龙江((哈尔滨^齐齐哈尔^牡丹江^佳木斯^大庆^绥化^鹤岗^鸡西^黑河^双鸭山^伊春^七台河^大兴安岭"
+"**吉林((长春^吉林^四平^辽源^通化^白山^松原^白城^延边"
+"**辽宁((沈阳^大连^鞍山^抚顺^本溪^丹东^锦州^营口^阜新^辽阳^盘锦^铁岭^朝阳^葫芦岛"
+"||华北地区{{"
+"北京((东城^西城^崇文^宣武^朝阳^丰台^石景山^海淀^门头沟^房山^通州^顺义^昌平^大兴^平谷^怀柔^密云^延庆"
+"**天津((和平^东丽^河东^西青^河西^津南^南开^北辰^河北^武清^红挢^塘沽^汉沽^大港^宁河^静海^宝坻^蓟县"
+"**山东((济南^青岛^淄博^枣庄^东营^烟台^潍坊^济宁^泰安^威海^日照^莱芜^临沂^德州^聊城^滨州^菏泽"
+"**河北((石家庄^邯郸^邢台^保定^张家口^承德^廊坊^唐山^秦皇岛^沧州^衡水"
+"**河南((郑州^开封^洛阳^平顶山^安阳^鹤壁^新乡^焦作^濮阳^许昌^漯河^三门峡^南阳^商丘^信阳^周口^驻马店^济源"
+"**山西((太原^大同^阳泉^长治^晋城^朔州^吕梁^忻州^晋中^临汾^运城"
+"**内蒙古((呼和浩特^包头^乌海^赤峰^呼伦贝尔盟^阿拉善盟^哲里木盟^兴安盟^乌兰察布盟^锡林郭勒盟^巴彦淖尔盟^伊克昭盟"
+"||华中地区{{"
+"湖北((武汉^宜昌^荆州^襄樊^黄石^荆门^黄冈^十堰^恩施^潜江^天门^仙桃^随州^咸宁^孝感^鄂州"
+"**湖南((长沙^常德^株洲^湘潭^衡阳^岳阳^邵阳^益阳^娄底^怀化^郴州^永州^湘西^张家界"
+"||华南地区{{"
+"广东((广州^深圳^珠海^汕头^东莞^中山^佛山^韶关^江门^湛江^茂名^肇庆^惠州^梅州^汕尾^河源^阳江^清远^潮州^揭阳^云浮"
+"**广西((南宁^柳州^桂林^梧州^北海^防城港^钦州^贵港^玉林^南宁地区^柳州地区^贺州^百色^河池"
+"**福建((福州^厦门^莆田^三明^泉州^漳州^南平^龙岩^宁德"
+"**海南((海口^三亚"
+"||西南地区{{"
+"四川((成都^绵阳^德阳^自贡^攀枝花^广元^内江^乐山^南充^宜宾^广安^达川^雅安^眉山^甘孜^凉山^泸州"
+"**重庆((万州^涪陵^渝中^大渡口^江北^沙坪坝^九龙坡^南岸^北碚^万盛^双挢^渝北^巴南^黔江^长寿^綦江^潼南^铜梁^大足^荣昌^壁山^梁平^城口^丰都^垫江^武隆^忠县^开县^云阳^奉节^巫山^巫溪^石柱^秀山^酉阳^彭水^江津^合川^永川^南川"
+"**贵州((贵阳^六盘水^遵义^安顺^铜仁^黔西南^毕节^黔东南^黔南"
+"**云南((昆明^大理^曲靖^玉溪^昭通^楚雄^红河^文山^思茅^西双版纳^保山^德宏^丽江^怒江^迪庆^临沧"
+"**西藏((拉萨^日喀则^山南^林芝^昌都^阿里^那曲"
+"||西北地区{{"
+"陕西((西安^宝鸡^咸阳^铜川^渭南^延安^榆林^汉中^安康^商洛"
+"**甘肃((兰州^嘉峪关^金昌^白银^天水^酒泉^张掖^武威^定西^陇南^平凉^庆阳^临夏^甘南"
+"**宁夏((银川^石嘴山^吴忠^固原"
+"**青海((西宁^海东^海南^海北^黄南^玉树^果洛^海西"
+"**新疆((乌鲁木齐^石河子^克拉玛依^伊犁^巴音郭勒^昌吉^克孜勒苏柯尔克孜^博尔塔拉^吐鲁番^哈密^喀什^和田^阿克苏"
+"||华东地区{{"
+"上海((黄浦^卢湾^徐汇^长宁^静安^普陀^闸北^虹口^杨浦^闵行^宝山^嘉定^浦东^金山^松江^青浦^南汇^奉贤^崇明"
+"**江苏((南京^镇江^苏州^南通^扬州^盐城^徐州^连云港^常州^无锡^宿迁^泰州^淮安"
+"**浙江((杭州^宁波^温州^嘉兴^湖州^绍兴^金华^衢州^舟山^台州^丽水"
+"**安徽((合肥^芜湖^蚌埠^马鞍山^淮北^铜陵^安庆^黄山^滁州^宿州^池州^淮南^巢湖^阜阳^六安^宣城^亳州"
+"**江西((南昌市^景德镇^九江^鹰潭^萍乡^新馀^赣州^吉安^宜春^抚州^上饶"
+"||港澳台地区{{"
+"香港((香港"
+"**澳门((澳门"
+"**台湾((台北^高雄^台中^台南^屏东^南投^云林^新竹^彰化^苗栗^嘉义^花莲^桃园^宜兰^基隆^台东^金门^马祖^澎湖"
+"||其它地区{{"
+"其它((其它"
//--
/SCRIPT
FORM name="HwForm"
HR选择一次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("","S_13|S_23|S_33","","请选择地区@|请选择省份@|请选择城市@",AllStr1,0);
/SCRIPT
HR选择三次br
SCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_1|S_2|S_3","华北地区|山东|济宁","请选择地区@|请选择省份@|请选择城市@",AllStr1,3);
/SCRIPT
SCRIPT LANGUAGE="JavaScript"
!--
var AllStr2 = ""
+"笔记本{{"
+"IBM((R32^T40^T42"
+"**DELL((N600^M600"
+"||数码相机{{"
+"CANON((A75^A80^A85"
+"**SONY((S80^S60"
//--
/SCRIPT
HR选择二次brSCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_11|S_21|S_31","笔记本|IBM|T42","请选择分类@|请选择品牌@|请选择系列@",AllStr2,2);
/SCRIPT
HR选择二次brSCRIPT LANGUAGE="JavaScript"
CreateSelect("HwForm","S_12|S_22|S_32","","请选择分类@|请选择品牌@|请选择系列@",AllStr2,1);
/SCRIPT
/FORM
/body
/html
谁知道国家选省份的javascript脚本,给个例子地址也可以。谢谢大家了!
这个是我国的各省的城市选择网页,你可以按自己的要求进行一些改动.
html
head
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
title省份选城市/title
style type="text/css"
!--
form{margin:0;padding:0;}
img{border:0;}
body,select,input,td{ font-family:宋体,Arial; font-size: 12px; font-family: Arial; margin-top: 2px;}
#hd{clear:both;width:700px;margin:0 auto;margin-bottom:.5em;padding:.5em 0 0 0;}
.rlcon a{text-decoration:none;margin-left:.3em;}
.mcon,.lpanel,.panel{text-align:left;}
.lg{float:left;width:185px;padding:.5em 0;}
.rl{float:right;width:100%;margin:0 0 0 -30em;}
.rlcon{text-align:right;height:32px;margin:0 0 0 190px;color:#b8b8b8;border-bottom:1px solid #b5b5b5;overflow:hidden;line-height:45px;}
#lcon{float:left;width:180px;}
#mcon{float:right;width:100%;margin:0 0 0 -20em;}
.mcon{margin:0 0 0 190px;width:570px;}
.xb{border-top:1px solid transparent !important;border-top:0;clear:both;}
#footer {margin:0 auto;width:740px;text-align:center;font-size:12px;height:30px;line-height:30px;border-top:1px solid #666;}
table{clear:both;text-align:left;}
#tip{clear:both;margin:0 auto;width:500px;background-color:#ffffe1;border:1px solid #ACA899;padding:1em;margin:1em;text-align:left;color:#ff0000;}
#tip #cancel{float:right;}
#tip ul{display:block;margin:0;padding:0;list-style-type:none;}
#tip ul li{float:left;width:220px;line-height:1.5em;background-color:#ffffe1;}
#hidenbox{border-top:1px solid transparent !important;border-top:0;clear:both;}
.bnt14{font-size:13px;font-family:宋体,Arial;line-height:18px;height:25px;}
--
/style
/head
html
body
center
form name="personalorder" action="preferences" method="POST"
div id="hd"
TABLE height=20 cellSpacing=0 cellPadding=0 width=714 align=center
border=0
TBODY
TR
TD height="60" vAlign=center DIV class=s5 align=center选择省市:
select name="prov" onchange="setInd(this)"
option value=0不预定/optionoption value=8610北京/optionoption value=8621上海/optionoption value=8622天津/optionoption value=8623重庆/optionoption value=86311河北/optionoption value=8625江苏/optionoption value=86571浙江/optionoption value=8620广东/optionoption value=86351山西/optionoption value=8624辽宁/optionoption value=86431吉林/optionoption value=86451黑龙江/optionoption value=86551安徽/optionoption value=86591福建/optionoption value=86791江西/optionoption value=86531山东/optionoption value=86371河南/optionoption value=8627湖北/optionoption value=86731 selected湖南/optionoption value=8628四川/optionoption value=86851贵州/optionoption value=86871云南/optionoption value=8629陕西/optionoption value=86931甘肃/optionoption value=86971青海/optionoption value=86471内蒙古/optionoption value=86771广西/optionoption value=86898海南/optionoption value=86891西藏/optionoption value=86951宁夏/optionoption value=86991新疆/optionoption value=88610台湾/optionoption value=85210香港/optionoption value=85310澳门/option/SELECT
选择城市:
SELECT name=locid
OPTION value=86731731长沙/OPTIONOPTION value=86731730岳阳/OPTIONOPTION value=86731732湘潭/OPTIONOPTION value=86731733株洲/OPTIONOPTION value=86731734衡阳/OPTIONOPTION value=86731735郴州/OPTIONOPTION value=86731736常德/OPTIONOPTION value=86731737益阳/OPTIONOPTION value=86731738娄底/OPTIONOPTION value=86731739邵阳/OPTIONOPTION value=86731743 selected吉首/OPTIONOPTION value=86731745怀化/OPTIONOPTION value=86731746永州/OPTION
/SELECT
/DIV
script
function cls_inpt(){
var _inpt=document.getElementsByTagName("input");
for(var i=0;i_inpt.length;i++){
if(_inpt[i].name.indexOf('stockid')=0 ||_inpt[i].name.indexOf('showname')=0 ||_inpt[i].name.indexOf('stockname')=0){
_inpt[i].value='';
}
}
return false;
}
cityarray0 = new Array(
"0;不预定");
cityarray8610 = new Array(
"861010;北京");
cityarray8621 = new Array(
"862121;上海");
cityarray8622 = new Array(
"862222;天津");
cityarray8623 = new Array(
"862323;重庆",
"86232314;万州",
"8623810;涪陵");
cityarray86311 = new Array(
"86311311;石家庄",
"86311310;邯郸",
"86311312;保定",
"86311313;张家口",
"86311314;承德",
"86311315;唐山",
"86311316;廊坊",
"86311317;沧州",
"86311318;衡水",
"86311319;邢台",
"86311335;秦皇岛");
cityarray8625 = new Array(
"862525;南京",
"8625510;无锡",
"8625511;镇江",
"8625512;苏州",
"8625513;南通",
"8625514;扬州",
"8625515;盐城",
"8625516;徐州",
"8625517;淮安",
"862551701;淮阴",
"8625518;连云港",
"8625519;常州",
"8625523;泰州",
"8625527;宿迁");
cityarray86571 = new Array(
"86571571;杭州",
"86571570;衢州",
"86571572;湖州",
"86571573;嘉兴",
"86571574;宁波",
"86571575;绍兴",
"86571576;台州",
"86571577;温州",
"86571578;丽水",
"86571579;金华",
"86571580;舟山");
cityarray8620 = new Array(
"862020;广州",
"8620660;汕尾",
"8620662;阳江",
"8620663;揭阳",
"8620668;茂名",
"8620750;江门",
"8620751;韶关",
"8620752;惠州",
"8620753;梅州",
"8620754;汕头",
"8620755;深圳",
"8620756;珠海",
"8620757;佛山",
"8620758;肇庆",
"8620759;湛江",
"8620760;中山",
"8620762;河源",
"8620763;清远",
"8620766;云浮",
"8620768;潮州",
"8620769;东莞");
cityarray86351 = new Array(
"86351351;太原",
"86351349;朔州",
"86351350;忻州",
"86351352;大同",
"86351353;阳泉",
"86351354;榆次",
"86351355;长治",
"86351356;晋城",
"86351357;临汾",
"86351358;吕梁",
"86351359;运城");
cityarray8624 = new Array(
"862424;沈阳",
"8624410;铁岭",
"8624411;大连",
"8624412;鞍山",
"8624413;抚顺",
"8624414;本溪",
"8624415;丹东",
"8624416;锦州",
"8624417;营口",
"8624418;阜新",
"1378819;辽阳",
"8624421;朝阳",
"8624427;盘锦",
"8624429;葫芦岛");
cityarray86431 = new Array(
"86431431;长春",
"86431432;吉林",
"86431434;四平",
"86431435;通化",
"86431436;白城",
"86431437;辽源",
"86431438;松原",
"86431439;白山");
cityarray86451 = new Array(
"86451451;哈尔滨",
"86451452;齐齐哈尔",
"86451453;牡丹江",
"86451454;佳木斯",
"86451455;绥化",
"86451456;黑河",
"86451458;伊春",
"86451459;大庆",
"86451464;七台河",
"86451467;鸡西",
"86451468;鹤岗",
"86451469;双鸭山",
"86451470;大兴安岭");
cityarray86551 = new Array(
"86551551;合肥",
"86551550;滁州",
"86551552;蚌埠",
"86551553;芜湖",
"86551554;淮南",
"86551555;马鞍山",
"86551556;安庆",
"86551557;宿州",
"86551558;阜阳",
"8655155801;亳州",
"86551559;黄山",
"86551561;淮北",
"86551562;铜陵",
"86551563;宣城",
"86551564;六安",
"86551565;巢湖",
"86551566;池州");
cityarray86591 = new Array(
"86591591;福州",
"86591592;厦门",
"86591593;宁德",
"86591594;莆田",
"86591595;泉州",
"86591596;漳州",
"86591597;龙岩",
"86591598;三明",
"86591599;南平");
cityarray86791 = new Array(
"86791791;南昌",
"86791701;鹰潭",
"86791790;新余",
"86791792;九江",
"86791793;上饶",
"86791794;抚州",
"86791795;宜春",
"86791796;吉安",
"86791797;赣州",
"86791798;景德镇",
"86791799;萍乡");
cityarray86531 = new Array(
"86531531;济南",
"86531530;菏泽",
"86531532;青岛",
"86531533;淄博",
"86531534;德州",
"86531535;烟台",
"86531536;潍坊",
"86531537;济宁",
"86531539;临沂",
"86531543;滨州",
"86531546;东营",
"86531631;威海",
"86531632;枣庄",
"86531633;日照",
"86531634;莱芜",
"86531635;聊城");
cityarray86371 = new Array(
"86371371;郑州",
"86371370;商丘",
"86371372;安阳",
"86371373;新乡",
"86371374;许昌",
"86371375;平顶山",
"86371376;信阳",
"86371377;南阳",
"86371378;开封",
"86371379;洛阳",
"86371391;焦作",
"86371392;鹤壁",
"86371393;濮阳",
"86371394;周口",
"86371395;漯河",
"86371396;驻马店",
"86371398;三门峡");
cityarray8627 = new Array(
"862727;武汉",
"8627710;襄樊",
"8627711;鄂州",
"8627712;孝感",
"8627713;黄冈",
"8627714;黄石",
"8627715;咸宁",
"8627716;荆州",
"8627717;宜昌",
"8627718;恩施",
"8627719;十堰",
"8627722;随州",
"8627724;荆门");
cityarray86731 = new Array(
"86731731;长沙",
"86731730;岳阳",
"86731732;湘潭",
"86731733;株洲",
"86731734;衡阳",
"86731735;郴州",
"86731736;常德",
"86731737;益阳",
"86731738;娄底",
"86731739;邵阳",
"86731743;吉首",
"86731745;怀化",
"86731746;永州");
cityarray8628 = new Array(
"862828;成都",
"8628812;攀枝花",
"8628813;自贡",
"8628816;绵阳",
"8628817;南充",
"8628818;达州",
"8628825;遂宁",
"8628826;广安",
"8628827;巴中",
"8628830;泸州",
"8628831;宜宾",
"8628832;资阳",
"862883201;内江",
"8628833;乐山",
"862883301;眉山",
"862883401;凉山",
"8628835;雅安",
"862883701;阿坝",
"8628838;德阳",
"8628839;广元");
cityarray86851 = new Array(
"86851851;贵阳",
"86851852;遵义",
"86851853;安顺",
"86851854;都匀",
"86851855;凯里",
"86851856;铜仁",
"86851857;毕节",
"86851858;六盘水",
"86851859;兴义");
cityarray86871 = new Array(
"86871871;昆明",
"86871691;西双版纳",
"86871692;德宏",
"86871870;昭通",
"86871872;大理",
"8687187303;红河",
"86871874;曲靖",
"86871875;保山",
"86871876;文山",
"86871877;玉溪",
"86871878;楚雄",
"86871879;思茅",
"86871883;临沧",
"8687188601;怒江",
"8687188701;迪庆",
"86871888;丽江");
cityarray8629 = new Array(
"862929;西安",
"8629910;咸阳",
"8629911;延安",
"8629912;榆林",
"8629913;渭南",
"8629914;商洛",
"8629915;安康",
"8629916;汉中",
"8629917;宝鸡",
"8629919;铜川");
cityarray86931 = new Array(
"86931931;兰州",
"86931930;临夏",
"86931932;定西",
"86931933;平凉",
"86931934;庆阳",
"86931935;金昌",
"8693193501;武威",
"86931936;张掖",
"86931937;酒泉",
"8693193701;嘉峪关",
"86931938;天水",
"86931939;陇南",
"86931941;甘南",
"86931943;白银");
cityarray86971 = new Array(
"86971971;西宁",
"8697197001;海北",
"86971972;海东",
"8697197501;果洛",
"8697197301;黄南",
"86971976;玉树",
"86971979;格尔木",
"8697197901;海西");
cityarray86471 = new Array(
"86471471;呼和浩特",
"86471470;海拉尔",
"86471472;包头",
"86471473;乌海",
"86471474;集宁",
"86471475;通辽",
"86471476;赤峰",
"86471478;临河",
"86471479;锡林浩特",
"86471482;乌兰浩特",
"86471483;巴彦浩特",
"86471484;鄂尔多斯");
cityarray86771 = new Array(
"86771771;南宁",
"86771770;防城港",
"8677177101;崇左",
"86771772;柳州",
"8677177201;来宾",
"86771773;桂林",
"86771774;梧州",
"8677177401;贺州",
"86771775;玉林",
"8677177501;贵港",
"86771776,;百色",
"86771777,;钦州",
"86771778,;河池",
"86771779,;北海");
cityarray86898 = new Array(
"86898898;海口",
"86898899;三亚",
"8689889901;西沙群岛");
cityarray86891 = new Array(
"86891891;拉萨",
"86891892;日喀则",
"86891893;山南",
"86891894;林芝",
"86891895;昌都",
"86891896;那曲",
"86891897;阿里");
cityarray86951 = new Array(
"86951951;银川",
"86951952;石嘴山",
"86951953;吴忠",
"86951954;固原");
cityarray86991 = new Array(
"86991991;乌鲁木齐",
"86991901;塔城",
"86991902;哈密",
"86991903;和田",
"86991906;阿勒泰",
"8699190801;克州",
"86991909;博乐",
"86991990;克拉玛依",
"86991993;石河子",
"86991994;昌吉",
"86991995;吐鲁番",
"86991996;库尔勒",
"86991997;阿克苏",
"86991998;喀什",
"86991999;伊犁");
cityarray88610 = new Array(
"8861010;台北");
cityarray85210 = new Array(
"8521010;香港");
cityarray85310 = new Array(
"8531010;澳门");
function getCitiesFromProvinceID(provinceid) {
if (provinceid == 0) return cityarray0;
if (provinceid == 8610) return cityarray8610;
if (provinceid == 8621) return cityarray8621;
if (provinceid == 8622) return cityarray8622;
if (provinceid == 8623) return cityarray8623;
if (provinceid == 86311) return cityarray86311;
if (provinceid == 8625) return cityarray8625;
if (provinceid == 86571) return cityarray86571;
if (provinceid == 8620) return cityarray8620;
if (provinceid == 86351) return cityarray86351;
if (provinceid == 8624) return cityarray8624;
if (provinceid == 86431) return cityarray86431;
if (provinceid == 86451) return cityarray86451;
if (provinceid == 86551) return cityarray86551;
if (provinceid == 86591) return cityarray86591;
if (provinceid == 86791) return cityarray86791;
if (provinceid == 86531) return cityarray86531;
if (provinceid == 86371) return cityarray86371;
if (provinceid == 8627) return cityarray8627;
if (provinceid == 86731) return cityarray86731;
if (provinceid == 8628) return cityarray8628;
if (provinceid == 86851) return cityarray86851;
if (provinceid == 86871) return cityarray86871;
if (provinceid == 8629) return cityarray8629;
if (provinceid == 86931) return cityarray86931;
if (provinceid == 86971) return cityarray86971;
if (provinceid == 86471) return cityarray86471;
if (provinceid == 86771) return cityarray86771;
if (provinceid == 86898) return cityarray86898;
if (provinceid == 86891) return cityarray86891;
if (provinceid == 86951) return cityarray86951;
if (provinceid == 86991) return cityarray86991;
if (provinceid == 88610) return cityarray88610;
if (provinceid == 85210) return cityarray85210;
if (provinceid == 85310) return cityarray85310;
return new Array();
}
function fillInCities(provinceid) {
document.forms['personalorder']['locid'].length = 0;
var arr = getCitiesFromProvinceID(provinceid);
var cnt = 0;
var isSelected = false;
for(var n=0; narr.length; n++){
newOpt=new Option;
i = arr[n].search(';');
newOpt.text=arr[n].slice(i+1);
newOpt.value=arr[n].slice(0,i);
if (!isSelected){
//newOpt.selected = true;
isSelected = true;
}
document.forms['personalorder']['locid'].options[cnt]=newOpt;
cnt=cnt+1;
}
}
function GetSelectedText(box){
var boxText = '';
for(var i=0; ibox.options.length; i++){
if(box.options[i].selected box.options[i].value != ''){
boxText = box.options[i].value;
}
}
return boxText;
}
function setInd(box) {
ind = GetSelectedText(box);
if(ind != ''){
fillInCities(ind);
}
//alert(ind);
}
/script
/TD
/TR
/TBODY
/TABLE
/body
/html
东营东方金字塔学校怎么样
总体说是不错的, 下面有点答非所问, 但相信对你帮助很大
希望有帮助^^
北京东方金字塔潜能培训学校(西安)
陕西省西安市雁塔西斜七路1号楼市体育场院内
如何才能在学习上坚持不懈?
"兴趣是最好的老师"!假如没了她,那花的时间和精力是多大,你应该想的到。
所以你应该有努力的冲动,你为了什么而学习,即你的学习方向是什么?仅仅是为了这是一种义务去学吗?例如我喜欢文科,而不喜欢数学,所以我很难把数学学好.那问题是我没有学习的天赋吗?可想而知,我是因为兴趣.但兴趣是死的吗?NO,爱好都可以变,何况是兴趣.我为了改变我的兴趣,我把自己的过去总结了,要发展兴趣,我试着自己去做一个几何难题,我花时间让自己终于把自己认为不可能做出来的题竟然解决了,那钟成功感简直比中彩票更快活,从此,我发现自己是有能力做好的,成功感越多,兴趣就越多。
兴趣是要自己去找的,是要自己不段积累的,让自己去做挖金的人,而不要让自己守株待兔,找兴趣就似找乐,那又何乐而不为呢?!
想让自己提高,就给自己一点时间,让自己不段的积累,而不至于把她抛弃.
学习兴趣是慢慢培养出来的,不要把学习当作负担,把它当作你的朋友,也许有时候朋友会发脾气,你要耐心的对待它。学习兴趣是学习与兴趣密不可分的,你要从兴趣入手来看待学习,慢慢就会有所提高。
学习方法
掌握科学的学习方法一:学习要有明确的目的、目标
无论做什么事都要有明确的目的,学习尤其如此。目的越明确,学习积极性就越高;目标越宏伟,为实现目标所付出的努力就越多,学习意志就越坚强。目标有大目标,小目标,有远期的,也有近期的,小到一节课,大到一生的志向都属于此范畴。小目标要从属于大目标,近期目标要为远期目标做铺垫。确定学习目标要根据一个人的具体情况而定,不能太低,也不能太高。太低不利于意志的培养,太高不仅不利于目标的实现,学习积极性也会受到打击。
掌握科学的学习方法二:掌握科学的记忆方法
记忆是学习中最重要的学习手段。首先要有来年搞好的记忆习惯。不论是哪门学科都有背诵的任务,要求背诵的必须背诵,以形成习惯。再就是根据遗忘规律去记忆,即即使的重现,勤复习、多复习。当天的内容当天复习,本周的功课周复习,一月还有小复习,考前再做总复习,这样学习才记忆牢固,才能取得最佳学习效果。
掌握科学的学习方法三 抓好学习环节的关键
学习可分为四个主要环节:预习、听课、复习、作业。每个环节都有其特点,也有其关键。
预习:预习要养成习惯,习惯很重要,既然是习惯决不能三天打鱼两天晒网。预习的时间要根据实际情况而定,可以在学习曰挤时间,也可以在周末,还可以在节假曰。预习要找难点,找难点的目的是就是要攻破它,这是预习的关键。这能证明一个人的能力,同时也能培养一个人的能力,更会磨练一个人的意志。
听课:听课是学习时最重要的环节,会听课意味着会抓重点,能理解老师的意图。
复习:复习要摸规律,复习的目的是把学习内容进一步巩固、掌握,以便摸清其内在规律,在运用中举一反三。
作业:作业要独立完成,典型的内容要反复练习,这样才能形成技能技巧。
掌握科学的学习方法四:及时做好笔记与作业
记性好不如烂比头。记笔记是一种良好的听课习惯,好笔记不是全记,不是漏记,不能只听不记,更不能只记不听。可以记在课本上、教学内容附近,这样记录的内容不易丢失,又易和教学内容相联系,既实用,又利于今后复习。布置作业的目的是巩固学习的知识。多数学生为了完成任务,不复习就急于做作业,这不利于知识的巩固。做作业前首先阅读一遍课本内容,和老师讲课的内容对照一下,看一看是否一致。这样做等于及时地复习了一遍,3然后再做作业,既快速又能保证作业质量,达到最佳的学习效果。
掌握科学的学习方法五:交叉学习效果好
不少同学在读书学习时,长时间单一的学习同一内容,表面上看时间用了不少,但效果并不理想,这是为什么呢?
脑卫生学者告诉我们,人的大脑皮层细胞是有分工的,学习不同学科的内容回引起不同部分的兴奋。大脑长久接受同一类信息刺激,使某一部位长久兴奋,就容易产生疲劳,降低学习效率。若及时转换学习内容,合理调节“兴奋灶”,就可以避免大脑某一兴奋区长时间过于紧张,使别的部位出现新的兴奋区。
马克思的“穿插读书法”是:当阅读理论书籍感到疲倦时,立刻把书搁下,去读一种不同的书籍,有时读诗,有时读小说。过一会儿,疲倦的大脑得到休息,便又重新研究起理论书籍来。马克思的读书方法符合生理科学。
在读书求知时,为了充分利用时间,可交叉阅读内容差别较大的不同书籍。在学习内容的安排上要注意各门学科交替进行,特别是文理交替。学完语文做物理,读完政治写数学……学习之余,若做一些文体活动,或干点家务活,句可以使大脑原有的兴奋区得到调节。这样,既能缓解疲劳,又能开阔知识视野,从而延长连续阅读的时间,提高学习效率。
中学生学习时多接见交叉学习的方法,科学运筹时间,情绪饱满地投入学习,以取得学习的更大效益。
掌握科学的学习方法六:课堂笔记整理“七步法”
由于种种原因,同学们在课堂上所做的笔记,往往较杂乱,可后觉得不好用。为了巩固学习效果,积累复习资料,指导读写训练,有必要学会整理课堂笔记,使之成为清晰、有条理、好用的“导读助练”的参考材料。
对课堂笔记进行整理、加工,其方法有“七”:
一.忆。“趁热打铁”,即课后抓紧时间,对照书本、笔记,及时回忆有关信息。这是整理笔记的重要前提,为笔记提供“可整性。”
二.补。课堂上所做的笔记为的是要跟着老师讲课的速度进行的,一般的讲课速度要较记录速度快,于是笔记就会出现缺漏、条约、省略、简单甚至符号代替文字等情况。在“忆”的基础上,及时作修补,使笔记有“完整性”。
三.改。仔细审阅笔记,对错字、错句及其他不够准确的地方进行修改。其中,特别要注意与解答课后练习,与学习目的有关的内容的修改,使笔记有“准确性”。
四.编。用统一的序号,对笔记内容进行提纲式的、逻辑性的排列,注明号码,梳理好整理笔记的先后顺序,使笔记有“条理性”。
五.分。以文字(最好是用红笔)或符号、代号等划分笔记内容的类别。例如,哪些是字词类,哪些是作家与作品类,哪些作品(课文)是分析类,哪些是问题置疑、探讨类,哪些是课后联系解答等等。为分类摘抄做好准备,使笔记有“系统性”。
六.舍。省略无关紧要的笔记内容,使笔记有“简明性”。
七.记。分类抄录经过整理的笔记。同类的知识,抄在同一本簿,或一本簿的同一部分里,也可以用卡片分类抄录。这样,曰后复习,使用就方便了,按需所取,纲目清晰,快捷好用,使笔记有“资料性”。
语文学习应养成的习惯
1.熟读、背诵课文、美文的习惯。
2.阅读优秀课外作品,鉴赏、评析、写笔记的习惯。
3.推敲语言文字,积累语言材料的习惯。
4.写曰记、积累写作素材的习惯。
5.规范书写,文面整洁美观的习惯。
6.听、看时事,说、写评论的习惯。
7.说普通话,讲述事理有见解、有条理的习惯。
8.勤查工具书的习惯。
作文的要求
1.内容务实
触景生情,有感而发,或为时而著、或为事而作,做到“情真意随”。
2.选材求真
“我以我手写我心,我以我心吐真情”,充分表达对生活的理解。
3.构思求巧
独立运作,突破思维定势,一扫“人云亦云”的“鹦鹉学舌”。
4.立意求深
“仁者见仁,智者见智”,充分发觉生活本质。
5.语言求优
努力寻求最佳表达,尽显才华。
怎样培养自己良好的阅读习惯
良好的阅读习惯,对于提高阅读的自觉性,发展阅读能力,增进阅读的理解和速度,提高学习成绩,都有好处。那么,怎样培养自己的良好的阅读习惯呢?
一.制定阅读计划
“凡事情预则立,不预则废。”阅读应有计划,这个计划包括时间、内容、要求,实现计划的措施。计划的形式不拘,但要切实可行。
二.读、写、用相结合
阅读后,要把新学的知识和技巧用于实际。写,也是一种运用。写心得、记笔记、写短评,最后达到用。读书是学习,使用也是学习,而且是很重要的学习。
三.虚心求教
在遇到通过运用工具书,查资料都不能解决的问题时,要虚心向老师、同学求教。“三人行,必有我师焉”,“择其善者而从之,其不善者而改之”。
四.勤于自学
古人云:“业精于勤,荒于嬉”“学问勤中得”,这些名言都是说学习要勤。阅读要靠自己努力,自己能办的无比办到,不可等老师教,也不可依赖工具书。要有自觉地学习行动,变“要我学”为“我要学”,多发挥自己的主观能动性。
五.阅读时要“心到”
宋代的朱熹说过:“读书应三到,谓心到、眼到、口到。心不在此,则眼看不仔细,心眼既不专一,却只漫浪诵读,决不能记,记亦不能久也。”再加上一到,就是手到,要手勤,要摘抄原句或做上记号,进而在写读书笔记时将句子用到自己的文章中。四到当中,心到手到最为重要。
六.阅读时应多动脑
要根据自己的能力,对读物多动脑分析、比较,进而去吟咏、体会。鲁迅先生主张读书要认真思考、观察。他说:读书要“自己思索、自己观察。倘只看书,便变成书橱。”他还指出读书要先了解一下书的内容结构,而后思考是什么、为什么、怎么样。
同学们应在读书实践中不断总结,找到适合自己的阅读方法,养成习惯,受益终生。
当前题目:东营javascript,东营市
本文链接:http://azwzsj.com/article/dsscgdi.html