请问如何实现发货查询是上下滚动的

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


  1. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  2. <!--{if $invoice_list}-->
  3. <div class="general">
  4. <h1>
  5. <span class="left"></span><span class="right"></span>
  6. <p>{$lang.shipping_query}</p>
  7. </h1>
  8. <div class="content">
  9. <div class="contentR vote">
  10. <marquee direction="up" scrollamount="2" >
  11. <!-- 发货单查询{foreach from=$invoice_list item=invoice} -->
  12. {$lang.order_number} {$invoice.order_sn}<br />
  13. {$lang.consignment} {$invoice.invoice_no}
  14. <div class="blank"></div>
  15. <!-- 结束发货单查询{/foreach}-->
  16. </marquee>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- {/if} -->
复制代码
-----------------------------------------------------------
我是这样写的,请问一下,怎么样才能让鼠标点上去就停止滚动,移开又继续滚动呢?

回答:
試試看:
  1. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  2. <!--{if $invoice_list}-->
  3. <div class="general">
  4. <h1>
  5. <span class="left"></span><span class="right"></span>
  6. <p>{$lang.shipping_query}</p>
  7. </h1>
  8. <div class="content">
  9. <div class="contentR vote">
  10. <marquee direction="up" scrollamount="2" onMouseOver="this.stop()" onMouseOut="this.start()">
  11. <!-- 发货单查询{foreach from=$invoice_list item=invoice} -->
  12. {$lang.order_number} {$invoice.order_sn}<br />
  13. {$lang.consignment} {$invoice.invoice_no}
  14. <div class="blank"></div>
  15. <!-- 结束发货单查询{/foreach}-->
  16. </marquee>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- {/if} -->
复制代码

正需要这个

谢谢,已经实现

发货查询

正需要这个功能!支持一下!

2楼所言极是

演示地址我的网站新闻公告终于搞定了,www.kule-buy.com
去我发的论坛贴去看看吧, 有代码的2.7版本的,http://bbs.ecshop.com/viewthread.php?tid=100373&extra=

你这个不能实现无缝向上滚动

为什么我加入的代码没有效果呢?
我的代码是:
  1. <!-- #EndLibraryItem -->
  2. <!-- #BeginLibraryItem "/library/invoice_query.lbi" -->
  3. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  4. <!--{if $invoice_list}-->
  5. <div class="general">
  6. <h1>
  7. <span class="left"></span><span class="right"></span>
  8. <p>{$lang.shipping_query}</p>
  9. </h1>
  10. <div class="content">
  11. <div class="contentR vote">
  12. <marquee direction="up" scrollamount="2" onMouseOver="this.stop()" onMouseOut="this.start()">
  13. <!-- 发货单查询{foreach from=$invoice_list item=invoice} -->
  14. {$lang.order_number} {$invoice.order_sn}<br />
  15. {$lang.consignment} {$invoice.invoice_no}
  16. <div class="blank"></div>
  17. <!-- 结束发货单查询{/foreach}-->
  18. </marquee>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- {/if} -->
  23. <!-- #EndLibraryItem -->
  24. <!-- #BeginLibraryItem "/library/brands.lbi" -->
复制代码