show_tool=channelItemName&"录入:"&rs("tjuser")&" | 浏览次数:<a id=""view_hits""></a><script type=""text/javascript"" language=""javascript"" src="""&InstallDir&"inc/cmsviewhits.asp?id="&aid&"""></script>"
end if
end if
--连接文件cmsviewhits.asp代码如下(本文来源于:校园派www.xiaoyuan-pai.com)
<!--#include file="mdb.asp"-->
<%
dim sql,rs,aid,view_hits,t
On Error resume next
aid=clng(request("id"))
t=clng(request("t"))
if aid>0 then
set rs=server.createobject("adodb.recordset")
sql="select art_count from [art] where id="&aid
rs.open sql,conn,1,3
if not rs.eof then
rs("art_count")=rs("art_count")+1
view_hits=rs("art_count")
rs.update
end if
rs.close
set rs=nothing
end if
rs.close
set rs=nothing
end if
Response.write "document.getElementById(""view_hits"").innerHTML='" &view_hits& "';"
conn.close
set conn=nothing
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交