日期:2014-05-17  浏览次数:20491 次

DataList里图片滚动
<asp:DataList ID="DataList1" runat="server" RepeatColumns="2" Style="position: relative">
  <ItemTemplate>
  <table border="0" cellpadding="0" cellspacing="0" style="left: 0px; position: relative;
  top: 0px" width="193">
  <tr>
  <td align="center" height="172" nowrap="nowrap" valign="middle">

  <img src="../<%#DataBinder.Eval(Container.DataItem,"ChunkTitle") %>" border="0" onload="resizeimg(this,187,169)">&nbsp;</td>
  </tr>
  <tr>
  <td align="center" height="18" nowrap="nowrap" valign="middle">
  <%#Eval("ChunkName") %>&nbsp;</td>
  </tr>
  <tr>
  <td align="center" height="18" valign="middle">
  &nbsp;<%#Eval("ChunkAddress") %></td>
  </tr>
  </table>
  </ItemTemplate>
  </asp:DataList>

我要案让里面绑定的图片和文字滚动要怎么做

------解决方案--------------------
<marquee onmouseover=this.stop() onmouseout=this.start() behavior=alternate><asp:DataList ID="DataList1" runat="server" RepeatColumns="2" Style="position: relative"> 
<ItemTemplate> 
<table border="0" cellpadding="0" cellspacing="0" style="left: 0px; position: relative; 
top: 0px" width="193"> 
<tr> 
<td align="center" height="172" nowrap="nowrap" valign="middle"> 

<img src="../ <%#DataBinder.Eval(Container.DataItem,"ChunkTitle") %> " border="0" onload="resizeimg(this,187,169)"> &nbsp; </td> 
</tr> 
<tr> 
<td align="center" height="18" nowrap="nowrap" valign="middle"> 
<%#Eval("ChunkName") %> &nbsp; </td> 
</tr> 
<tr> 
<td align="center" height="18" valign="middle"> 
&nbsp; <%#Eval("ChunkAddress") %> </td> 
</tr>