News Slider
Posted: Tue Jan 29, 2019 12:29 pm
Hi
Can anyone help with this? Trying to add a news slider code taken from
https://cmscanbesimple.org/blog/create- ... -or-images
Using cmsms version 2.2.8 and template bandb_master.
This code in the head.
{cms_jquery}
<__script__ type="text/javascript" src="scripts/jquery.cycle.all.min.js"></__script>
<__script__ type="text/javascript">
$(document).ready(function() {
$('.slider').cycle( {
fx: 'scrollRight',
timeout: 5000,
pause: 1,
cleartypeNoBg: true
} );
} );
</__script>
And the following in a page.
<div class="slider">
{foreach from=$items item=entry}
<div class="NewsSummary">
{news category="General" number='5'}
</div>
{/foreach}
</div
But nothing shows apart from a blank box.
The link to the jquery file is correct and in the right place.
So is there something missing or will it just not work with the current version?
Thanks for ant advice.
Can anyone help with this? Trying to add a news slider code taken from
https://cmscanbesimple.org/blog/create- ... -or-images
Using cmsms version 2.2.8 and template bandb_master.
This code in the head.
{cms_jquery}
<__script__ type="text/javascript" src="scripts/jquery.cycle.all.min.js"></__script>
<__script__ type="text/javascript">
$(document).ready(function() {
$('.slider').cycle( {
fx: 'scrollRight',
timeout: 5000,
pause: 1,
cleartypeNoBg: true
} );
} );
</__script>
And the following in a page.
<div class="slider">
{foreach from=$items item=entry}
<div class="NewsSummary">
{news category="General" number='5'}
</div>
{/foreach}
</div
But nothing shows apart from a blank box.
The link to the jquery file is correct and in the right place.
So is there something missing or will it just not work with the current version?
Thanks for ant advice.