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

<STYLE type=text/css>
TD {FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: 宋体}
a{ color: #000000;}
A:link {TEXT-DECORATION: none}
A:visited {TEXT-DECORATION: none}
A:active {TEXT-DECORATION: none}
A:hover {TEXT-DECORATION: underline}
</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 id=table1 width=249 
border=0 cellspacing="1">
  <TBODY>
  <TR><TD width=81 align="center">
	<p><strong><font color="#3399FF">最新加入商家</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>