滚动的消息,如何实现动态的效果

gwallan 2004-04-17 11:37:01
就是有一个滚动消息栏,要求里面的内容是动态,可以在后台添加和修改
...全文
86 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xylegend 2004-04-18
  • 打赏
  • 举报
回复
要后台能够添加和修改的话一般都需要有数据库的结合才能更好办到
gwallan 2004-04-18
  • 打赏
  • 举报
回复
<%on error resume next
connstr="DBQ="+server.mappath("../database/luntan.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)}"
set rs=server.createobject("ADODB.recordset")
sql="select * from corporation where order by ID desc"
rs.open sql,connstr
%>
<MARQUEE behavior=loop direction=up height=130 onmouseout=start(); & onmouseover=stop();scrollAmount=1 scrollDelay=70 width=142>
<font><%=rs("name")%></font><br><br>
</MARQUEE>
<%
Set RS=Nothing
%>
写成这样对吗?
我测试了,页面上没有数据显示
gwallan 2004-04-18
  • 打赏
  • 举报
回复
<%on error resume next
connstr="DBQ="+server.mappath("../database/luntan.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)}"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
set rs=server.createobject("ADODB.recordset")
sql="select * from corporation where order by ID desc"
rs.open sql,connstr
%>
<MARQUEE behavior=loop direction=up height=130 onmouseout=start(); & onmouseover=stop();scrollAmount=1 scrollDelay=70 width=142>
<font><%=rs("name")%></font><br><br>
</MARQUEE>
<%
Set RS=Nothing
%>
这样写对吗?可是没有数据显示
qunluo 2004-04-17
  • 打赏
  • 举报
回复
<marquee scrollAmount=2 width=300><%=rs("你的新闻字段")%></marquee>
添加的问题,很简单的说!!!看看新闻系统就非常明白了!!好象才学ASP吧!!!
至于控制滚动,就来这里看看,非常全面!http://manual.webshu.com/tutorial/act/7,id=0323.htm

28,391

社区成员

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

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