发布网友 发布时间:2022-04-26 16:02
共2个回答
热心网友 时间:2022-04-24 14:14
<div id="demo00" style="height:20px; overflow:hidden">
<div id="demo01">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select top 1 * from affiche order by [time] desc"
on error resume next
rs.open sql,conn,1,1
if err then err.clear
if (rs.bof and rs.eof) then
'response.Write "暂时无最新发货订单"
else
%>
<li><%=rs("content")%></li>
<%
end if
rs.close:set rs=nothing
%>
</div>
<div id="demo02"></div>
</div>
<script>
function Marquee()
{
demo02.innerHTML=demo01.innerHTML;
if(demo02.offsetTop-demo00.scrollTop<=0)
demo00.scrollTop-=demo01.offsetHeight;
else
{
demo00.scrollTop++ ;
}
}
var MyMar=setInterval(Marquee,30) ;
demo00.onmouseover=function() {clearInterval(MyMar)}
demo00.onmouseout=function() {MyMar=setInterval(Marquee,30)}
</script>
热心网友 时间:2022-04-24 15:32
什么语言的,既然会弄站,那首页输出不就得了,回来在弄个滚动代码就OK了.