<aspx文件>
<MARQUEE οnmοuseοver="stop();" οnmοuseοut="start();" scrollAmount="1" scrollDelay="50" direction="up" height="350">
<asp:HyperLink ID ="HL_1" runat="server" text ="" ></asp:HyperLink>
<asp:HyperLink ID ="HL_2" runat="server" text ="" ></asp:HyperLink>
..................
</MARQUEE>
<CS文件>
连接数据库,读取ID和标题
string id = ID<连接ID> ;
HL_1.Text = 标题;
HL_1.NavigateUrl = "index.htm?id=" + id + "";
OK了。
公告向上滚动;
附:去掉超连接:
<style type="text/css">
a:link { text-decoration: none;color: blue}
a:active { text-decoration:blink}
a:hover { text-decoration:underline;color: red}
a:visited { text-decoration: none;color: green}
</style>