asp.net实现封闭连续滚动问题 从数据库中读出数据,有可能是图片名称,在页面中从左到右连续封闭滚动,求具体代码,立即结贴! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <marquee><%# DataBinder.Eval(Container.DataItem, "ColumnYouNeed") %></marquee>;; concealMoon(while(学习){思考;}) 兄弟啊:你的代码不能实现封闭滚动,会出现空白区啊 <div id="marquees"> <table width="210" height="300" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="30"></td> </tr> <tr> <td valign="top"><asp:Label ID="ShowGGao" style="WORD-BREAK:break-all;WORD-WRAP:break-word" Runat="server"></asp:Label></td> </tr> </table></div><script language="JavaScript"> marqueesHeight=300; stopscroll=false; with(marquees){ style.width=0; style.height=marqueesHeight; style.overflowX="visible"; style.overflowY="hidden"; noWrap=true; onmouseover=new Function("stopscroll=true"); onmouseout=new Function("stopscroll=false"); } document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>'); preTop=0; currentTop=0; function init(){ templayer.innerHTML=""; while(templayer.offsetHeight<marqueesHeight){ templayer.innerHTML+=marquees.innerHTML; } marquees.innerHTML=templayer.innerHTML+templayer.innerHTML; setInterval("scrollUp()",40); } document.body.onload=init; function scrollUp(){ if(stopscroll==true) return; preTop=marquees.scrollTop; marquees.scrollTop+=1; if(preTop==marquees.scrollTop){ marquees.scrollTop=templayer.offsetHeight-marqueesHeight; marquees.scrollTop+=1; } }</script> 楼上的兄弟,我要的是封闭滚动啊,不能出现空白的,并且是做成ASCX控件的 如何在同一个excel中将一个sheet复制到另一个sheet中 网站快发布的时候ajaxpro.dll出问题了 asp.net文件系统调试出现以下错误该怎么处理 asp.net iframe问题 gridview 删除视图的数据行,请前辈指点! 求助LOGIN控件 大家做网页的时候对页头页尾那种固定格式的部分用什么代替? 如何使新打开的页面不显示菜单和地址栏?给代码就结贴 Textbox 文本内容获取问题 开发ASP.NET, 不装mdac也可以吗 求一算法,是不是要用Timer组件? 自定义控件加载两次,里面的函数执行了两次,该如何解决,急,在线等.....
你的代码不能实现封闭滚动,会出现空白区啊
<table width="210" height="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"></td>
</tr>
<tr>
<td valign="top"><asp:Label ID="ShowGGao" style="WORD-BREAK:break-all;WORD-WRAP:break-word" Runat="server"></asp:Label></td>
</tr>
</table>
</div>
<script language="JavaScript">
marqueesHeight=300;
stopscroll=false;
with(marquees){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>');
preTop=0; currentTop=0;
function init(){
templayer.innerHTML="";
while(templayer.offsetHeight<marqueesHeight){
templayer.innerHTML+=marquees.innerHTML;
}
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML;
setInterval("scrollUp()",40);
}
document.body.onload=init;
function scrollUp(){
if(stopscroll==true) return;
preTop=marquees.scrollTop;
marquees.scrollTop+=1;
if(preTop==marquees.scrollTop){
marquees.scrollTop=templayer.offsetHeight-marqueesHeight;
marquees.scrollTop+=1;
}
}
</script>