<%middle_goods_list_rollright=site.object_p%>
<!-- object[<%=site.object_p%>]::template::middle_goods_list_rollright -->
<%time_delay=site.object(site.object_p).show(1)%>
<table cellSpacing="0" cellPadding="0" width="583" border="0" <%=site.object(site.object_p).style%>>
	<tr>
		<td>
		<table cellSpacing="0" cellPadding="0" width="583" border="0" >
			<tr><td>
	<%
	select case site.object(site.object_p).argument(0)
	case "user"
	site.object(site.object_p).rs.open "select top "&site.object(site.object_p).qu&" * from jins_goods_list where goods_open=1 and "&site.object(site.object_p).argument(1)&"=1 order by goods_addtime "&site.object(site.object_p).argument(2)&" ",conn,1,1
	case "auto"
	site.object(site.object_p).rs.open "select top "&site.object(site.object_p).qu&" * from jins_goods_list  where goods_open=1  order by "&site.object(site.object_p).argument(1)&" "&site.object(site.object_p).argument(2)&",goods_addtime desc ",conn,1,1
	end select

	select case site.object(site.object_p).name
	case "newgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_addtime&order_action=desc'>"
	case "hotgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_clicknum&order_action=desc'>"
	case "sellgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_sellnum&order_action=desc'>"
	case "tuijian"
	response.write "<a href='temp.asp?tr=goods|search&mode=property&property_public_name=commend&property_public_value==1&order_name=goods_addtime&order_action=desc&object_print="&site.object(site.object_p).prints&"'>"
	case "tejia"
	response.write "<a href='temp.asp?tr=goods|search&mode=property&property_public_name=special&property_public_value==1&order_name=goods_addtime&order_action=desc&object_print="&site.object(site.object_p).prints&"'>"
	end select 
	%>
			
			<img src="<%=site.object(site.object_p).image%>/menu.gif" width="583" height="34" border='0'></a></td></tr>
			<tr>
				<td align=center background="<%=site.object(site.object_p).image%>/bg.gif" height="100" style="padding-top: 10px; padding-bottom: -10px" >
	            <div id=demo_<%=site.object(site.object_p).id%> style=overflow:hidden;height:100;width:579;color:#ffffff>
					<table>
						<tr>
							<td  id='demo1_<%=site.object(site.object_p).id%>'>
<%
if site.object(site.object_p).rs.eof then
response.write"<center>目前还没有商品</center>"
else
	do while not site.object(site.object_p).rs.eof
		
		response.write"<a href='temp.asp?tr=goods|detail&id="&site.object(site.object_p).rs("goods_id")&"'>"
		cc="<img border=0 height='$h$' width='$w$'  hspace=10 vspace=5 src='$src$' alt='"&site.object(site.object_p).rs("goods_name")&"'>"
		site.image.showimages site.object(site.object_p).rs("goods_pic"),site.object(site.object_p).rs("goods_picture"),cc,90,90
		response.write"</a>"
	
	site.object(site.object_p).rs.movenext
	loop
end if					
site.object(site.object_p).rs.close
%>
							</td>
                            <td id=demo2_<%=site.object(site.object_p).id%> ></td>
						</tr>
					</table>
				</div>
				</td>
			</tr>
			<tr><td><img height="10" src="<%=site.object(site.object_p).image%>/bottom.gif" width="582"></td></tr>
		</table>
		</td>
	</tr>
</table>
<script language="JavaScript" defer>
<!--左右滚动js
var  speed_<%=site.object(site.object_p).id%>=<%=time_delay%>//速度数值越大速度越慢
demo2_<%=site.object(site.object_p).id%>.innerHTML=demo1_<%=site.object(site.object_p).id%>.innerHTML

function Marquee_left_<%=site.object(site.object_p).id%>(){
  if(demo2_<%=site.object(site.object_p).id%>.offsetWidth-demo_<%=site.object(site.object_p).id%>.scrollLeft>=demo2_<%=site.object(site.object_p).id%>.offsetWidth)
  demo_<%=site.object(site.object_p).id%>.scrollLeft+=demo1_<%=site.object(site.object_p).id%>.offsetWidth
  else{
  demo_<%=site.object(site.object_p).id%>.scrollLeft-=speed_<%=site.object(site.object_p).id%>
   }
}

  var MyMar_<%=site.object(site.object_p).id%>=setInterval(Marquee_left_<%=site.object(site.object_p).id%>,50)
  demo_<%=site.object(site.object_p).id%>.onmouseover=function() {clearInterval(MyMar_<%=site.object(site.object_p).id%>)}
  demo_<%=site.object(site.object_p).id%>.onmouseout=function() {MyMar_<%=site.object(site.object_p).id%>=setInterval(Marquee_left_<%=site.object(site.object_p).id%>,50)}
//-->
</script>