I have jumped into another developers sites and am trying to build a new site using his framework. I have the basically template completed and am trying to create a slideshow, with three slides that will scroll from left to right automatically. I am confused because I have taken the same jquery.js file, global content block code, html code and css from a similar site with the desired slideshow. Unfortunately this doesn't seem to work on my new site. (I am obviously changing css and slight sizes to match my current sites templates.) Would appreciate any help even if there is an easier more common way of coding slideshows. I am relatively new to developing so I hope I have been clear enough.
This is the code I have taken from the other sites working slideshow's global content block:
Code: Select all
{for $foo=1 to 10}{capture assign="slidefile"}images/slideshow/{$root_alias}/slideshow{if $foo < 10}0{/if}{$foo}.jpg{/capture}{capture assign="quotefile"}images/slideshow/{$root_alias}/quote{if $foo < 10}0{/if}{$foo}.png{/capture}{capture assign="x"}{if $root_alias eq "home"}{if $foo eq 1 or $foo eq 2}40{else}700{/if}{elseif $root_alias eq "news"}{elseif $root_alias eq "services"}{elseif $root_alias eq "our-history"}{elseif $root_alias eq "plant-machinery"}{elseif $root_alias eq "mill-shop"}{elseif $root_alias eq "contact"}{/if}{/capture}{if file_exists($slidefile)}<img src="{$slidefile}" rel="{if file_exists($quotefile)}{$quotefile}{/if}" width="960" height="350" data-x="{$x}" alt="{$title}" />{/if}{/for}
Code: Select all
<div id="slideshow-wrapper">
<div id="caption-container"><div id="caption"></div></div>
<div id="slideshow">{global_content name='slideshow'}</div>
<a href="#" id="prev" title="Show previous"> </a>
<a href="#" id="next" title="Show next"> </a>
</div>
Thanks