使用jspsmartupload上载文件时,如何让页面提示"正在上载,请稍后..."?

风吹稻菽千重浪 2003-04-08 05:56:09
否则,上载大文件时特别慢,容易让人以为死了机.
...全文
50 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
bjzhanghao 2003-04-10
  • 打赏
  • 举报
回复
这个页面不知道对你有没有用loading.htm
<body style="background:black">
<div style="position:absolute;width:322;height:14;border:1 #707888 solid;overflow:hidden">
<div style="position:absolute;top:-1;left:0" id="pimg">
</div>
</div>
<div style="position:absolute;top:30;left:120;font-size:9pt;color:#f4f4f4" id="abc">
Loading.............
</div>
<script>
s=new Array();
s[0]="#050626";
s[1]="#0a0b44";
s[2]="#0f1165";
s[3]="#1a1d95";
s[4]="#1c1fa7";
s[5]="#1c20c8";
s[6]="#060cff";
s[7]="#2963f8";
function ls(){
pimg.innerHTML="";
for(i=0;i<9;i++){
pimg.innerHTML+="<input style=\"width:15;height:10;border:0;background:"+s[i]+";margin:1\">";
}
}

function rs(){
pimg.innerHTML="";
for(i=9;i>-1;i--){
pimg.innerHTML+="<input style=\"width:15;height:10;border:0;background:"+s[i]+";margin:1\">";
}
}

ls();
var g=0;sped=0;
function str(){
if(pimg.style.pixelLeft<350&&g==0){
if(sped==0){
ls();
sped=1;
}
pimg.style.pixelLeft+=2;
setTimeout("str()",1);
return;
}
g=1;
if(pimg.style.pixelLeft>-200&&g==1){
if(sped==1){
rs();
sped=0;
}
pimg.style.pixelLeft-=2;
setTimeout("str()",1);
return;
}
g=0;
str();
}

function flashs(){
if(abc.style.color=="#ffffff"){
abc.style.color="#707888";
setTimeout('flashs()',500);
}
else{
abc.style.color="#ffffff";
setTimeout('flashs()',500);
}
}
flashs();
str();
</script>
  • 打赏
  • 举报
回复
给个例子,谢了
teva 2003-04-09
  • 打赏
  • 举报
回复
JavaScript + Layer.show
yangzi520 2003-04-09
  • 打赏
  • 举报
回复
很簡單,多動腦筋
retfu1 2003-04-09
  • 打赏
  • 举报
回复
gz
  • 打赏
  • 举报
回复
help!

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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