Il codice che metto in HEAD è il seguente
Code: Select all
<__script__ type='text/javascript' src='uploads/mytheme/js/jquery.min.js'></__script>
<__script__ type='text/javascript' src='uploads/mytheme/js/jquery.cycle.all.min.js'></__script>
<__script__ type='text/javascript'>
$(document).ready(function() {
$('.slideshow').cycle({ fx: 'fade' });
});
</__script>
Code: Select all
<div class="slideshow">
<img src="uploads/mytheme/foto01.jpg" alt="1" />
<img src="uploads/mytheme/foto02.jpg" alt="2" />
<img src="uploads/mytheme/foto03.jpg" alt="3" />
<img src="uploads/mytheme/foto04.jpg" alt="4" />
<img src="uploads/mytheme/foto05.jpg" alt="5" />
</div>
string(233) "Smarty error: [in tpl_head:23 line 12]: syntax error: unrecognized tag: $('.slideshow').cycle({ fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc... (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 12]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
C'è un modo specifico per inserire javascript nel modello?
Grazie
Ciao