当前位置: 代码迷 >> ASP.NET >> DataList里图片滚动,该怎么解决
  详细解决方案

DataList里图片滚动,该怎么解决

热度:2938   发布时间:2013-02-25 00:00:00.0
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> 
</table> 
</ItemTemplate> 
  相关解决方案