主题:  谁帮我看看这个东西,估计是掉用的时候错了!(比较长)

Alexa.M.GonDuo

职务:普通成员
等级:1
金币:0.0
发贴:38
#12004/7/14 12:17:28
<script language="javascript">
<!--
cityareaname=new Array(35);
cityareacode=new Array(35);

function first(preP,preC,formname,selectP,selectC)
{
a=0;
if (selectP=='01')
{ a=1;tempoption=new Option('±±&frac34;&copy;','±±&frac34;&copy;',false,true); }
else
{ tempoption=new Option('±±&frac34;&copy;','±±&frac34;&copy;'); }
eval('document.'+formname+'.'+preP+'.options[1]=tempoption;');
cityareacode[0]=new Array('0101','0102','0103','0104','0105','0106','0107','0108');
cityareaname[0]=new Array('&para;&laquo;&sup3;&Ccedil;&Ccedil;&oslash;','&Icirc;÷&sup3;&Ccedil;&Ccedil;&oslash;','&sup3;&ccedil;&Icirc;&Auml;&Ccedil;&oslash;','&ETH;&ucirc;&Icirc;&auml;&Ccedil;&oslash;','&sup3;&macr;&Ntilde;&ocirc;&Ccedil;&oslash;','&ordm;&pound;&micro;í&Ccedil;&oslash;','·á&Igrave;¨&Ccedil;&oslash;','&Ecirc;&macr;&frac34;°&Eacute;&frac12;');
if (selectP=='02')
...........................................
..............................
if (selectP=='35')
{ a=35;tempoption=new Option('&Igrave;¨&Iacute;&aring;','&Igrave;¨&Iacute;&aring;',false,true); }
else
{ tempoption=new Option('&Igrave;¨&Iacute;&aring;','&Igrave;¨&Iacute;&aring;'); }
eval('document.'+formname+'.'+preP+'.options[35]=tempoption;');
cityareacode[34]=new Array();
cityareaname[34]=new Array();

eval('document.'+formname+'.'+preP+'.options[a].selected=true;');

cityid=selectP;
if (cityid!='0')
{
b=0;for (i=0;i<cityareaname[cityid-1].length;i++)
{
if (selectC==cityareacode[cityid-1][i])
{b=i+1;tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i],false,true);}
else
tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i]);
eval('document.'+formname+'.'+preC+'.options[i+1]=tempoption;');
}
eval('document.'+formname+'.'+preC+'.options[b].selected=true;');
}
}
function selectcityarea(preP,preC,formname)
{
cityid=eval('document.'+formname+'.'+preP+'.selectedIndex;');
j=eval('document.'+formname+'.'+preC+'.length;');
for (i=1;i<j;i++)
{eval('document.'+formname+'.'+preC+'.options[j-i]=null;')}
if (cityid!="0"
{
for (i=0;i<cityareaname[cityid-1].length;i++)
{
tempoption=new Option(cityareaname[cityid-1][i],cityareaname[cityid-1][i]);
eval('document.'+formname+'.'+preC+'.options[i+1]=tempoption;');
}
}
}
//&Ccedil;&oslash;&Oacute;ò±í&micro;&yen;&frac12;á&Ecirc;&oslash;
//-->
</script>
<body>
<table>
<tr><td valign=top class=tablebody1><b>&Ecirc;&iexcl;·&Yacute;:</b> <input type=text name=province size=18 value="">
<select name="selectp" onChange="selectcityarea('selectp','selectc','theForm');theForm.province.value=this.value;">
<option value="0" selected>&Ccedil;&euml;&Ntilde;&iexcl;&Ocirc;&ntilde;</option>
</select>
<tr><td valign=top class=tablebody1><b>&sup3;&Ccedil;&Ecirc;&ETH;:</b> <input type=text name="city" size=18 value="">
<select name="selectc" onChange="theForm.city.value=this.value;">
<option value="0" selected>&Ccedil;&euml;&Ntilde;&iexcl;&Ocirc;&ntilde;</option>
</select></td></tr>
</td></tr>
</table>



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
#22004/7/14 12:27:35
先说是什么错误