It works fine in a normal html document but when i add it to my cms template it get the following error:
string(132) "Smarty error: [in tpl_head:27 line 9]: syntax error: unrecognized tag: $('#featured').orbit(); (Smarty_Compiler.class.php, line 446)" string(110) "Smarty error: [in tpl_head:27 line 9]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
THe code im trying to implement is
Code: Select all
<__script__ type="text/javascript">
$(window).load(function() {
$('#featured').orbit();
});
</__script>
Thanks in advance