随时间变化调用不同页面?

gxyida 2010-04-27 07:30:33
各位大侠,我有6个页面,比如1.htm,2htm,3htm,4htm,5htm,6htm.我想调到主页imdex.htm的一个框架里,要求是1-10分调用1.htm,11-20分调用2.htm,21-30分调用3.htm,31-40分调用4.htm,41-50分调用5.htm,51-60分调用6.htm。循环调用。
要怎样才能实现。希望各位大侠说说,最好反代码写出来。先谢谢了!
...全文
53 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hookee 2010-04-27
  • 打赏
  • 举报
回复

<script type="text/javascript">
window.onload=function(){
var d = new Date();
var m = d.getMinutes();
m = m==0?0:Math.floor((m-1)/10);
var u = (m+1) + ".html";
location.replace(u);
}
</script>

Snowdust 2010-04-27
  • 打赏
  • 举报
回复
Dim m
m = CInt(minute(Now) / 10)
Dim s As String
Response.Redirect (CStr(m) & ".htm")
挨踢直男 2010-04-27
  • 打赏
  • 举报
回复
惭愧 楼上高手写的果然不一样
Snowdust 2010-04-27
  • 打赏
  • 举报
回复
Dim minute
minute = CInt(Minute(Now()) / 10)
Response.Redirect(CStr(minute) & .htm")
挨踢直男 2010-04-27
  • 打赏
  • 举报
回复
currM = minute(now())

if currM<10 or currM>0 then
response.write "1.html"
end if

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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