请问各位兄台如何实现用JS特效中的文字从小到上滚动,但是滚动的文字必须是度曲数据库里的内容。

yurui 2003-08-20 03:55:35
这个我不太会做,请各位帮忙了。分不够再给。
...全文
32 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
csdntoll 2003-08-20
  • 打赏
  • 举报
回复
是不是要这种效果的:
www.tsimfook.org

右边的报告板就是读数据库的
chinesun 2003-08-20
  • 打赏
  • 举报
回复
<marquee behavior=scroll direction=up width=90% height=120 scrollamount=3 scrolldelay=180 onmouseover='this.stop()' onmouseout='this.start()'>

<%=rs("marqueetext")%>//这里写的是从数据库中读取的代码,这样就行。很简单的。

</marquee>
cqfeng 2003-08-20
  • 打赏
  • 举报
回复
CSDN的:

<marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
<script src="http://www.csdn.net/include/marquee.asp"></script>
</marquee>

加上 DIRECTION="up"
在marquee.asp里面连接数据库取信息
coffee_cn 2003-08-20
  • 打赏
  • 举报
回复
sql="select top 6 news_id,news_title,news_date from tbl_news_content where news_index=1 and column_id="+column_id+" order by news_id desc";
rs=smt.executeQuery(sql);
out.println("document.write('<table width=300 border=0 cellspacing=0 cellpadding=0 class=p1>');");
%>

<%while(rs.next()){%>
document.writeln("<tr><td height=20> · <a target='_blank' href='news_detail.jsp?news_id=<%=rs.getInt("news_id")%>'><%=rs.getString("news_title")%></a><font color=#666666><%=rs.getDate("news_date")%></font></td><tr>");
<%}%>
document.write('</table>');
coffee_cn 2003-08-20
  • 打赏
  • 举报
回复
<marquee
bgcolor=#EEEEEE
style="width:330px;height:160px;"
direction="up"
SCROLLAMOUNT=10
SCROLLDELAY=200
onmouseover="stop();"
onmouseout="start();">
<script language="javascript" src="p_index.jsp?column_id=2"></script>
</marquee>
lions911 2003-08-20
  • 打赏
  • 举报
回复
直接用<marquee>这样的标志就能实现从上到下的滚动。

然后include一个ASP文件就可以了。

28,390

社区成员

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

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