<%
Const pic=10
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & pic & " * from engProduct order by id desc"
rs_Product.open sqltext,conn,1,1
if not rs_Product.EOF then %>
<div align='center' id='demo' style='overflow:hidden;height:164px;width:717px;'><!--滚动区的高度和宽度-->
<table align='center' cellpadding='0' cellspace='0' border='0' background="imgs/center/pic/tao_r1_c2.gif">
<tr>
<td id='demo1' valign='top'>
<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>
<tr valign='top'>
<%
while not rs_Product.EOF
fileExt=lcase(getFileExtName(rs_Product("pic")))
%>
<td align='center'>
<TABLE width=100% border=0 align=center cellPadding=0 cellSpacing=0>
<TR>
<TD>&nbsp;</TD>
<TD align="center" bgcolor="#E9E9E9">
<img src="<%=rs_Product("pic")%>" width="218" height="164">
</TD>
</TR>
</TABLE>
</td>
<%
rs_Product.MoveNext
wend
%>
</tr>
</table>
</td>
<td id=demo2 valign=top ></td>
</tr>
</table>
</div>
<%if pic >5 then %>
<script>
var Picspeed=15
demo2.innerHTML=demo1.innerHTML
function Marquee1(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar1=setInterval(Marquee1,Picspeed)
demo.onmouseover=function() {clearInterval(MyMar1)}
demo.onmouseout=function() {MyMar1=setInterval(Marquee1,Picspeed)}
</script>
<%end if
else
Response.Write "暂 无 最 新 图 文"
end if
rs_Product.close
set rs_Product=nothing
%>
<!--最新图文代码结束-->