Javascript {literal}
Posted: Mon Aug 23, 2010 7:55 pm
I have a js slider that I'm using in a template and the next/previous isn't displayed, and firefox keeps shouting that $ is undefined with the $(function() line;
I added the {literal} but it doesn't appear to help. This code is in the body of the template. Am I doing something wrong?
Code: Select all
{literal} <!-- Site JavaScript -->
<__script__ type="text/javascript" src="js/jquery-1.3.1.min.js"></__script>
<__script__ type="text/javascript" src="js/jquery.easing.1.3.js"></__script>
<__script__ type="text/javascript" src="js/jquery.ennui.contentslider.js"></__script>
<__script__ type="text/javascript">
$(function() {
$('#one').ContentSlider({
width : '920px',
height : '200px',
speed : 800,
easing : 'easeInOutBack'
});
});
</__script>
{/literal}