我想在调用数据时,页面上显示浮动窗口和进度条,表示正在加载数据和页面。

zhouzq 2001-12-21 03:09:51
有一点需要说明:假如加载数据出错,我要转到错误页面
...全文
161 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ar7_top 2001-12-21
  • 打赏
  • 举报
回复
这个咚咚好玩
我修改了一下子,让它看起来更加自然一点点,嘻嘻
如下:

>>>>--------------------------------
Loading.asp
-------------------
<%
a="Loading"
for i=1 to 10000
%>
<script language=javaScript>
parent.main.mains.innerHTML="<%=a%>";
</script>
<%
for j=1 to 30
next
if (i mod 100)=0 then
a=a & "."
end if
next
%>

>>>>--------------------------------
index.html
-------------------
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<frameset rows="100,*" frameborder="1" border="2">
<frame src="Table.html" scrolling="no" name="main" noresize>
<frame src="Loading.asp" scrolling="no" noresize>
</frameset>
</html>


>>>>--------------------------------
Table.html
-------------------
<div id="mains">Loading.</div>


呵呵,其实就是楼上那位兄弟的,我不过是修改了一下表现的形势

bindong 2001-12-21
  • 打赏
  • 举报
回复
tu--->gz
HapTears 2001-12-21
  • 打赏
  • 举报
回复
至于错误处理,你可以在csdn查一查,已经有了!
HapTears 2001-12-21
  • 打赏
  • 举报
回复
你先建一个1.asp的文件代码如下:
<%
for i=1 to 1000
%>
<script language=javaScript>
parent.main.mains.innerHTML="<%=i%>";
</script>
<%
for j=1 to 30000
next
next
%>
再建一个index.htm代码如下:
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<frameset rows="100,*" border="0">
<frame src="table.htm" scrolling="no" name="main" noresize>
<frame src="1.asp" scrolling="no" noresize>
</frameset>
</html>
和一个table.htm代码如下
<div id="mains">0</div>
然后浏览index.htmn你就能看到结果!因为我这没有数据库,所有用循环代替!!
BrightEye 2001-12-21
  • 打赏
  • 举报
回复
有意思>gz!

28,406

社区成员

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

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