滚动公告(用数据绑定显示的方法)<script>
滚动公告(用数据绑定显示的方法)        
<!--
滚动公告(用数据绑定显示的方法)        
function news_scroll(divid, height, arrStack)
滚动公告(用数据绑定显示的方法){
滚动公告(用数据绑定显示的方法)    
this.ie = navigator.userAgent.indexOf('MSIE')>=0;
滚动公告(用数据绑定显示的方法)    
this.div = document.all[divid]; 
滚动公告(用数据绑定显示的方法)    
this.to=this.j=0;this.po=1;this.mflag=false;  
滚动公告(用数据绑定显示的方法)        
this.st1=arrStack; 
滚动公告(用数据绑定显示的方法)        
this.rolling=(height%2)?3:2;
滚动公告(用数据绑定显示的方法)    
this.up = height; 
滚动公告(用数据绑定显示的方法)    
this.height = height; 
滚动公告(用数据绑定显示的方法)    
this.down = 0-height;
滚动公告(用数据绑定显示的方法)
滚动公告(用数据绑定显示的方法)    
this.start = news_scroll_start;
滚动公告(用数据绑定显示的方法)    
this.go = news_scroll_go; 
滚动公告(用数据绑定显示的方法)    
this.gt = news_scroll_gt;     
滚动公告(用数据绑定显示的方法)    
this.chgdata = news_scroll_chgdata; 
滚动公告(用数据绑定显示的方法)    
this.chog = news_scroll_chog; 
滚动公告(用数据绑定显示的方法)    
return this
滚动公告(用数据绑定显示的方法)}
滚动公告(用数据绑定显示的方法)
function news_scroll_start(objName) { 
滚动公告(用数据绑定显示的方法)    
this.chgdata(1); this.chog(1,objName);
滚动公告(用数据绑定显示的方法)    
this.mflag = true;
滚动公告(用数据绑定显示的方法)}
滚动公告(用数据绑定显示的方法)
function news_scroll_go(o)
滚动公告(用数据绑定显示的方法){
return this.div.all['e'+o];}
滚动公告(用数据绑定显示的方法)
function news_scroll_gt()
滚动公告(用数据绑定显示的方法){
return this.ie?"pixelTop":"top";}
滚动公告(用数据绑定显示的方法)
function news_scroll_chgdata(o) 
滚动公告(用数据绑定显示的方法)
滚动公告(用数据绑定显示的方法)    
var szhtml = ""
滚动公告(用数据绑定显示的方法)    
for(var idx=0; idx< this.st1.length; idx++)
滚动公告(用数据绑定显示的方法)        szhtml 
+= "<div style='height:"+this.height+"'>"+this.st1[idx]+"</div>";  
滚动公告(用数据绑定显示的方法)    
for(var idx=0; idx< this.st1.length; idx++)
滚动公告(用数据绑定显示的方法)        szhtml 
+= "<div style='height:"+this.height+"'>"+this.st1[idx]+"</div>";  
滚动公告(用数据绑定显示的方法)    
this.go(o).innerHTML = szhtml;     
滚动公告(用数据绑定显示的方法)}
滚动公告(用数据绑定显示的方法)
function news_scroll_chog(o,objName)
滚动公告(用数据绑定显示的方法){
滚动公告(用数据绑定显示的方法)    
if (this.st1.length==0return;
滚动公告(用数据绑定显示的方法)        
if (this.mflag) 
滚动公告(用数据绑定显示的方法)              eval(
"this.go(o).style."+this.gt()+"=parseInt(this.go(o).style."+this.gt()+")-"+this.rolling+";"); 
滚动公告(用数据绑定显示的方法)        
if (parseInt(eval("this.go(o).style."+this.gt())%this.height) == 0
滚动公告(用数据绑定显示的方法)        {
滚动公告(用数据绑定显示的方法)        
if( parseInt(eval("this.go(o).style."+this.gt())) == this.height*this.st1.length*-1
滚动公告(用数据绑定显示的方法)            eval(
"this.go(o).style."+this.gt()+"=0;");
滚动公告(用数据绑定显示的方法)        setTimeout(
"news_scroll_settimeout("+o+",'"+objName+"')",4000);
滚动公告(用数据绑定显示的方法)        }    
滚动公告(用数据绑定显示的方法)    
else
滚动公告(用数据绑定显示的方法)        setTimeout(
"news_scroll_settimeout("+o+",'"+objName+"')",1);
滚动公告(用数据绑定显示的方法)}
滚动公告(用数据绑定显示的方法)
function news_scroll_settimeout(o,objName)
滚动公告(用数据绑定显示的方法){ obj 
= eval(objName); obj.chog(o,objName); }
滚动公告(用数据绑定显示的方法)
滚动公告(用数据绑定显示的方法)        
//-->
滚动公告(用数据绑定显示的方法)
        </script>



滚动公告(用数据绑定显示的方法)<TABLE id="Table5" cellSpacing="0" cellPadding="0" width="100%" border="0">
滚动公告(用数据绑定显示的方法)                                            
<TR>
滚动公告(用数据绑定显示的方法)                                                
<TD><STRONG>相关收藏:</STRONG></TD>
滚动公告(用数据绑定显示的方法)                                                
<TD>
滚动公告(用数据绑定显示的方法)                                                    
<span id="Finance" style="BACKGROUND:none transparent scroll repeat 0% 0%;OVERFLOW:hidden;; WIDTH:expression(((document.body.offsetWidth*0.35)-100));CLIP:; WHITE-SPACE:nowrap;POSITION:relative;TOP:0px;HEIGHT:15px;TEXT-OVERFLOW:ellipsis"
滚动公告(用数据绑定显示的方法)                                                        onmouseover
="objFinance.mflag=false" onmouseout="objFinance.mflag=true"><span id="e1" style="LEFT:0px;POSITION:absolute;TOP:0px;HEIGHT:15px">
滚动公告(用数据绑定显示的方法)                                                        
</span><span id="e2" style="LEFT:0px;POSITION:absolute;TOP:15px;HEIGHT:15px"></span>
滚动公告(用数据绑定显示的方法)                                                    
</span>

滚动公告(用数据绑定显示的方法)        
var st1 = new Array (
滚动公告(用数据绑定显示的方法)        
<asp:Repeater id="Repeater1" runat="server">
滚动公告(用数据绑定显示的方法)                    
<ItemTemplate>
滚动公告(用数据绑定显示的方法)                        '
<a href=<%"/FormMain.aspx?di_id=" & DataBinder.Eval(Container.DataItem,"di_id"& "&url=" & DataBinder.Eval(Container.DataItem,"url")%> class=ListTiltem target=_blank><%# DataBinder.Eval(Container.DataItem,"title")%></a></li>',
滚动公告(用数据绑定显示的方法)                    
</ItemTemplate>
滚动公告(用数据绑定显示的方法)        
</asp:Repeater>
滚动公告(用数据绑定显示的方法)    
滚动公告(用数据绑定显示的方法)        '
<a href="/default.aspx" target="_blank" >更多精彩网摘滚动公告(用数据绑定显示的方法)</a>');    
滚动公告(用数据绑定显示的方法)    
var objFinance = new news_scroll('Finance',15,st1);
滚动公告(用数据绑定显示的方法)    objFinance.start('objFinance');
滚动公告(用数据绑定显示的方法)                                                    
</script>
滚动公告(用数据绑定显示的方法)                                                    
<DIV></DIV>
滚动公告(用数据绑定显示的方法)                                                
</TD>
滚动公告(用数据绑定显示的方法)                                            
</TR>
滚动公告(用数据绑定显示的方法)                                        
</TABLE>

相关文章: