静态页面中使用的一些动态
2007-08-22 09:39
267 查看
<script type="text/javascript"><!--
google_ad_client = "pub-4490194096475053";
/* 内容页,300x250,第一屏 */
google_ad_slot = "3685991503";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>访问次数,
在统计页面加入以下这个代码
<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%>)
----------------------------------------------
google_ad_client = "pub-4490194096475053";
/* 内容页,300x250,第一屏 */
google_ad_slot = "3685991503";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>访问次数,
在统计页面加入以下这个代码
<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最小生成树; 温习了一下并查集, 同时又对静态数组的动态使用体会了一下;.
- jsp页面中的动态包含和静态包含
- android: 静态XML和动态加载XML混合使用,以及重写Layout控件