<table style="MARGIN-TOP: 8px" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tbody>
<tr align="middle">
<td width="728" height="212" background="">
<style type="text/css">
<!--
#demo {
MARGIN: auto; OVERFLOW: hidden; WIDTH: 700px; TEXT-ALIGN: center
}
-->
</style>
<DIV id=demo>
<TABLE height=110 cellSpacing=0 cellPadding=0 align=left border=0
cellspace="0">
<TBODY>
<TR>
<TD id=demo1 vAlign=top><!--滚动区的高度和宽度-->
<TABLE width=170 height="91"
border=0 align=center cellPadding=0 cellSpacing=0 cellspace="0">
<TBODY>
<TR>
<TD id=demo1 vAlign=top>
<span id="tb_A101">
<!--------------------显示最新产品的子程序开始--------------------->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & Product_count & " * from Product where Passed=True and Elite=true order by UpdateTime desc"
rs_Product.open sqltext,conn,1,1
%>
<tr align="center">
<%
If rs_Product.eof and rs_Product.bof then
response.write "<td><p align='center'><font color='#ff0000'>还没任何产品</font></p></td>"
else
row_count=1
Do While Not rs_Product.EOF%>
<td><table width="1%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#E9E9E9">
<tr>
<td width="130" bgcolor="#FFFFFF"><table width="130" border="0" cellpadding="0" cellspacing="0" bgcolor="#E9E9E9">
<tr>
<td width="130" height="110" align="center" valign="middle" bgcolor="#FFFFFF"><a href="ProductShow.asp?ID=<%=rs_Product("id")%>"><img src=<%=rs_Product("DefaultPicUrl")%> width="170" height="140" border=0 ></a></td>
</tr>
</table></td>
</tr>
</table></td>
<td valign="top"><img src="Img/yyri2.gif" width="7" height="112" /></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td height="30" align="center"><a href="ProductShow.asp?ID=<%=rs_Product("id")%>"><%=rs_Product("Title")%></a></td>
</tr>
</table></td>
</tr>
</table></td>
<% if row_count mod 8 =0 then%>
</tr>
<tr>
<%end if%>
<%
rs_Product.MoveNext
row_count=row_count+1
Loop
end if
rs_Product.close
%>
</tr>
</table><!--------------------显示最新产品的子程序结束--------------------->
</span>
</TD>
<TD id=demo2 vAlign=top width=2></TD>
</TR>
</TBODY>
</TABLE>
<!--最新图文代码结束--></TD>
<TD id=demo2 vAlign=top></TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<script language="JavaScript" type="text/javascript">
// JavaScript Document
var speed=20;
document.getElementById("demo2").innerHTML=document.getElementById("demo1").innerHTML
function Marquee(){
if(document.getElementById("demo2").offsetWidth-document.getElementById("demo").scrollLeft<=0)
document.getElementById("demo").scrollLeft-=document.getElementById("demo1").offsetWidth
else{
document.getElementById("demo").scrollLeft++;
}
}
var MyMar=setInterval(Marquee,speed)
document.getElementById("demo").onmouseover=function() {clearInterval(MyMar)}
document.getElementById("demo").onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</td>
</tr>
</tbody>
</table> |