ecshop 前台最新定单滚动

2016-07-07 15:04 来源:www.chinab4c.com 作者:ecshop专家



在首页滚动显示最新的定单

www.bocgd-lefeny.com没有显示

但www.jphello.com就能显示

定单多了不显示 定单少了比如只有一个 就显示

代码如下:谁能来给诊断诊断

index.dwt代码


<div style="padding-top:22px;_padding-top:0px;">
<div class="subinfo_header">
最新订单
</div>
<div id="demo" style="overflow:hidden;height:100px" class="subinfo_body">
<div id="demo1">
<ul>
<!-- #BeginLibraryItem "/library/invoice_query.lbi" --><!-- #EndLibraryItem -->
</ul>
</div>
<div id="demo2"></div>
</div>
<SCRIPT>
<!--
var speed=40;
var FGDemo=document.getElementById('demo');
var FGDemo1=document.getElementById('demo1');
var FGDemo2=document.getElementById('demo2');
FGDemo2.innerHTML=FGDemo1.innerHTML
function Marquee1(){
if(FGDemo2.offsetHeight-FGDemo.scrollTop<=0)
FGDemo.scrollTop-=FGDemo1.offsetHeight
else{
FGDemo.scrollTop++
}
}
var MyMar1=setInterval(Marquee1,speed)
FGDemo.onmouseover=function() {clearInterval(MyMar1)}
FGDemo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)}
-->
</SCRIPT>
</div>

回答:
invoice_query.lbi代码

<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<!--{if $invoice_list}-->
<!-- 发货单查询{foreach from=$invoice_list item=invoice} -->
<li> <span class="left">· {$invoice.address}{$invoice.consignee}商品</span><span class="right">已发货</span> <span class="clear"></span> </li>
<li> <span class="left">· {$lang.order_number}: {$invoice.order_sn}</span><span class="clear"></span> </li>
<!-- 结束发货单查询{/foreach}-->
<!-- {/if} -->