| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 648 人关注过本帖
标题:想实现图片连续滚动的代码
只看楼主 加入收藏
小小菜菜鸟
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-11-6
收藏
 问题点数:0 回复次数:0 
想实现图片连续滚动的代码
弄了一段代码 可是他不是连续滚动 我想实现图片连续滚动 请各位高手帮忙给看看 怎么弄啊 谢谢


<div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="550" height="5">
        <tr>
            <td></td>
        </tr>
    </table>
</div>

<div align="center">
    <center><MARQUEE scrollAmount=1 scrollDelay=1 direction=left width=550 height=120>
<DIV align=center><table border="0" cellpadding="0" cellspacing="0" width="98%" height="120">
<%
    set RsPic=server.createobject("adodb.recordset")
    sql="select top 10 * from News where Ispic=1 ORDER BY id DESC"
    RsPic.open sql,conn,1,1
    if RsPic.eof or RsPic.bof then
    Call NoPic("<tr><td>暂无图文新闻</td></tr>")
    end if
    
    dim col
    dim ci
    col=10
    ci=1
    do while not RsPic.eof
        If ci = 1 Then
            response.Write("<tr>")
        End If
        response.Write("<td width='" & Fix(100 / col) & "%'  valign='top' > ")
        Call Gaobei_NewsShowPic(RsPic("Pic"),RsPic(0),RsPic("Title"),130,100,18)
         response.Write("</td>")
        If ci = col Then
            response.Write("</tr>")
            ci = 1
        Else
            ci =ci + 1
        End If
                    
    RsPic.movenext
    loop
   
    RsPic.CLOSE
    SET RsPic=Nothing
%>  
                    
                </table>
</DIV>
</MARQUEE></center>
</div>

<div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="550" height="5">
        <tr>
            <td></td>
        </tr>
    </table>
</div>



<div align="center">

<%
   dim sqlsort,RsSort,hangpicnum
   sqlsort="select * from Sort where B_id=0 and setting < 4 and Indexshow=True order by S_order"
   Set RsSort=conn.execute (sqlsort)
   RsSort.Open sql,Conn,1,1
   Response.Write"<table border='0' cellspacing='0'>"
   if RsSort.eof and RsSort.bof then
   response.write "<div align=center>还没有任何栏目</div>"
   else
   response.write"<tr>"
   do while not rs.eof
   for hangpicnum=1 to 2
   if RsSort.eof then exit for
   Response.Write"<td>"
%>
搜索更多相关主题的帖子: 代码 滚动 
2008-11-06 17:10
快速回复:想实现图片连续滚动的代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012344 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved