<!--
FLASH样式
本例可以设置TOP的数字,从而可以动态控制图象的数量
 -->
<!--#include file="inc/conn.asp"-->
<%Set rs=Server.CreateObject("ADODB.Recordset")
sql="select top 5 * from product  where elite=true order by updatetime desc"
rs.open sql,conn,1,1%>
<DIV style="DISPLAY: none">
<TABLE id=pictable cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <%do while not rs.eof
    %>
  <TR>
 
    <TD><%=rs("bookpic")%></TD>
    <TD><%=rs("product_id")%></TD>
    <TD>productshow.asp?articleid=<%=rs("articleid")%></TD></TR>
  <%rs.movenext
  Loop
  rs.close%>
  </TBODY></TABLE></DIV>
<SCRIPT type=text/javascript>
 <!--
 
 var focus_width=550;//图象的宽度
 var focus_height=145;//图象的高度
 var text_height=25;//文字高度
 var swf_height = focus_height+text_height;
 var t=document.getElementById("pictable");
 var rl=t.rows.length;
 var baseu= document.URL.replace(/(http.*//)(.*)/, "$1");
 var pics=""; var links=""; var texts="";
 for (var i=0;i<rl;i++) {
  pics+=baseu+t.rows[i].cells[0].innerText.replace(///.*///, "")+"|";
  links+=t.rows[i].cells[2].innerText+"|";
  texts+=t.rows[i].cells[1].innerText+"|";
 }
 pics=pics.substr(0,pics.length-1);
 links=links.substr(0,links.length-1);
 texts=texts.substr(0,texts.length-1);
 var fv="pics="+pics+"&links="+links+"&texts="+texts+"&borderwidth="+focus_width+"&borderheight="+focus_height+"&textheight="+text_height;
 document.write('<object class></object>');


 //-->
 </SCRIPT>

 Pv.swf需要的发邮件给我,或者在这里留言.

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-12-14
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-11-07
  • 2021-09-07
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案