ok so my <head> index.php look like this :
Code:
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/stepcarousel.js"></script>
<script type="text/javascript" src="js/stepcarouselSetup_start.js"></script>
<script type="text/javascript" src="js/stepcarouselSetup_biografia.js"></script>
in stepcarouselSetup_start.js is :
Code:
stepcarousel.setup(
{
galleryid: 'start', //id of carousel DIV
beltclass: 'start_belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'start_panel', //class of panel DIVs each holding content
autostep: {enable:false, moveby:1, pause:300},
panelbehavior: {speed:500, wraparound:false, wrapbehavior:'slide', persist:false},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})
in stepcarouselSetup_biografia.js is :
Code:
stepcarousel.setup({
galleryid: 'biografia', //id of carousel DIV
beltclass: 'biografia_belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'biografia_panel', //class of panel DIVs each holding content
autostep: {enable:false, moveby:1, pause:300},
panelbehavior: {speed:500, wraparound:false, wrapbehavior:'slide', persist:false},
defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})
in <body>
menu with start page and biografia page
in start.php
Code:
<div id="start" class="stepcarousel">
<div class="start_belt">
<div class="start_panel">
//here was content for panel but it was in polish language so u dont need to read this
</div><!--end panel-->
</div><!--end belt-->
</div><!--end start.stepcarousel-->
<!--controls for carousel-->
<div id="start_strzala_l">
<a href="javascript:stepcarousel.stepBy('start', -1)"><img src="img/strzala_l.png" alt="" /></a>
</div><!--end strzala_l-->
<div id="start_strzala_r">
<a href="javascript:stepcarousel.stepBy('start', 1)"><img src="img/strzala_r.png" alt="" /></a>
</div>
<div id="start-paginate">
<img src="img/btn_off.png" data-over="img/btn_hover.png" data-select="img/btn_on.png" data-moveby="1" alt=""/>
</div>
and in biografia.php
Code:
<div id="biografia" class="stepcarousel">
<div class="biografia_belt">
<div class="biografia_panel">
<img src="img/biografia_slajd.jpg">
</div><!--end panel-->
<div class="biografia_panel">
<img src="img/biografia_slajd.jpg">
</div><!--end panel-->
<div class="biografia_panel">
<img src="img/biografia_slajd.jpg">
</div><!--end panel-->
</div><!--end belt-->
</div><!--end biografia.stepcarousel-->
<!--corousel controls-->
<div id="biografia_strzala_l">
<a href="javascript:stepcarousel.stepBy('biografia', -1)"><img src="img/biografia_l.png" alt="" /></a>
</div><!--end biografia_strzala_l-->
<div id="biografia_strzala_r">
<a href="javascript:stepcarousel.stepBy('biografia', 1)"><img src="img/biografia_r.png" alt="" /></a>
</div><!--end biografia_strzala_r-->
<div id="biografia-paginate">
<img src="img/btn_off.png" data-over="img/btn_hover.png" data-select="img/btn_on.png" data-moveby="1" alt=""/>
</div>
and the problem is :
site is loading only one cofnig : stepcarouselSetup_start.js, dont know why second is skipped.
What am i doing wrong, and how i shoud fix it to carousel would load how many configs i want ?
I hope everything is clear.
Thanks for help
Bookmarks