<%@ Control Language="c#" AutoEventWireup="false" Codebehind="BulletinScroll.ascx.cs" Inherits="XpShop.WebUI.Modules.BulletinScroll" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div class="lframe">
	<table width="95%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="tl"></td>
			<td class="tm">
				<span class="tt">×îÐÂ¹«¸æ</span>
			</td>
			<td class="tr"></td>
		</tr>
	</table>
	<table width="95%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="ml"></td>
			<td class="mm" align="right" height="200">
				<div id="bulletindemo" style="OVERFLOW:hidden;WIDTH:170px;HEIGHT:160px">
					<div id="bulletindemo1">
						<table>
							<tr>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<asp:Repeater Runat="server" id="rptBulletin">
											<ItemTemplate>
											<tr>
												<td>
													[<font color="#FF6600"><%#DataBinder.Eval(Container.DataItem,"Title")%></font>]<br>
													<%#DataBinder.Eval(Container.DataItem,"Content")%><br>
												</td>
											</tr>
											</ItemTemplate>
										</asp:Repeater>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="bulletindemo2"></div>
				</div>
				<script language="javascript">
					var speed=30;
					bulletindemo2.innerHTML=bulletindemo1.innerHTML + bulletindemo1.innerHTML +bulletindemo1.innerHTML
					var bulletMyMar=setInterval(BulletinMarquee,speed) 
					
					function BulletinMarquee()
					{
						if(bulletindemo2.offsetTop-bulletindemo.scrollTop<=0) 
						bulletindemo.scrollTop-=bulletindemo1.offsetHeight 
						else{
						bulletindemo.scrollTop = bulletindemo.scrollTop+1;
						}
			
					}
					
					bulletindemo.onmouseover=function() {clearInterval(bulletMyMar)} 
					bulletindemo.onmouseout=function() {bulletMyMar=setInterval(BulletinMarquee,speed)} 
					
				</script>
			</td>
			<td class="mr"></td>
		</tr>
	</table>
	<table width="95%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="bl"></td>
			<td class="bm">&nbsp;</td>
			<td class="br"></td>
		</tr>
	</table>
</div>
