时延问题~~~~

batty2000 2004-08-04 10:52:41
为什么<center><b>正在加载程序,请稍等</b><% Main %></center>这句调用函数
main的时候不会有时延,而是20个点都同时显示出来???
是不是函数
<%Sub Main()
for i=1 to 20 step 1
for a=1 to 20 step 1
Color="&#FaFFaa&"
next
response.write"<font color="&Color&">.</font>"
next
end Sub
%>

要修改修改呀?请指教!

=============================
<% @ language=vbscript %>
<html>
<head>
<meta http-equiv="refresh" content="2;url=guest_list.asp?PageNo=1">
<title>Load</title>
</head>

<body background="#FFFFFF" topmargin=50>
<center><b>正在加载程序,请稍等</b><% Main %></center>
</body>
</html>
<%Sub Main()
for i=1 to 20 step 1
for a=1 to 20 step 1
Color="&#FaFFaa&"
next
response.write"<font color="&Color&">.</font>"
next
end Sub
%>
...全文
110 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
batty2000 2004-08-05
  • 打赏
  • 举报
回复
据我所知,asp中没有时间延迟函数
你可以用我那个阿,在那个ss 100后面增加一行
window.location.href="guest_list.asp"应该就可以了阿
=====================================================
不行呀,是不是这句加的位置不对???
tianjy 2004-08-05
  • 打赏
  • 举报
回复
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="vs_defaultClientScript" content="VBScript">
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body>
<table height="100%" width="100%">
<tr><td align=center>Loading</td></tr>
<tr>
<td align="center"><div id="divshow">loadbar</div>
</td>
</tr>
</table>
<script id="clientEventHandlersVBS" language="vbscript">
<!--
s=""
p=">"
window.divshow.innerHTML="abc"
ss 100
function ss(i)

i=i-1
if i>0 then
s=s & p
l=""
for i=1 to 100-len(s)
l=l & "="
next
window.divshow.innerHTML=s & l
window.setTimeout "ss " & i,50
else
window.location.href="guest_list.asp"
end if
end function
-->
</script>
</body>
</html>
tianjy 2004-08-05
  • 打赏
  • 举报
回复
据我所知,asp中没有时间延迟函数
你可以用我那个阿,在那个ss 100后面增加一行
window.location.href="guest_list.asp"应该就可以了阿
batty2000 2004-08-05
  • 打赏
  • 举报
回复
我想实现的功能是:

正在加载程序,请稍等...................

其中这20个点"."是loading状态的,然后跳到另外一个指定的页面guest_list.asp


如何实现,能否在我的代码上做修改呀???


请指教,谢谢~~!
batty2000 2004-08-05
  • 打赏
  • 举报
回复
tianjy(老田) 的方法果然可以,请问大家只能使用这种 推技术 吗?asp中没有专门的时间延迟的程序吗,好比汇编里头的时延的那种

高手继续指点呀~~~~~~~~~~~~~~~谢了!!!
tianjy 2004-08-04
  • 打赏
  • 举报
回复
除非使用推技术,不然用你的方法很难实现
tianjy 2004-08-04
  • 打赏
  • 举报
回复
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="vs_defaultClientScript" content="VBScript">
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body>
<table height="100%" width="100%">
<tr><td align=center>Loading</td></tr>
<tr>
<td align="center"><div id="divshow">loadbar</div>
</td>
</tr>
</table>
<script id="clientEventHandlersVBS" language="vbscript">
<!--
s=""
p=">"
window.divshow.innerHTML="abc"
ss 100
function ss(i)

i=i-1
if i>0 then
s=s & p
l=""
for i=1 to 100-len(s)
l=l & "="
next
window.divshow.innerHTML=s & l
window.setTimeout "ss " & i,50
end if
end function
-->
</script>
</body>
</html>

28,409

社区成员

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

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