asp 提示缺少”;“
<%response.Write"<scriptlanguage='javascript'>"response.Write"varsubguide=newArray();...
<%
response.Write "<script language='javascript'>"
response.Write "var subguide=new Array();"
subguide=""
sql="select * from S_Guide where Guide_ParentID=0 order by Guide_Order asc"
'Set rs=server.CreateObject("ADODB.RecordSet")
Set rs=server.CreateObject("ADODB.RecordSet")
rs.open sql,Conn,1,1
i=0
while not rs.eof and not rs.bof
sql="select * from S_Guide where Guide_ParentID="&rs("Guide_ID")&" order by Guide_Order asc"
Set rs1=server.CreateObject("ADODB.RecordSet")
rs1.open sql,Conn,1,1
while not rs1.eof and not rs1.bof
subguide=subguide&"<a href='"&replace(rs1("Guide_Link"),"//","/")&"'>"&rs1("Guide_Name")&"</a>"
rs1.movenext
wend
response.Write "subguide["&i&"]='"&subguide&"';"
subguide=""
i=i+1
rs.movenext
wend
response.Write "function ShowGuide(i){"
response.Write "var subGuide=document.getElementById('subGuide');"
response.Write "subGuide.innerHTML=subguide[i];}"
response.Write "</script>"
%>
这是一个读栏目的
response.Write "subguide["&i&"]='"&subguide&"';"
好像是这里的问题 展开
response.Write "<script language='javascript'>"
response.Write "var subguide=new Array();"
subguide=""
sql="select * from S_Guide where Guide_ParentID=0 order by Guide_Order asc"
'Set rs=server.CreateObject("ADODB.RecordSet")
Set rs=server.CreateObject("ADODB.RecordSet")
rs.open sql,Conn,1,1
i=0
while not rs.eof and not rs.bof
sql="select * from S_Guide where Guide_ParentID="&rs("Guide_ID")&" order by Guide_Order asc"
Set rs1=server.CreateObject("ADODB.RecordSet")
rs1.open sql,Conn,1,1
while not rs1.eof and not rs1.bof
subguide=subguide&"<a href='"&replace(rs1("Guide_Link"),"//","/")&"'>"&rs1("Guide_Name")&"</a>"
rs1.movenext
wend
response.Write "subguide["&i&"]='"&subguide&"';"
subguide=""
i=i+1
rs.movenext
wend
response.Write "function ShowGuide(i){"
response.Write "var subGuide=document.getElementById('subGuide');"
response.Write "subGuide.innerHTML=subguide[i];}"
response.Write "</script>"
%>
这是一个读栏目的
response.Write "subguide["&i&"]='"&subguide&"';"
好像是这里的问题 展开
4个回答
展开全部
哪里啊? 把代码贴出来
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你顷辩这个是动态生成的javascript脚本出错,你在浏览的时候,点击右键,查看源文件,在那里则乎迟看第八行孙李,显示的是什么?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
response.Write "subguide["&i&"]='"&subguide&"'"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询