主题:求助:帮我看看我的程序
帮我看看是哪里出错了
谢谢!
<table width="799" height="190" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="798" height="165" valign="middle" bgcolor="#CC0200"><DIV id="demo" style="OVERFLOW: hidden; WIDTH: 798px; HEIGHT: 150px;">
<table width="749" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td id="demo1">
<table width="777" height="134" border="0" cellpadding="5" cellspacing="5">
<tr>
<%dim strZT, rsZT, nn
nn = 0
strZT = "select * from SightSpot where ShowInCover=1 order by id desc"
set rsZT = con.execute(strZT)
while not rsZT.eof
%>
<td width="757" align="center" valign="middle" style="border:1px dotted #666666 "><a href=sight_detail.asp?id=<%=rsZT("id")%>><img src=/upload/sight/<%=rsZT("imgURL")%> border=0 alt=<%=rsZT("title")%>><br><font color=#ffffff><%=rsZT("title")%></font></a></td>
<%
rsZT.movenext
wend
rsZT.close
set rsZT=nothing
%>
</tr>
</table>
</td>
<td id="demo2"> </td>
</tr></table>
</div>
<script language="javascript">
var speed=1
demo2.innerHTML=demo1.innerHTML
function Marquee1(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else
demo.scrollLeft++
}
var MyMar1=setInterval(Marquee1,speed)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)}
</script></td>
</tr>
</table>
谢谢!
<table width="799" height="190" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="798" height="165" valign="middle" bgcolor="#CC0200"><DIV id="demo" style="OVERFLOW: hidden; WIDTH: 798px; HEIGHT: 150px;">
<table width="749" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td id="demo1">
<table width="777" height="134" border="0" cellpadding="5" cellspacing="5">
<tr>
<%dim strZT, rsZT, nn
nn = 0
strZT = "select * from SightSpot where ShowInCover=1 order by id desc"
set rsZT = con.execute(strZT)
while not rsZT.eof
%>
<td width="757" align="center" valign="middle" style="border:1px dotted #666666 "><a href=sight_detail.asp?id=<%=rsZT("id")%>><img src=/upload/sight/<%=rsZT("imgURL")%> border=0 alt=<%=rsZT("title")%>><br><font color=#ffffff><%=rsZT("title")%></font></a></td>
<%
rsZT.movenext
wend
rsZT.close
set rsZT=nothing
%>
</tr>
</table>
</td>
<td id="demo2"> </td>
</tr></table>
</div>
<script language="javascript">
var speed=1
demo2.innerHTML=demo1.innerHTML
function Marquee1(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else
demo.scrollLeft++
}
var MyMar1=setInterval(Marquee1,speed)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)}
</script></td>
</tr>
</table>