<!--#include file="conn.asp"-->

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK HREF="fox.css" REL="stylesheet" TYPE="text/css">
</head>
<%dim tjsjrs,j
set tjsjrs=server.CreateObject("adodb.recordset")
		  tjsjrs.open "select top 12 id,name,pic,adddate,spic from FOX_xiao where recommend=2 order by adddate desc",conn,1,1
		  if tjsjrs.eof and tjsjrs.bof then
		   tjsjrs.close
		  response.write "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=""100%""><tr><td align=center>对不起，请您先到后台添加！</td></tr></table>"
		  else
%> 
            <style type="text/css">
<!--
.style1 {color: #999999}
.style2 {color: #000000}
.unnamed1 {text-decoration: none;
}
-->
            </style>
            <script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
            </script>
<body topmargin="0">

<div align="center">
<TABLE cellSpacing=0 width="240" border=0>
              <TBODY>
              <TR>
			  <% 
			  j=0
			  do while not tjsjrs.eof 
			  if j>=1 then exit do
			  %>
                <TD align=center valign="top" border="0">
                  <TABLE cellPadding=2 width="130" border=1 bordercolorlight="#E0DEDE" bordercolordark="#E0DEDE" style="border-collapse: collapse" cellspacing="1">
                  <TBODY>
				  <tr><td height="69" width="60" align="center"> 
				  <A  HREF=shangjiainfo.asp?id=<%=tjsjrs("id")%> TARGET=_blank>
				  <IMG SRC=<%if trim(tjsjrs("spic"))="" then %>
				  images/emptybook.gif
				  <% else %>
				  image\<% = trim(tjsjrs("spic")) %>
				  <% end if%> BORDER=0 width="200" height="160"></A></td>
				  	<td height="69" width="60" align="center" bgcolor="#E0DEDE"> 
				  <a target="_blank" href="addnewshang.asp"> 
				  <img border="0" src="images/landing.gif" width="20" height="64"></a></td>
				  </tr>
                    <TR align="center"> 
                      <TD colspan="2">
						<table width="100%"  border="0" cellspacing="1" cellpadding="0">
                        <tr>
                          <td align="center" width="59">
							<b>
							<font color="#FF6C3B">百业联盟:</font></b></td>
                          <td> <A  HREF=shangjiainfo.asp?id=<%=tjsjrs("id")%> TARGET=_blank> <%=trim(left(tjsjrs("name"),12))%> </a></td>
                        </tr>
                      </table></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
				<% tjsjrs.movenext 
				j=j+1
				if tjsjrs.eof then 
		  exit do
	  end if 
	
	  loop %> </TR>
	  
				  
		<%
	  tjsjrs.close
	   %>
	   <% end if %>
            </TBODY></TABLE>

<TABLE id=table1 width=235 
border=1 cellspacing="1" bordercolorlight="#CC3300" bordercolordark="#CC3300">
  <TBODY>
  <TR><TD width=203 align="center" bgcolor="#CC3300">
	<p><strong><font color="#FFFF00">最新加入</font></strong></TD>
    
    <td>
      <DIV id=so1>
<%dim asjj,rsfox,sqlfox
set rsfox=server.createobject("adodb.recordset")
sqlfox="select top 12 id,name,adddate from FOX_xiao where recommend<>3 order by adddate desc"
rsfox.open sqlfox,conn,1,1
if rsfox.eof then
response.write "还没有！"
else
do while not rsfox.eof
%>
<table border="0" id="table1" cellspacing="0" cellpadding="0" height="20">
								<tr><td>&nbsp;&nbsp;
<a target="_blank" href="shangjiainfo.asp?id=<%=rsfox("id")%>"><%=left(rsfox("name"),10)%></a>
</td></tr>
</table>

<%
asjj=asjj+1
if asjj=7 then exit do
rsfox.movenext
loop
end if
rsfox.close
set rsfox=nothing
%>			
</DIV>
      <DIV id=so2 style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"></DIV></TD></TR></TBODY></TABLE>
<SCRIPT>
marqueesHeight=20;
stopscroll=false;
document.all.so1.scrollTop=0;
with(so1){
style.width=150;
style.height=marqueesHeight;
style.overflowX='visible';
style.overflowY='hidden';
noWrap=true;
onmouseover=new Function('stopscroll=true');
onmouseout=new Function('stopscroll=false');
}
preTop=0; currentTop=0; stoptime=0;
function init_srolltext(){
document.all.so2.innerHTML='';
document.all.so2.innerHTML+=document.all.so1.innerHTML;
document.all.so1.innerHTML=document.all.so2.innerHTML+document.all.so2.innerHTML;
setInterval('scrollUp()',1);
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==21)
{
stoptime+=1;
currentTop-=1;
if(stoptime==150)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=document.all.so1.scrollTop;
document.all.so1.scrollTop+=1;
if(preTop==document.all.so1.scrollTop){
document.all.so1.scrollTop=document.all.so2.offsetHeight-marqueesHeight;
document.all.so1.scrollTop+=1;
}
}
}
setTimeout('init_srolltext()', 3000)
</SCRIPT></body></html>