如何在生成的静态html页中实现点击率的统计????

zytp 2004-05-03 07:47:54
新闻系统生成的静态html页,请问如何实现点击率的统计。
试过<script src="counter.aspx?id=1"></script>

不知什么原因,就是不能显示
具体看这贴http://expert.csdn.net/Expert/TopicView1.asp?id=3022974
show.aspx
show.asp
show.html
在show.aspx中
Response.Write("document.write('asdf')");
在show.asp中
Response.Write("document.write('1234')")
在show.html中
<script src=show.aspx></script>

<script src=show.asp></script>
却只能显示1234
不能显示asdf,这是怎么回事,同样的调用为什么不可以????
...全文
115 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zytp 2004-05-10
  • 打赏
  • 举报
回复
知道什么原因了
看这贴http://expert.csdn.net/Expert/TopicView1.asp?id=3022974
给分了,
活靶子哥哥 2004-05-03
  • 打赏
  • 举报
回复
我在aspx页面内这样引用过js文件
没问题
<SCRIPT language=javascript src="common/BoardCode.aspx"></SCRIPT>
BoardCode.aspx实际上就是js文件只是改了扩展名
活靶子哥哥 2004-05-03
  • 打赏
  • 举报
回复
没这么用过啊
<script src=showjs.aspx></script>
如果你生成的页面扩展名是aspx我想这个是没有问题的
zytp 2004-05-03
  • 打赏
  • 举报
回复
嘿嘿
to:xiahouwen(活靶子.NET)
博客园的Hover就是me 那个你说的都实现过了,想用js调用,
但就是不行,才来这里 我按思归的做了也不行。还是无法显示
我的os是2003
回复人: saucer(思归/MVP) ( ) 信誉:342 2004-05-01 20:26:00 得分:0


no idea what you are doing wrong, it works for me:

showjs.aspx:
<% Response.Write("document.write('asdf')") %>

showjs.asp:
<% Response.Write("document.write('1234')") %>

showjs.html:
<script src=showjs.aspx></script>
<script src=showjs.asp></script>

display output:
asdf 1234

one thing to try is to set

<% Response.ContentType = "text/javascript" %>


活靶子哥哥 2004-05-03
  • 打赏
  • 举报
回复
show.aspx?id=2222
在show内点击数量加1然后跳转到html文件

62,244

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧