<!------demoqq------->
<div id="demoqq" style="OVERFLOW: hidden; WIDTH:890px; HEIGHT:170px;vertical-align:middle;">
<table height="100" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="center" valign="middle" id="demoqq1">
<table width="740" height="170" border="0" cellpadding="0" cellspacing="0">
<tr>
<%
sql="select top 8 * from product where typenumber like '0003%' order by xp desc,sortNum desc,id desc"
rs.open sql,conn,1,1
if rs.recordcount=0 then
response.Write"<span id=hei>暂无信息!</span>"
else
do while not rs.eof
%>
<td width="942" align="center" valign="middle"><table width="145" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="145" align="center"><table width="119" height="131" border="0" cellpadding="2" cellspacing="1" bgcolor="#774822">
<tr>
<td id="hei" align="center" valign="middle" bgcolor="#FDF0BB"><% If ishtml=1 Then %>
<a href="<%= tc711F %><%=rs("id")%>.html" target="_self">
<% Else %>
<a href="/plists.asp?id=<%=rs("id")%>" target="_self">
<% End If %>
<img src="<%=rs("ppic1")%>" title="<%=rs("productName")%>" border="0" width="117" height="110" /></a></td>
</tr>
</table>
<table width="124" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom" id="hei"><% If ishtml=1 Then %>
<a href="<%= tc711F %><%=rs("id")%>.html" class="aa" target="_self" title="<%=rs("productName")%>">
<% Else %>
<a href="/plists.asp?id=<%=rs("id")%>" class="aa" target="_self" title="<%=rs("productName")%>">
<% End If %>
<%if len(rs("productName"))>8 then%>
<%=left(rs("productName"),8)%>
<%else%>
<%=rs("productname")%>
<%end if%>
</a></td>
</tr>
</table></td>
</tr>
</table></td>
<%
rs.movenext
loop
end if
rs.close
%>
</tr>
</table></td>
<td align="center" valign="middle" id="demoqq2"></td>
</tr>
</tbody>
</table>
</div>
<script language="JavaScript" type="text/javascript">
var demoqq = document.getElementById("demoqq");
var demoqq1 = document.getElementById("demoqq1");
var demoqq2 = document.getElementById("demoqq2");
var speedqq=40
demoqq2.innerHTML=demoqq1.innerHTML
function Marqueeqq(){
if(demoqq2.offsetWidth-demoqq.scrollLeft<=0)
demoqq.scrollLeft-=demoqq1.offsetWidth
else{
demoqq.scrollLeft++
}
}
var MyMarqq=setInterval(Marqueeqq,speedqq)
demoqq.onmouseover=function() {clearInterval(MyMarqq)}
demoqq.onmouseout=function() {MyMarqq=setInterval("Marqueeqq()",speedqq)}
</script>
<!------demoxx------->
<div id="demoxx" style="OVERFLOW: hidden; WIDTH:890px; HEIGHT:170px;vertical-align:middle;">
<table height="100" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="center" valign="middle" id="demoxx1">
<table width="740" height="170" border="0" cellpadding="0" cellspacing="0">
<tr>
<%
sql="select top 8 * from product where typenumber like '0002%' order by xp desc,sortNum desc,id desc"
rs.open sql,conn,1,1
if rs.recordcount=0 then
response.Write"<span id=hei>暂无信息!</span>"
else
do while not rs.eof
%>
<td width="942" align="center" valign="middle"><table width="145" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="145" align="center"><table width="119" height="131" border="0" cellpadding="2" cellspacing="1" bgcolor="#774822">
<tr>
<td id="hei" align="center" valign="middle" bgcolor="#FDF0BB"><% If ishtml=1 Then %>
<a href="<%= tc711F %><%=rs("id")%>.html" target="_self">
<% Else %>
<a href="/plists.asp?id=<%=rs("id")%>" target="_self">
<% End If %>
<img src="<%=rs("ppic1")%>" title="<%=rs("productName")%>" border="0" width="117" height="110" /></a></td>
</tr>
</table>
<table width="124" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="bottom" id="hei"><% If ishtml=1 Then %>
<a href="<%= tc711F %><%=rs("id")%>.html" class="aa" target="_self" title="<%=rs("productName")%>">
<% Else %>
<a href="/plists.asp?id=<%=rs("id")%>" class="aa" target="_self" title="<%=rs("productName")%>">
<% End If %>
<%if len(rs("productName"))>8 then%>
<%=left(rs("productName"),8)%>
<%else%>
<%=rs("productname")%>
<%end if%>
</a></td>
</tr>
</table></td>
</tr>
</table></td>
<%
rs.movenext
loop
end if
rs.close
%>
</tr>
</table></td>
<td align="center" valign="middle" id="demoxx2"></td>
</tr>
</tbody>
</table>
</div>
<script language="JavaScript" type="text/javascript">
var demoxx = document.getElementById("demoxx");
var demoxx1 = document.getElementById("demoxx1");
var demoxx2 = document.getElementById("demoxx2");
var speedxx=40
demoxx2.innerHTML=demoxx1.innerHTML
function Marquee11(){
if(demoxx2.offsetWidth-demoxx.scrollLeft<=0)
demoxx.scrollLeft-=demoxx1.offsetWidth
else{
demoxx.scrollLeft++
}
}
var MyMar11=setInterval(Marquee11,speedxx)
demoxx.onmouseover=function() {clearInterval(MyMar11)}
demoxx.onmouseout=function() {MyMar11=setInterval("Marquee11()",speedxx)}
</script>
转载请注明出处: www.tc711.com QQ:187367103