关于字幕的滚动

adalp 2004-03-06 03:17:20
能不能让字幕在滚动之前正篇的挺一会
...全文
46 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ayukowa 2004-06-23
  • 打赏
  • 举报
回复
别人的,自己看看效果

<td width="124" height="128" valign="top"> <div id="marquees">
<table width="120" border="0" cellspacing="0" cellpadding="3">
<!--DWLayoutTable-->
<tr>
<td width="114" height="20" valign="top"><div align="center"><font color="#FF6600">新版已推出
新增栏目</font></div></td>
</tr>
<tr>
<td height="20" valign="top"><div align="left"><font color="#FF6600">开:天地
之、精华</font></div></td>
</tr>
<tr>
<td height="20" valign="top"><font color="#FF6600">足球、我最喜欢、自</font></td>
</tr>
<tr>
<td height="20" valign="top"><font color="#FF6600">我展示……。</font></td>
</tr>
<tr>
<td height="20" valign="top"><font color="#FF6600">欢喜堂天地已更新</font></td>
</tr>
<tr>
<td height="6"></td>
</tr>
</table>
</div>
<script language="JavaScript">

marqueesHeight=110;
stopscroll=false;

with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');

preTop=0; currentTop=0;

function init(){
templayer.innerHTML="";
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollUp()",80);
}
document.body.onload=init;

function scrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop+=1;
}
}
</script>
 </td>

28,391

社区成员

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

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