给你的Magento模板加上可以动的幻灯片——focalprice模板应用

2,659 人次阅读
一条评论

共计 1931 个字符,预计需要花费 5 分钟才能阅读完成。

一般情况下,加入这段代码,就可以占据整个位置了

[php]

<div class="top-banners">
<div id="slider">
<div class="slidercontrolwr">
<div class="slidercontrol"> <a title="Slide 1" href="#section1">1</a> <a title="Slide 2" href="#section2">2</a> <a title="Slide 3" href="#section3">3</a> </div>
</div>
<div class="scroller">
<div class="content">
<div id="section1" class="sectionslide"><a href="{{store direct_url="#"}}"></a></div>
<div id="section2" class="sectionslide"><a href="{{store direct_url="#"}}"></a></div>
<div id="section3" class="sectionslide"><a href="{{store direct_url="#"}}"></a></div>
</div>
</div>
</div>
<script type="text/javascript">// <![CDATA[ var my_glider = new Glider(‘slider’, {duration:0.5, autoGlide: true, frequency: 4, initialSection: ‘section1’}); // ]]></script></div>
{{block type="bmproducts/product_special" name="homepage.special" title="Special Products" productsCount="6" template="bmproducts/product/special.phtml"}}
[/php]

但是实际上,仅是占位里面的图片显示不出来,怎么办你?增加IMG URL即可。Just Like This.

 
[php]
<div class="top-banners">
<div id="slider">
<div class="slidercontrolwr">
<div class="slidercontrol"> <a title="Slide 1" href="#section1">1</a> <a title="Slide 2" href="#section2">2</a> <a title="Slide 3" href="#section3">3</a> </div>
</div>
<div class="scroller">
<div class="content">
<div id="section1" class="sectionslide"><a href="{{store direct_url="#"}}"><img src="{{skin url=""}}images/slider/slider1.jpg" alt="" /></a></div>
<div id="section2" class="sectionslide"><a href="{{store direct_url="#"}}"><img src="{{skin url=""}}images/slider/slider2.jpg" alt="" /></a></div>
<div id="section3" class="sectionslide"><a href="{{store direct_url="#"}}"><img src="{{skin url=""}}images/slider/slider3.jpg" alt="" /></a></div>
</div>
</div>
</div>
<script type="text/javascript">// <![CDATA[ var my_glider = new Glider(‘slider’, {duration:0.5, autoGlide: true, frequency: 4, initialSection: ‘section1’}); // ]]></script></div>
{{block type="bmproducts/product_special" name="homepage.special" title="Special Products" productsCount="6" template="bmproducts/product/special.phtml"}}
[/php]

正文完
 0
评论(一条评论)
2013-11-06 16:38:05 回复

:razz:

 Windows  MSIE  中国广东省佛山市电信