注册 登录
编程论坛 ASP技术论坛

新手请教,请高手请指点~

futurezgj 发布于 2011-09-03 10:40, 728 次点击
下面这段是我单位内部网页中的一个滚动条,可是文字问题自右向左滚动,怎么才能把它改成自左向右滚动的。我对ASP不是很懂,请高手指点,谢谢了!

<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="6"></td>
        </tr>
      </table>
<table width="887" border="0" align="center" cellpadding="0" cellspacing="0" background="images/g-010.gif">
        <tr>
          <td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
              <td>
          <div id="content"><div align="center" id="slider">
                <span class="style1">
                <ul>
        <%
            set rs2 = server.CreateObject("ADODB.Recordset")
 sql2="select * from news where  BigClassName='滚动新闻' order by id desc "

rs2.open sql2,conn,3,1
   rs2.pagesize = 8
   m=1
   %>
   <%
if not rs2.eof then
 Do While Not rs2.Eof and  m <= rs2.pagesize
            
            %>               
        <li><a href="shownews.asp?id=<%=rs2("id")%>" class="w2" title="<%=rs2("title")%>"><%=left(rs2("title"),18)%></a></li>
<%      
     rs2.MoveNext
     m=m+1
loop
rs2.close
  end if
  set rs2 = nothing
%>
                </ul>
                </span> </div></div>
              </td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table>
7 回复
#2
futurezgj2011-09-04 09:26
  怎么没有人回复啊?
#3
zsaihz2011-09-04 13:54

            %>               
        <li><a href="shownews.asp?id=<%=rs2("id")%>" class="w2" title="<%=rs2("title")%>"><%=left(rs2("title"),18)%></a></li>
<%      
把title="<%=rs2("title")%>"><%=left(rs2("title"),18)%里边的left改成right
#4
futurezgj2011-09-04 18:20
把left改成right还是不行 ,有没有其他的建议?
#5
dzt00012011-09-05 08:37
滚动条?是ScrollBar?没看见代码中有。截个图看看
#6
zsaihz2011-09-05 17:57
把left方法的具体内容贴出来!
#7
aspic2011-09-06 10:21
滚动是javascript实现的 你给的代码只是输出数据
#8
macoo32011-09-06 15:24
你的代码中就没有滚动的,再说了,left就不是控制滚动的,
那个是截取字符的代码!!!!
1