图片滚动问题
现在我的图片滚动怎么取不到图片的值啊 各位帮忙看看
<script type= "text/javascript ">
//more javascript from http://www.smallrain.net
<%
set rs_links=server.createobject( "adodb.recordset ")
sqltext4= "select TOP 5 * from download_pic order by Infotime desc "
rs_links.open sqltext4,conn,1,1
%>
document.write( ' <table align=center width=500 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid> ');
document.write( ' <tr> ');
document.write( ' <td width=500 height=145 align=center class=border01 bgcolor=#FFFFFF> ');
document.write( ' <div id=demo style=overflow:hidden;width:654;align=center> ');
document.write( ' <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 > ');
document.write( ' <tr> ');
document.write( ' <td valign=top bgcolor=ffffff id=marquePic1> ');
document.write( ' <table width=100% border=0 cellspacing=0 cellpadding=0> ');
document.write( ' <tr align=center> ');
<%
i=0
do while not rs_links.eof
%>
document.write( ' <td> <a href= "# " > <img src= " <%=rs_links( "PhotoUrl ")%> " width=150 height=100 hspace=2 border=0> </a> </td> ');
" <%=rs_links( "PhotoUrl ")%> "现在取不到值
<%
rs_links.movenext
i=i+1
if i=10 then exit do
loop
rs_links.close
%>
document.write( ' </tr> ');
document.write( ' </table> ');
document.write( ' </td> ');
document.write( ' <td id=marquePic2 valign=top> </td> ');
document.write( ' </tr> ');
document.write( ' </table> ');
document.write( ' </div> ');
document.write( ' </td> ');
document.write( ' </tr> ');
document.write( ' </table> ');
var speed=3
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft> =marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
[解决办法]
src= " <%=rs_links( "PhotoUrl ")%> "
改成src= <%=rs_links( "PhotoUrl ")%>
看看