+ -
当前位置:首页 → 问答吧 → .net实现文字快速滚动

.net实现文字快速滚动

时间:2011-12-28

来源:互联网

foreach (Consumer consumer in raffle.Consumers)
  {  
  consumer.ConsuemrInfo;  
  }
  这个取到一个consumer.ConsuemrInfo,我如何consumer.ConsuemrInfo的值在lable中快速滚动???急急急急急,在线等

作者: zhangchanghong1   发布时间: 2011-12-28

这样不会滚动的,用的是控件 HTML code
<marquee width="220" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
             <asp:Label ID="Lab_CallSystem" runat="server"></asp:Label>

作者: zsz1001   发布时间: 2011-12-28

少了个结束 HTML code
<marquee width="220" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
             <asp:Label ID="Lab_CallSystem" runat="server"></asp:Label>
         </marquee>

作者: zsz1001   发布时间: 2011-12-28

什么意思,没看懂

作者: zhangchanghong1   发布时间: 2011-12-28

<marquee width="220" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
  <asp:Label ID="Lab_CallSystem" runat="server"></asp:Label>
  </marquee>

scrollamount为滚动时间,时间越大,滚动越快

作者: HJ850126   发布时间: 2011-12-28

同上分析!

作者: zhongyuandongli   发布时间: 2011-12-28

我没说清楚,这是一个抽奖程序,raffle.Consumers(是list的)把这里面的consumer.ConsuemrInfo值循环出来,点击开始按钮,然后滚动,停止下来的consumer.ConsuemrInfo即是中奖人。,大侠可以给个办法吗

作者: zhangchanghong1   发布时间: 2011-12-28