javascript 变量未定义
<spanid="curr"><selectname="menu1"onChange=MM_jumpMenu("self",this,0)size="1">';icurr...
<span id="curr">
<select name="menu1" onChange=MM_jumpMenu("self",this,0) size="1">';
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=huobix%>"<%if Request.Cookies("venshop")("v")=huobix then%> selected<%end if%>><%=huobix%></option>';
<%set rs8=server.CreateObject("adodb.recordset")
rs8.open "select * from venshop_Curr order by Curr_id desc" ,conn,1,1
do while not rs8.eof and not rs8.bof%>
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=rs8("Curr_name")%>"<%if Request.Cookies("venshop")("v")=rs8("Curr_name") then%> selected<%end if%>><%=rs8("Curr_name")%></option>';
<%rs8.movenext
loop
rs8.close
set rs8=nothing%>
icurr=icurr + '</select>
</span>
<script language="javascript" defer="defer">
window.onload=document.getElementById("curr").innerHTML=icurr;
</script>
应该怎么处理 谢谢 展开
<select name="menu1" onChange=MM_jumpMenu("self",this,0) size="1">';
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=huobix%>"<%if Request.Cookies("venshop")("v")=huobix then%> selected<%end if%>><%=huobix%></option>';
<%set rs8=server.CreateObject("adodb.recordset")
rs8.open "select * from venshop_Curr order by Curr_id desc" ,conn,1,1
do while not rs8.eof and not rs8.bof%>
icurr=icurr + '<option value="<%=m%>curr.asp?Curr_name=<%=rs8("Curr_name")%>"<%if Request.Cookies("venshop")("v")=rs8("Curr_name") then%> selected<%end if%>><%=rs8("Curr_name")%></option>';
<%rs8.movenext
loop
rs8.close
set rs8=nothing%>
icurr=icurr + '</select>
</span>
<script language="javascript" defer="defer">
window.onload=document.getElementById("curr").innerHTML=icurr;
</script>
应该怎么处理 谢谢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询