篮球队名称:可以实现〈动态信息〉的上下滚动源代码?

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 23:33:10
网络上有很多新闻上下滚动的代码,但是基本上是手工添加的新闻,如何在asp下对调用的新闻实现循环滚动??
注意,新闻是动态添加的,
谢谢~!!

先从数据库读取新闻内容
<%news=rs("news")%>
.
.
.
.
加滚入动效果:
<marquee onMouseOver="this.stop()" style="width: 200px; height: 100px" onMouseOut="this.start()" align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll">
<%=news%>
</MARQUEE>

<MARQUEE onmouseover="if (document.all!=null){this.stop()}"
style="WIDTH: 220px; HEIGHT: 70px"
onmouseout="if (document.all!=null){this.start()}" scrollAmount=4
scrollDelay=200
direction=up>你要滚动的内容</MARQUEE>

你试试吧