如何实现网页中一个公告板,里面文字在滚动的效果?

SkidRow133 2003-03-11 10:28:29
RT.
...全文
292 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
xame 2003-03-11
  • 打赏
  • 举报
回复
向上滚动:
<MARQUEE direction=up height=110 onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 width=300
scrollleft="0"
scrolltop="0"> 要向上滚动的文字</marquee>
向下滚动:
<MARQUEE direction=down height=110 onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 width=300
scrollleft="0"
scrolltop="0"> 要向下滚的文字</marquee>
向右:
<MARQUEE direction=right onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 width=300
scrollleft="0"
scrolltop="0"> 要向右滚动的文字</marquee>
向左:
<MARQUEE direction=up onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 width=300
scrollleft="0"
scrolltop="0"> 要向左滚动的文字</marquee>

交替滚动:
<MARQUEE behavior=alternate onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 width=300
scrollleft="0"
scrolltop="0"> 要左右来回滚动的文字</marquee>
dh20156 2003-03-11
  • 打赏
  • 举报
回复
<marquee></marquee>属性:
width,height 定义区域的宽和高
align 滚动字幕与周围文本的对齐方式
behavior 定义如何滚动
bgcolor 区域背景色
direction 滚动方向
hspace,vspace 区域四周水平垂直的间隙
scrollamount 文本滚动间的步进象素间距
scrolldelay 两次重画之间的毫秒延迟时间
rockrabbit 2003-03-11
  • 打赏
  • 举报
回复
看MSDN关于marquee的帮助:

http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/marquee.asp?frame=true

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/direction.asp
rockrabbit 2003-03-11
  • 打赏
  • 举报
回复
<table width=50>
<td width="22" height=200>
<marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()"

onmouseout="this.start()" direction=up>
<script src="http://www.csdn.net/include/marquee.asp"></script>
</marquee>
</td>
</table>
gwzwx 2003-03-11
  • 打赏
  • 举报
回复
<MARQUEE direction=up height=110 onmouseout=start(); onmouseover=stop();
scrollAmount=1 scrollDelay=0 style="FONT-SIZE: 9pt" width=300
scrollleft="0"
scrolltop="0">  
<BR> <FONT
face="Courier New, Courier, mono"><A
href="http://www.acftu.org/m8.jsp?lmbh=7&bh=405"
target=_blank> 各学院设立初级中级高级进修和院士五个授课教室</A></FONT>
<BR>每个教室每天分上下两节课
<BR>每个学院每天只安排学员学习一次。
SkidRow133 2003-03-11
  • 打赏
  • 举报
回复
有没有从下往上滚动的源码?
rockrabbit 2003-03-11
  • 打赏
  • 举报
回复
这是CSDN讨论上方的公告区源代码:

<td width="740">
<marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
<script src="http://www.csdn.net/include/marquee.asp"></script>
</marquee>
</td>
quiet 2003-03-11
  • 打赏
  • 举报
回复
<marquee></marquee>

28,391

社区成员

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

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