求助document.formSignUp.lb.0'为空或不是对象

wdx053 2009-12-25 05:15:39
<FORM action=nowbuyc.asp?cpid=<%=rikeenet("cpid")%> method=post name=formSignUp id="formSignUp">
<SCRIPT language=JavaScript1.2>
scores = new Array(20);
var numTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function initIt()
{
if (!ver4) return;
if (NS4)
{
if(document.formSignUp.lb[0].checked||document.Club_reister_timelength.lb[1].checked)
{
for (i=0; i<document.layers.length; i++) g
{
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
}
else
{
for (i=0; i<document.layers.length; i++)
{
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "show";
}
}
arrange();
}
else
{
divColl = document.all.tags("DIV");
if(document.formSignUp.lb[0].checked||document.formSignUp.lb[1].checked)
{
for (i=0; i<divColl.length; i++)
{
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "none";
}
}
else
{
for (i=0; i<divColl.length; i++)
{
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "block";
}
}
}
}
function ShowTime(el)
{
if (!ver4) return;
if (IE4)
{
whichEl1 = eval(el + "Child");
whichEl1.style.display = "block";
}
else
{
whichEl = eval("document." + el + "Child");
whichEl.visibility = "show";
arrange();
}
}
function HideTime(el)
{
if (!ver4) return;
if (IE4)
{
whichEl1 = eval(el + "Child");
whichEl1.style.display = "none";
}
else
{
whichEl = eval("document." + el + "Child");
whichEl.visibility = "hide";
arrange();
}
}
onload = initIt;
</SCRIPT>
...全文
100 2 打赏 收藏 举报
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wdx053 2009-12-25
  • 打赏
  • 举报
回复
这是全部代码



<TABLE width=580 border="0" align="center" cellpadding="6" cellspacing="1" bgcolor="#efefef">
<FORM action=nowbuyc.asp?cpid=<%=rikeenet("cpid")%> method=post name=formSignUp id="formSignUp">
<SCRIPT language=JavaScript1.2>
scores = new Array(20);
var numTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function initIt()
{
if (!ver4) return;
if (NS4)
{
if(document.formSignUp.lb[0].checked||document.Club_reister_timelength.lb[1].checked)
{
for (i=0; i<document.layers.length; i++) g
{
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
}
}
else
{
for (i=0; i<document.layers.length; i++)
{
whichEl = document.layers[i];
if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "show";
}
}
arrange();
}
else
{
divColl = document.all.tags("DIV");
if(document.formSignUp.lb[0].checked||document.formSignUp.lb[1].checked)
{
for (i=0; i<divColl.length; i++)
{
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "none";
}
}
else
{
for (i=0; i<divColl.length; i++)
{
whichEl = divColl(i);
if (whichEl.className == "child") whichEl.style.display = "block";
}
}
}
}
function ShowTime(el)
{
if (!ver4) return;
if (IE4)
{
whichEl1 = eval(el + "Child");
whichEl1.style.display = "block";
}
else
{
whichEl = eval("document." + el + "Child");
whichEl.visibility = "show";
arrange();
}
}
function HideTime(el)
{
if (!ver4) return;
if (IE4)
{
whichEl1 = eval(el + "Child");
whichEl1.style.display = "none";
}
else
{
whichEl = eval("document." + el + "Child");
whichEl.visibility = "hide";
arrange();
}
}
onload = initIt;
</SCRIPT>

<TR valign="middle">
<TD height=22 colspan="2" align="left" background="../image/bk3.jpg" bgcolor="#FFFFFF">购物结算--您的个人信息</TD>
</TR>
<TR valign="middle">
<TD width="149" height=25 align="right" bgcolor="#FFFFFF" class=main1>真实姓名:</TD>
<TD width="419" height=25 bgcolor="#FFFFFF" class=main1>
<INPUT name=name class="wenbenkuang" id="name" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("name")%>" size=13 maxLength=49>
<font color="#ff3333">*</font></TD>
</TR>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>联系地址:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1>
<INPUT name=dz class="wenbenkuang" id="dz" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("dz")%>" size=65 maxLength=200>
<font color="#ff3333">*</font> </TD>
</tr>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>邮政编码:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1>
<INPUT name=yb class="wenbenkuang" id="yb" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("yb")%>" size=13 maxLength=16>
<font color="#ff3333">*</font> </TD>
</tr>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>联系电话:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1>
<INPUT name=tel class="wenbenkuang" id="tel" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("tel")%>" size=23 maxLength=40>
<font color="#ff3333">*</font> </TD>
</tr>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>手机:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1><input name=shouji class="wenbenkuang" id="shouji" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("shouji")%>" size=23 maxlength=40></TD>
</tr>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>电子信箱:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1>
<INPUT name=mail class="wenbenkuang" id="mail" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="<%=rs("mail")%>" size=35 maxLength=49> </TD>
</tr>
<tr valign="middle">
<TD height=25 colspan="2" bgcolor="#FFFFFF" class=main1> </TD>
</tr>
<tr valign="middle">
<TD height=25 colspan="2" bgcolor="#FFFFFF" class=main1>购买数量:
<INPUT name=number class="wenbenkuang" id="number" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''" value="1" size=8 maxLength=5>  剩余产品数量为<font color=red><%=cpnumber%></font><input type="hidden" name="cpnumber" id="cpnumber" value="<%=cpnumber%>"></TD>
</tr>
<tr valign="middle">
<TD height=20 colspan="2" align="left" background="../image/bk3.jpg" bgcolor="#FFFFFF" class=main1>购物结算--货币支付方式</TD>
</tr>
<tr valign="middle">
<TD height=40 colspan="2" bgcolor="#FFFFFF" class=main1 style="word-break:break-all"><DIV class=child id=KB1Child style="width: 580">
<input name="pay" type="radio" value="自行联系卖家付款" checked>
自行联系卖家付款
<%fukuan()%>

</div></TD>
</tr>
<tr valign="middle">
<TD height=30 colspan="2" align="left" background="../image/bk3.jpg" bgcolor="#FFFFFF" class=main1>购物结算--商品配送方式</TD>
</tr>
<tr valign="middle">
<TD height=40 colspan="2" bgcolor="#FFFFFF" class=main1>
<%rs.close
set rs=nothing
fukuan2()
if mai="卖家负担费用" then
fukuan3()
end if
%> </TD>
</tr>
<tr valign="middle">
<TD height=19 colspan="2" align="left" valign="bottom" background="../image/bk3.jpg" bgcolor="#FFFFFF" class=main1>产品配送费用:</TD>
</tr>
<tr valign="middle">
<TD height=40 colspan="2" bgcolor="#FFFFFF" class=main1>
<%if mai="卖家承担运费" then%><%=mai%>:<%end if%><input name="feiyong" type="radio" value="特快专递" checked>
特快专递(EMS):<%=amount%>元  <input type="radio" name="feiyong" value="平邮">
平邮:<%=amount1%>元  <input type="radio" name="feiyong" value="快递">
快递:<%=amount2%>元
<input name="amount" type="hidden" id="amount" value="<%=amount%>">
<input name="amount1" type="hidden" id="amount1" value="<%=amount1%>">
<input name="amount2" type="hidden" id="amount2" value="<%=amount2%>"></TD>
</tr>
<tr valign="middle">
<TD height=20 colspan="2" align="left" valign="bottom" background="../image/bk3.jpg" bgcolor="#FFFFFF" class=main1>产品脱销方案</TD>
</tr>
<tr valign="middle">
<TD height=25 colspan="2" bgcolor="#FFFFFF" class=main1>假如发生产品脱销现象,我们不能在约定期限给您发货,请您选择如下的一种处理方式 </TD>
</tr>
<tr valign="middle">
<TD height=25 colspan="2" bgcolor="#FFFFFF" class=main1>
<input name="tx" type="radio" value="等货" checked>
等货
<input name="tx" type="radio" value="取消订单">
取消订单 </TD>
</tr>
<tr valign="middle">
<TD height=25 align="right" bgcolor="#FFFFFF" class=main1>订单备注:</TD>
<TD height=25 bgcolor="#FFFFFF" class=main1>
<textarea name="beizhu" cols="54" rows="4" class="wenbenkuang" id="beizhu" title="备注的内容,请保持在500字以内。
谢谢您对我们的支持!" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''"></textarea> </TD>
</tr>
<tr valign="middle">
<TD height=25 colspan="2" align="center" bgcolor="#FFFFFF" class=main1>如果需要<font color="#FF3300"><strong>发票</strong></font>,请在订单备注中标明,并附上开票信息。如果您有其它问题也可在订单备注中填写。</TD>
</tr>
<tr valign="middle">
<TD height=20 colspan="2" align="center" bgcolor="#FFFFFF" class=main1>
<input name="Submit" type="button" class="go-wenbenkuang" value="上一步" onFocus="this.blur()" onClick="javascript:window.history.go(-1)">
<input name="Submit2" type="submit" onClick="javascript:return checksignup()" class="go-wenbenkuang" value="OK,下一步" onFocus="this.blur()">
<input name="userid" type="hidden" id="userid" value="<%=request("userid")%>"> </TD>
</tr>

</FORM>
浪尖赏花 2009-12-25
  • 打赏
  • 举报
回复
form表单的html代码呢?
发帖
JavaScript

8.7w+

社区成员

Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
帖子事件
创建了帖子
2009-12-25 05:15
社区公告
暂无公告