【原创】Zen-Cart滚动显示news(news_scroll_box)

方法:找到 includes/templates/(your template)/sideboxes/tpl_news_scroll_box.php   (PS:若该目录下没有该文件)则在includes/templates/template_default/sideboxes/tpl_news_scroll_box.php)

搜索

while (!$news_box_query->EOF) {

并在其上三行左右($content =”;的下面)添加一句

  $content .= ‘<marquee direction= “up”  width=150 scrolldelay=0  scrollamount=5 behavior=sroll   onmouseover=”this.stop();”   onmouseout=”this.start()”>’;

然后再其下十行左右找到

$content .= ‘<hr>’;

将其替换为:

$content .= ‘</marquee><hr>’;

 

还有一个比较简单的办法,就是替换法->
下载tpl_news_scroll_box.rar 解压后将得到的 tpl_news_scroll_box.php 替换includes\templates\[当前使用模板]\tpl_news_scroll_box.php

此条目发表在 zen-cart 分类目录,贴了 , 标签。将固定链接加入收藏夹。

【原创】Zen-Cart滚动显示news(news_scroll_box)》有 2 条评论

  1. seo 说:

    是的,Discuz中有许多不错的有利于seo的插件的,制件网站地图我常用Google XML Sitemaps

  2. Pingback 引用通告: 老猫博客 » Zen-Cart滚动显示news(news_scroll_box)

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>