Doesnt work well!
sosnix |
|
---|---|
Hi,
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. |
GHengeveld |
|
---|---|
You can combine the 4 javascript blocks into a single block:
<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> |