请教大家,如何从数据里读取一列记录,然后滚动显示,点击相应的记录可以链接到显示该记录所在行的所有记录?

解决方案 »

  1.   


    <tr>
            <td style="width: 165px; height:150px" valign="top">
            <MARQUEE onmouseover="if (document.all!=null){this.stop()}" onmouseout="if (document.all!=null){this.start()}"scrollAmount="1" scrollDelay="2" direction="up" height="150px" width=165px>
            <asp:DataList ID="ListNewMessage" runat="server" Font-Size="10pt" Width=165px style="color: #99ccff">
                    <ItemTemplate>
                        <span style="font-size: 9pt"></span><table border="0" cellpadding="0" cellspacing="0"
                            style="width: 165px">
                            <tr>
                                <td style="width: 15px; height: 16px;" valign=top>
                                    <span style="font-size: 8pt; color: #3366cc;">
                                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/sf.gif" /></span></td>
                                <td style="width: 150px; height: 16px;" align=left>
                                    <asp:Label ID="Label1" Width=145px runat="server" Font-Size="10pt"
                            Text='<%# DataBinder.Eval(Container.DataItem,"Content") %>' ForeColor="SlateBlue" Font-Names="宋体"></asp:Label></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList></MARQUEE>
                </td>
        </tr>
    这个是简单例子。但楼主可以再加个超链接的。我这个是邦定List的。你也可以不需要的。换成别的。
      

  2.   

     <marquee scrollamount="3" onMouseMove="this.stop()" onMouseOut="this.start()" direction="up">
     添加内容           
     </marquee>