script type="text/javascript">
var speed=1
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed) //每隔一段时间就调用一次Marquee函数
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF"><div id="demo" style="overflow:hidden; width:958" align="center">
<table width="100%" height="108" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id=marquePic1><table width="100%" cellpadding="0" cellspacing="0">
<tr>
<%
dim prs,psql
set prs=server.CreateObject("adodb.recordset")
psql="select top 7 aid,atitle, D_picture from articles where ssclass='老照片' and D_picture<>'' and flag1=0 order by aid desc"
prs.open psql,conn,1,1
do while not prs.eof
%>
<td width="15%" align="center">
<table width="100%" cellpadding="0" cellspacing="5">
<tr>
<td align="center"><a href="article.asp?id=<%=prs("aid")%>" target="_blank"><img src="<%=prs("D_picture")%>" width="126" height="96" alt="<%=prs("atitle")%>" /></a></td>
</tr>
<tr>
<td align="center">
<a href="article.asp?id=<%=prs("aid")%>" title="<%=prs("atitle")%>" target="_blank" class="tag_title_link"><%=left(prs("atitle"),10)%></a></td>
</tr>
</table>
</td>
<%
prs.movenext
loop
prs.close
set prs=nothing
%>
</tr>
</table></td>
<td id=marquePic2></td>
</tr>
</table>
</div><script type="text/javascript">
var speed=1
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed) //每隔一段时间就调用一次Marquee函数
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script></td>
</tr>