琦宁鱼石脂软膏多少钱:帮忙翻译一下下面的程序,尽量详细一些,越详细越好!!!!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 19:11:46
<%@ Language=VBScript %>
<!--#include file="log_flag.asp"-->
<html>
<head>

<script language="Javascript">
Province = new Array;
City = new Array;
I=0;
Province[I] = '--';
I++;
Province[I] = '1';
I++;
Province[I] = '2';
I++;
Province[I] = '3';
I++;
Province[I] = '4';
I++;
Province[I] = '5';
I++;
Province[I] = '6';
I++;
Province[I] = '7';
I++;
Province[I] = '8';
I++;
Province[I] = '9';
I++;
Province[I] = '10';
I++;
Province[I] = '11';
I++;
Province[I] = '12';

City[0]=new Array ("--");
City[1] = City[3] = City[5] =City[7] =City[8] = City[10] = City[12] = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31");
City[4] =City[6] = City[9] = City[11] = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30");
City[2] = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29");

function SelectProvice()
{
SelectLoc();
var locbox = creator.sltDay;
if(locbox.length==0) fullup(locbox, '--');
}

function fullup(obj1,val){
var vn = new Option(val,val);
obj1.add(vn); }

function SelectLoc(){
pbox=document.creator.sltMonth;
cbox=document.creator.sltDay;
val=pbox.value;

if (val!=-1){
m=sel(val,Province);
clear(cbox);
for (i=0;i<City[m].length;i++){fullup(cbox,City[m][i]);}
} else {
clear(cbox);
}
}
function sel(val,obj1){
for(i=0;i<obj1.length;i++){
if(obj1[i]==val){
return i;
}
}
if (i==obj1.length){return 0;}
}
function clear(obj1){
len=obj1.length;
for(i=len-1;i>=0;i--)
obj1.options[i]=null;
}
function write_option(val)
{
document.write("<option value="+val+">");
document.write(val+"</option>");
}
function selBox(obj)
{
for(I=0;I<obj.length;I++)
{
write_option(obj[I]);
}
}

</script>

<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>-=测点温度历史查询=-</title>
</head>

<body bgcolor="#f4f4f4" topmargin="4" leftmargin="0" rightmargin="0" bottommargin="2" onLoad="javascript:focus()">

未完待续

没分吗?