请教一个近期长出现的问题...

jackie615 2003-08-21 05:13:55
我看了大家最近关于进度条的帖子
发现都是模拟的,无非就是i++型
不知道大家到过www.xici.net没有,点开帖子时会有一个进度条[显示广告]
那个进度条似乎不同,因为进度并不是像模拟的那样匀速loading...似的
请教xici是怎么做的? 谢谢

PS:模拟的做法暂时先不要发这里。
...全文
41 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
JerKii 2003-08-21
  • 打赏
  • 举报
回复
你看看这个,不是匀速的,而是根据获取数据的比例显示进度
http://www.cntomorrow.com:3310/?destUrl=TodayStatics.asp

在屏幕的最下方!请用IE查看。
fason 2003-08-21
  • 打赏
  • 举报
回复
<!-- saved from url=(0022)http://internet.e-mail -->

<script language="Javascript" type="text/javascript" >

var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]
&& navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
if (navigator.plugins && navigator.plugins["Shockwave Flash"])
ShockMode = 1;
}
else if ((navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )) && navigator.userAgent.indexOf("IE 3") <= 0 )
{
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
document.write('</');
document.write('SCRIPT\> \n');
}
if ( ShockMode ) {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');

document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0"');
document.write(' ID=mercedes WIDTH=120 HEIGHT=280 align=left> ');
document.write(' <PARAM NAME=movie VALUE="http://icons.elong.com/banner/shiyd71/shiyd120250.swf?shiyd120250=http://ads.elong.com/event.ng/Type%3dclick%26ProfileID%3d482%26RunID%3d4912%26AdID%3d1869%26GroupID%3d1%26FamilyID%3d1%26TagValues%3d597%26Redirect%3dhttp://www.nj1860.com/html/d_969.htm"> ');
document.write(' <PARAM NAME=quality VALUE=high> ');
document.write('<EMBED SRC="http://icons.elong.com/banner/shiyd71/shiyd120250.swf?shiyd1202505=http://ads.elong.com/event.ng/Type%3dclick%26ProfileID%3d482%26RunID%3d4912%26AdID%3d1869%26GroupID%3d1%26FamilyID%3d1%26TagValues%3d597%26Redirect%3dhttp://www.nj1860.com/html/d_969.htm"');
document.write(' swLiveConnect=FALSE WIDTH=120 HEIGHT=280 align=left');
document.write(' QUALITY=high MENU=false ');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</EMBED>');
document.write('</OBJECT>');
}
</script>

87,907

社区成员

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

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