360的模板为什么下面的代码开始可以实现无缝滚动现在不可以了

2016-07-07 16:10 来源:www.chinab4c.com 作者:ecshop专家

请大侠帮忙看看,就在后台加了一个订单,就不滚动了
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--{if $invoice_list}-->
<style type="text/css">
.vote form{display:inline;}
.vote form a{ text-decoration:underline;}
</style>
<div class="modTitle clearfix">
<span class="left"></span><span class="right"></span>
<div class="f_l">{$lang.shipping_query}</div>
</div>
<div class="modBox vote">
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<DIV id=demo style="overflow:hidden;height :230px;width :180px;">
<DIV id=demo1>
<!-- 发货单查询{foreach from=$invoice_list item=invoice} -->
<strong>{$lang.order_number}</strong> {$invoice.order_sn}<br />
<strong>{$lang.consignment}</strong> {$invoice.invoice_no}<br />
<div style="border-bottom:1px dashed #ccc; line-height:8px; height:8px; overflow:hidden; margin-bottom:5px;"></div>
<!-- 结束发货单查询{/foreach}-->
</div>
<DIV id=demo2>
</DIV>
</DIV>
</DIV>
<SCRIPT>
var speed=100
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function(){clearInterval(MyMar)}
demo.onmouseout=function(){MyMar=setInterval(Marquee,speed)}
</SCRIPT>
<!-- {/if} -->

回答:
请高手看下哪里出问题了,现在既然不动了都

仔细检查下那个区域的高度,如果高度设置过高,那自然也就不滚动了