FLASH计数器怎么做?(在线等待!)

zzw820626 2003-03-26 11:44:22
多谢
...全文
48 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zqh 2003-03-29
  • 打赏
  • 举报
回复
做三件事:
1.做一个包含有命名为 c的动态文字框的 swf文件。
2.做一个空的 count.txt文件。
3.写一个 asp文件,插入上面做的 swf文件,同时写入下面的代码:
<%
whichfile = server.mappath("count.txt")
Set fs = CreateObject("Scripting.FileSystemObjects")
Set thisfile = fs.OpenTextFile(whichfile,1,true)
If Not thisFile.AtEndOfStream Then
line = thisfile.Readline
else line = "c=1"
end if
visitors = mid(line,3)
thisfile.close
visitors = visitors+1
set out = fs.CreateTextFile(whichfile)
out.writeline("c="&visitors&"次")
out.close
set fs = nothing
%>
完成了一个简单实用的 Flash浏览计数器。样例:
http://www.zqihua.com/263/count.asp
nba23 2003-03-26
  • 打赏
  • 举报
回复
http://www.yesky.com/20010913/196554.shtml

这方面的教程,在GOOGLE上找,非常多
nba23 2003-03-26
  • 打赏
  • 举报
回复
http://www.people.com.cn/GB/channel5/569/20000810/181831.html
ceocio 2003-03-26
  • 打赏
  • 举报
回复
http://www.flash8.net/tutorials_view.asp?id=390

2,278

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 Flash流媒体开发
社区管理员
  • Flash流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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