滚动效果,有些浏览器不支持

会将repeater列表中的记录一条一条的滚动显示

html代码:

<marquee scrollamount="2" width="200" onmouseover="this.stop()" onmouseout="this.start()">
                                <asp:Repeater runat="server" ID="rp_noticelist">
                                    <ItemTemplate>
                                        <a class="xzgg2" href='Frm_NoticeInfo.aspx?id=<%#Eval("Threads_id") %>'>[<%#Eval("time") %>]<%#Eval("Subject")%></a>
                                    </ItemTemplate>
                                </asp:Repeater>
                             </marquee>

css:

.xzgg2 { color:#969696;text-decoration: none; padding:1px 10px 1px 10px;}
.xzgg2 :hover{color:#a45b00;text-decoration: none; padding:1px 10px 1px 10px;}

posted @ 2014-01-03 10:26  茂茂  阅读(155)  评论(0编辑  收藏  举报