如何让特价区滚动速度慢下来?

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

我用的国美模板,查看 Index.dwt 文件里面的特价区代码如下:

<div class="clearfix" style=" display: none">
<div class="w780" >
<!--{if $promotion_goods} promotion start-->

<h1 class="mod2tit" style="background:url(images/tejiaTitle.gif); position:relative;">
<div class="more clearfix">

<div id="more"><a href="../search.php?intro=promotion">更多</a></div>
</div>
</h1>


<div class="mod1 mod2" style="border-top:none; padding-top:8px;">
<span class="lb"></span><span class="rb"></span>
<div class="clearfix">
<!-- picrotate_left start -->
<DIV class=blk_18>
<A onmouseup=ISL_StopUp_1() class=LeftBotton
onmousedown=ISL_GoUp_1() onmouseout=ISL_StopUp_1() href="javascript:void(0);"
target=_self></A>

<DIV class=pcont id=ISL_Cont_1>
<DIV class=ScrCont>
<DIV id=List1_1>

<!--{foreach from=$promotion_goods item=goods name="promotion_foreach"}-->
<div class="roll_goodsbox">
<div class="roll_imgbox">
<a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}" /></a>
</div>
<a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a><br />
<font class="goodspice market">{$goods.market_price}</font>
<!-- {if $goods.promote_price neq ""} -->
<b class="f1">{$goods.promote_price}</b><br />
<!-- {else}-->
<b class="f1">{$goods.shop_price}</b><br />
<!--{/if}-->

</div>
<!--{/foreach}-->
</DIV>

<DIV id=List2_1>
</DIV>
</DIV>
</DIV>
<A onmouseup=ISL_StopDown_1()
class=RightBotton onmousedown=ISL_GoDown_1() onmouseout=ISL_StopDown_1()
href="javascript:void(0);" target=_self></A>
</DIV>
<SCRIPT type=text/javascript>
<!--
picrun_ini()
//-->
</SCRIPT>
<!-- picrotate_left end -->
</div>
</div>
<scripttype="text/javascript">
var itemLi = $("scrollCont").getElementsByTagName("li").length;
if(itemLi>4){
$("more").style.display= "none";
var scrollPic = new ScrollPic();
scrollPic.scrollContId= "scrollCont";
scrollPic.arrLeftId= "scrollArrLeft";
scrollPic.arrRightId= "scrollArrRight";
scrollPic.dotListId= "scrollDotList";
scrollPic.dotClassName= "dotItem";
scrollPic.dotOnClassName= "dotItemOn";
scrollPic.frameWidth= 428;
scrollPic.pageWidth= 428;
scrollPic.speed = 10;
scrollPic.space = 10;
scrollPic.autoPlay = false;
scrollPic.autoPlayTime= 5;
scrollPic.initialize();
}else{
$("more").style.display= "block";
$("scrollArrLeft").style.display= "none";
$("scrollArrRight").style.display= "none";
}
</script>
<!--{/if} promotion end-->
</div>
</div>


查看了一下代码,好像要让滚动速度慢下来,需要调整这两个:

scrollPic.speed = 10;
scrollPic.space = 10;

我现在都把上面一个调成 36000 了,即 scrollPic.speed = 36000,请问速度为什么还是没有慢下来呢?参照网站 www.xinyijiamall.com ,求高人或者管理员指点.

回答:
顶起来,坐等大神!

顶起来,坐等大神!

顶起来,坐等大神!

顶起来,坐等大神!

新手看帖 学习中 礼貌顶帖

顶起来,坐等大神!

scrollPic.autoPlayTime= 5;

是不是这个?




scrollPic.autoPlay = false;
这个已经否定了

再顶一个