静态页面中使用的一些动态
2007-08-22 09:39
239 查看
访问次数,
在统计页面加入以下这个代码
<SCRIPT src="static_click.asp?articleid=<%=articleid%>"></SCRIPT >
对应的ASP文件为
<!-- #include file="inc/conn.asp" -->
<%
articleid=int(trim(request.querystring("articleid")))
sqlStr="update product set hits=hits+1 where articleid=" & articleid
'给文章点击数加1
conn.execute(sqlStr)
'读出文章点击数
hits=conn.execute("select hits from product where articleid=" & articleid)(0)
Response.Redirect productshow&"_"&articleid&.htm
%>
document.write(<%=hits%>)
----------------------------------------------
在统计页面加入以下这个代码
<SCRIPT src="static_click.asp?articleid=<%=articleid%>"></SCRIPT >
对应的ASP文件为
<!-- #include file="inc/conn.asp" -->
<%
articleid=int(trim(request.querystring("articleid")))
sqlStr="update product set hits=hits+1 where articleid=" & articleid
'给文章点击数加1
conn.execute(sqlStr)
'读出文章点击数
hits=conn.execute("select hits from product where articleid=" & articleid)(0)
Response.Redirect productshow&"_"&articleid&.htm
%>
document.write(<%=hits%>)
----------------------------------------------
相关文章推荐
- 静态页面中使用的一些动态
- 静态页面中使用的一些动态
- 静态页面中使用的一些动态
- 静态页面中显示动态内容,一些网站的qq在线状态,还有购物车用的是这个方法
- 浅谈在静态页面上使用动态参数,会造成spider多次和重复抓取的解决方案
- 静态页面html、shtml增加动态内容 使用apache ssi
- 浅谈在静态页面上使用动态参数,会造成spider多次和重复抓取的解决方案
- 使用nginx+tomcat实现静态和动态页面的分离
- springboot 项目使用freemarker 配置之后,访问静态和动态页面的方法
- jsp中使用c:if动态加载一些属性到标签 jsp中添加锚点,页面自动定位
- 在静态页面上使用动态参数
- JSP页面的静态包含和动态包含使用方法
- 使用js中的Window对象实现静态页面或者动态页面的跳转
- 使用xmldom在服务器端生成静态html页面
- ANDROID动态加载 使用SO库时要注意的一些问题
- 并查集+Kruscal最小生成树; 温习了一下并查集, 同时又对静态数组的动态使用体会了一下;.
- android: 静态XML和动态加载XML混合使用,以及重写Layout控件
- PHP静态生成HTML页面(使用数据库生成)
- 在jsp中动态的改变include静态引入的页面
- 使用Jquery向一个空白网页动态创建一个iframe,及嵌入页面,和向嵌入页面传参