另外要求 公告内容可以维护 。数据库用sqlserver2000

解决方案 »

  1.   

    我的想法:
    用HTML的marquee实现滚动效果,里头的内容用Repeater控件从数据库中读出。至于公告的维护,另外做个页面很简单就可以实现。<marquee scrollamount='1' scrolldelay='80' direction='up' width='190' height='189'>
    新闻一
      11111111111111111111111111111
    <BR>
    新闻二
      22222222222222222222222222222
    <BR>
    新闻三
      33333333333333333333333333333
    <BR>
    新闻四
      44444444444444444444444444444
    <BR>
    新闻五
      55555555555555555555555555555
    <BR>
    新闻六
      66666666666666666666666666666
    <BR>
    新闻七
      77777777777777777777777777777
    </marquee>
      

  2.   

    没做过实验不知正不正确,思想大概是这样
    在滚动页面
    please put the code:
    <marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
    <script src="marquee.aspx"></script>
      </marquee>in the marquee.apsx
     
    //连接数据库
    string str="";
    while(dr.read())
    {
    a+="·<a href='test.aspx' target='_blank'>"+dr["title"].tostring()+"</a>";
    }
    Response.write(a);