JavaScript 등급 연결 국가 지역

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <script type="text/javascript">		

		function changeChau(theChau){
			var theCountrys;
			var ifRealCountry=true;
			if(theChau==1){/*     、   */
				theCountrys=["  ","  ","  ","  ","  ","   ","   ","   ","    ","     ","  ","  ","  ","   ","   ","   ","    ","     ","  ","  ","  ","   ","   ","    ","    ","     ","  ","  ","  ","   ","   ","    ","    ","     ","  ","  ","  ","   ","   ","    ","    ","      ","  ","  ","  ","   ","   ","    ","    ","      "];				
			}
			else if(theChau==2){/*     、   */
				theCountrys=["  ","  ","  ","   ","   ","    ","    ","       ","  ","  ","  ","   ","   ","    ","    ","  ","  ","  ","   ","   ","   ","    ","    ","  ","  ","   ","   ","   ","    ","     ","  ","  ","   ","   ","   ","    ","     ","  ","  ","   ","   ","   ","    ","     "];
			}
			else if(theChau==3){/*     、   */
				theCountrys=["  ","  ","   ","   ","   ","    ","     ","     ","  ","  ","   ","   ","    ","    ","     ","     ","  ","   ","   ","   ","    ","    ","     ","     ","  ","   ","   ","   ","    ","    ","     ","     ","  ","   ","   ","   ","    ","    ","     ","       ","  ","   ","   ","   ","    ","    ","     ","        ","  ","   ","   ","   ","    "];
			}
			else if(theChau==4){/*      、   */
				theCountrys=["  ","  ","   ","    ","     ","  ","   ","    ","    ","       ","  ","   ","    ","     ","      ","  "];
			}
			else if(theChau==5){/*     、   */
				theCountrys=["  ","  ","   ","   ","    ","    ","     ","  ","   ","   ","   ","    ","    ","       ","  ","   ","   ","    ","    ","    ","       ","  ","   ","   ","    ","    ","    ","        ","  ","   ","   ","    ","    ","    ","          "];
			}
			else {ifRealCountry=false;}
			var guojia=document.getElementById("guojia");
			guojia.options.length=0;
			guojia.options.add(new Option("--   --",""));
			if(ifRealCountry){
				for(var i=0;i<theCountrys.length;i++){					
					guojia.options.add(new Option(theCountrys[i],theCountrys[i]));
				}
			}
		}
  </script>
 </head>

 <body>
  <select id="s1" onChange="changeChau(this.value);">
		<option value="" selected="selected">--   --</option>
		<option value="1">  </option>
		<option value="2">  </option>
		<option value="3">  </option>
		<option value="4">   </option>		
		<option value="5">  </option>
	</select>
	<select id="guojia" name="guojia">
		<option value="" selected="selected">--   --</option>
	</select>
 </body>
</html>

좋은 웹페이지 즐겨찾기