帮我看看这个网站图片滚动的问题在哪里

来源:百度知道 编辑:UC知道 时间:2024/05/29 23:42:54
<table width="770" height="160" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="kuang1_1"><div id=demo style="OVERFLOW: hidden; WIDTH: 770px; COLOR: #ffffff">
<table width="770" border=0 align=left cellpadding=0 cellspacing=0 cellspace="0">
<tbody>
<tr>
<td id=demo1 background="../images/zw029.gif">
<%
Dim PicNum
sSql="Select Top "&W_HomePicRecoNum&" P_ID,P_PictureName,P_PictureUrlS,P_PictureBrowseCount From PictureData Where P_Recycle=False Order By P_ID Desc"
oRs.Open sSql,oConn,1,1
If Not oRs.Eof Then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%
Do While Not oRs.Eof
Response.Write "&

js位置不对

我试了试,不知道和你的js和浏览器有没有关系,我这有一段上下滚动的代码,你试试

<div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><div id=demo1>
<img src="http://www.xxxx.com/lanren/jscode/js-0063/images/01.jpg">
<img src="http://www.xxxx.com/lanren/jscode/js-0063/images/02.jpg">
</div>
<div id=demo2></div>
</div>
<script>
var speed=50
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouse