<input name="c1_fad" type="text" size="60" maxlength="100" class=input2 ></br>
<%set rs9=server.createobject("adodb.recordset")
sql9="select top 5 * from tag where shh_id="&id&" order by hits desc"
rs9.open sql9,conn,1,1
do while not rs9.eof%>
<a href=# onClick="javascript: c1_fad.value+=<%=rs9("tag")%>;"><%=rs9("tag")%></a>
<% rs9.movenext
if not rs9.eof then Response.Write("<font color=""#999999""> </font>")
loop
rs9.close
set rs9=nothing %> 我写的代码如上,不能用。但是如果我把<%=rs9("tag")%>换作数字就可以,为什么?
<%set rs9=server.createobject("adodb.recordset")
sql9="select top 5 * from tag where shh_id="&id&" order by hits desc"
rs9.open sql9,conn,1,1
do while not rs9.eof%>
<a href=# onClick="javascript: c1_fad.value+=<%=rs9("tag")%>;"><%=rs9("tag")%></a>
<% rs9.movenext
if not rs9.eof then Response.Write("<font color=""#999999""> </font>")
loop
rs9.close
set rs9=nothing %> 我写的代码如上,不能用。但是如果我把<%=rs9("tag")%>换作数字就可以,为什么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货