上下连续滚动的跑马灯~急~
以下是我的代码,连续左右滚动的,谁能帮我把它改为上下滚动的?感谢~~<!--#includefile="conn.asp"--><TABLEcellSpacing=0ce...
以下是我的代码,连续左右滚动的,谁能帮我把它改为上下滚动的?感谢~~
<!--#include file="conn.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width="133" border=0 align="center">
<TBODY>
<TR>
<TD width="1" background="images/news_16.jpg"></TD>
<TD height=80><div id=demo
style="OVERFLOW: hidden; WIDTH: 131px; align: center"
align=center>
<table cellspacing=0 cellpadding=0 width="50%"
align=center border=0>
<tbody>
<tr>
<td id=demo1 align=middle><table cellspacing=0 cellpadding=0 width=131 height="290" align=center border=0>
<tbody>
<tr>
<%
set rs_qy=Server.CreateObject("ADODB.Recordset")
rs_qy.open "select * from ghcompany",conn,1,1
while not rs_qy.eof
%>
<td><img src="ghadmin/<%=rs_qy("C_G_logo")%>" width="110"/></div></td>
<%
rs_qy.movenext
wend
rs_qy.close
%>
</tr>
</tbody>
</table></td>
<td id=demo2></td>
</tr>
</tbody>
</table>
</div></TD>
<TD width="1" background="images/news_16.jpg"></TD>
<SCRIPT language=javascript>
Marquee();
var speed=5//1????¨o?¨¨???¨??????¨???¨?
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</SCRIPT>
</TR></TBODY></TABLE>
</td>
</tr>
</table> 展开
<!--#include file="conn.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width="133" border=0 align="center">
<TBODY>
<TR>
<TD width="1" background="images/news_16.jpg"></TD>
<TD height=80><div id=demo
style="OVERFLOW: hidden; WIDTH: 131px; align: center"
align=center>
<table cellspacing=0 cellpadding=0 width="50%"
align=center border=0>
<tbody>
<tr>
<td id=demo1 align=middle><table cellspacing=0 cellpadding=0 width=131 height="290" align=center border=0>
<tbody>
<tr>
<%
set rs_qy=Server.CreateObject("ADODB.Recordset")
rs_qy.open "select * from ghcompany",conn,1,1
while not rs_qy.eof
%>
<td><img src="ghadmin/<%=rs_qy("C_G_logo")%>" width="110"/></div></td>
<%
rs_qy.movenext
wend
rs_qy.close
%>
</tr>
</tbody>
</table></td>
<td id=demo2></td>
</tr>
</tbody>
</table>
</div></TD>
<TD width="1" background="images/news_16.jpg"></TD>
<SCRIPT language=javascript>
Marquee();
var speed=5//1????¨o?¨¨???¨??????¨???¨?
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</SCRIPT>
</TR></TBODY></TABLE>
</td>
</tr>
</table> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询