cotonti.com : Jquery and Smarty https://www.cotonti.com Последние сообщения в теме Cotonti en Sat, 11 Apr 2026 16:29:18 -0000 GHengeveld
<script type="text/javascript">
$(function () {
        $('#basicCube').imagecube({imagePath: 'img/'});
        $('#basicCube2').imagecube({imagePath: 'img/'});
        $('#basicCube3').imagecube({imagePath: 'img/'});
        $('#basicCube4').imagecube({imagePath: 'img/'});
});
</script>

Even better with document.ready check:

<script type="text/javascript">
$(document).ready(function() {
        $('#basicCube').imagecube({imagePath: 'img/'});
        $('#basicCube2').imagecube({imagePath: 'img/'});
        $('#basicCube3').imagecube({imagePath: 'img/'});
        $('#basicCube4').imagecube({imagePath: 'img/'});
});
</script>
]]>
пн, 28 фев 2011 05:20:18 -0000
sosnix I have problem with working jquery script. jCube script, so I can see image but they are no working well, they are doesnt work.

In HTML file the script is working very well!

Everythink is working fine only script doesnt work!~Why?
Please help me!

TPL file from cms Cotonti. header.tpl
http://pastebin.com/dfxt13dB
and
perfect working html file!
http://pastebin.com/bTF54LP1

Added 3 minutes later:

ok topic going to trash.
Path to js files was wrong.]]>
пт, 25 фев 2011 08:08:12 -0000