한국어
<!--<body> 영역에 다음 코드 추가--> <script 언어="javascript"> function aClass(aData, aValue, aText) { if (aClass.arguments.length < 3) Alert("Incoming Wrong 매개변수! ") else { this.Data = aData; this.Value = aValue; this.Text = aText; } } function chgDnCombobox(aSrc, aDes, aClass, aRemain){ if (chgDnCombobox.arguments.length < 3) 경고( "전달된 매개변수가 잘못되었습니다!") else if (aSrc.type != "select-one") Alert("전달된 매개변수가 잘못되었습니다!") else if (aClass == null) Alert("aClass가 아닙니다. 정의된 오류 !") else { if (aRemain==null) aRemain = 1; chgDnComboboxItem(aSrc.options[aSrc.selectedIndex].value, aDes, aClass, aRemain); } } function chgDnComboboxItem(aValue, aDes, aClass, aRemain ){ if (chgDnComboboxItem.arguments.length<3) Alert("매개변수 전달 중 오류가 발생했습니다!") else if (aClass==null) Alert("오류! aClass가 정의되지 않았습니다!") else{ if (aRemain==null ) aRemain = 1; deleteAllComboboxItem(aDes, aRemain); for (var i=0; i<aClass.length; i++) if (aClass[i].Data==aValue) /* aClass[i].Data 확인 */ if (aClass [i].Data!="") addComboboxItem(aDes, aClass[i].Text, aClass[i].Value) } } function deleteAllComboboxItem(aList, aRemain) { for (var i=aList.options .length; i > aRemain-1; i--) aList.options[i] = null; } function addComboboxItem(aList, aText, aValue) { var aOption = new Option(aText, aValue); [aList.options.length]=aOption"); } </script> <table width="300" border="0" cellpacing="0" cellpadding="5"> <tr> <form name="myform" onSubmit=" return noerror(myform)" method="post" action="youraction_script"><td height="16" valign="top" bgcolor="#CCCC99"> <div align="center"><span 클래스 ="title ">디스플레이:</span> <select name="CountryGroup" size=1 onChange='change_area(document.myform)'> <option value="domestic">국내</option> <option value=" foreign"> 해외</option> </select> <select name="City" size=1> <option value="Beijing">베이징</option> <option value="광동">광동</option> < 옵션 값 = "광시">광시</option> <옵션 값="상하이">상하이</option> <옵션 값="복건">복건</option> <옵션 값="천진">천진</option > <option value="후난">후난</option> <옵션 값="후베이">후베이</option> <옵션 값="절강">절강</option> <옵션 값="허베이">허베이< /option> <option value="Shandong">Shandong</option> <option value="Sichuan">Sichuan</option> <option value="Anhui">안후이</option> <option value="랴오닝"> 랴오닝</ 옵션> <옵션 값="장쑤">장쑤</옵션> <옵션 값="간쑤">간쑤</옵션> <옵션 값="칭하이">칭하이</option> <옵션 값="장시 ">장시성</option> <option value="닝샤">닝샤</option> <option value="산시">산시</option> <옵션 값="운남">운남</option> <옵션 값= "길림" >길림</option> <옵션 값="허난">허난</option> <옵션 값="산시">산시</option> <옵션 값="흑룡강">흑룡강</option> <옵션 value=" 구이저우">귀저우</option> <옵션 value="하이난">하이난</option> <옵션 value="신장">신장</option> <옵션 value="내몽골">내몽고</option option> <option value ="티베트">티베트</option> <option value="홍콩">홍콩</option> <option value="대만">대만</option> </select> </div > </td></ form></tr></table> <script 언어="javascript"> function onchg(aForm) { onchg(document.myform);} var f_Set0 = new Array(new aClass('domestic) ', '베이징', '베이징'), new aClass('국내', '광동', '광동'), new aClass('국내', '광시', '광시'), new aClass('국내', '상하이', '상하이' ), new aClass('국내', '푸젠', '푸젠'), new aClass('국내', '천진', '천진'), new aClass('국내', '후난') ', '후난'), new aClass('국내', '후베이', '후베이'), new aClass('국내', '절강', '절강'), new aClass('국내', '허베이', '허베이'), new aClass('국내', '산둥', '산둥'), new aClass('국내', '쓰촨', '쓰촨'), new aClass('국내', '안후이', '안후이 '), new aClass('국내', '랴오닝', '랴오닝'), new aClass('국내', '장쑤', '장쑤'), new aClass('국내', '간쑤', '허베이') , new aClass('국내' , '칭하이', '산둥'), new aClass('국내', '장시', '장시'), new aClass('국내', '닝샤', '닝샤'), new aClass('국내', ' 산시', '산시'), new aClass('국내', '장시', '장시'), new aClass('국내', '운남', '운남'), new aClass( '국내', '지린' , '지린'), new aClass('국내', '허난', '허난'), new aClass('국내', '산시', '산시'), new aClass('국내 ', '흑룡강', '흑룡강'), new aClass('국내', '귀주', '귀주'), new aClass('국내', '하이난', '하이난'), new aClass('국내', 'Xinjiang', 'Xinjiang' ), new aClass('국내', '내몽골', '내몽골'), new aClass('국내', '티베트', '티베트'), new aClass('국내', '홍콩', '홍콩'), new aClass('국내', '대만', '대만'), new aClass('외국', '미국', '미국'), new aClass('외국인 ', '일본', '일본'), new aClass ('외국', '영국', '영국'), new aClass('외국', '프랑스', '프랑스'), new aClass('외국', '이탈리아', '이탈리아'), new aClass(' 외국', '독일', '독일'), new aClass("End", "End", "End")) functionchange_area(aForm) { chgDnCombobox( aForm.CountryGroup, aForm.City, f_Set0, 0) } </script>