Hi I'm a bit stuck here, i cant seem to be able to include the javascript file in my cmsms template.
<script src="js/slides.min.jquery.js"></script>
<script>
$(function(){
$('#slides').slides({
preload: true,
preloadImage: 'img/loading.gif',
play: 5000,
pause: 2500,
hoverPause: true
});
});
</script>
This code doesent work, it neither includes the js/slides.min.jquery.js nor does it run the script,, can any one please explain how javascript is included in cmsms templates...
You need to include the javascript in
{literal}
tags, to avoid cmsms trying to parse it. This is an example (from one of my sites), that includes the Google analytics javascript.