想实现不间断连续滚动文字的效果,可不滚动,怎么解决?
滚动范围width="183" height="100"
<!------本站公告--开始------------>
<div id="marqueen1"style=overflow:hidden;height:154;width:175;padding-left:8px>
<span class="style3">
通用网址: <span class="style9">大大大大大 大大大大 大大大大</span><br>
网络实名:<span class="style9">大大大大</span><br>
</span>
</div>
<!--滚动代码开始 -->
<div id="marqueen2" style="position:absolute; z-index:1; visibility:hidden; left: 14px; top: 5944px;"></div>
<script>
marqueesHeight=154;
stopscroll=false;
marqueen1.scrollTop=0;
with(marqueen1){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preTop=0; currentTop=0; stoptime=0;
function init_srolltext(){
marqueen2.innerHTML="";
marqueen2.innerHTML+=marqueen1.innerHTML;
marqueen1.innerHTML=marqueen2.innerHTML+marqueen2.innerHTML;
setInterval("scrollUp()",100);
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==154) //滚动高
{
stoptime+=0;
currentTop-=1;
if(stoptime==0)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=marqueen1.scrollTop;
marqueen1.scrollTop+=1;
if(preTop==marqueen1.scrollTop){
marqueen1.scrollTop=marqueen2.offsetHeight-marqueesHeight;
marqueen1.scrollTop+=1;
}
}
}
init_srolltext();
</script>
<!--滚动代码结束-->
<!------本站公告--结束------------>