<script type="text/javascript">
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: true, 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 ['external', 'path_to_external_file']
})
</script>
<div id="mygallery" class="stepcarousel">
<div class="belt">
<div class="panel">
<img src="http://i30.tinypic.com/531q3n.jpg" />
</div>
<div class="panel">
<img src="http://i29.tinypic.com/xp3hns.jpg" />
</div>
<div class="panel">
<img src="http://i26.tinypic.com/11l7ls0.jpg" />
</div>
<div class="panel">
<img src="http://i31.tinypic.com/119w28m.jpg" />
</div>
<div class="panel">
<img src="http://i27.tinypic.com/34fcrxz.jpg" />
</div>
</div>
</div>
<p>
<b>Current Panel:</b> <span id="statusA"></span> <b style="margin-left: 30px">Total Panels:</b> <span id="statusC"></span><br />
<a href="javascript:stepcarousel.stepBy('mygallery', -1)">Back 1 Panel</a> <a href="javascript:stepcarousel.stepBy('mygallery', 1)" style="margin-left: 80px">Forward 1 Panel</a> <br />
<a href="javascript:stepcarousel.stepTo('mygallery', 1)">To 1st Panel</a> <a href="javascript:stepcarousel.stepBy('mygallery', 2)" style="margin-left: 80px">Forward 2 Panels</a>
</p>
Zapisalem 2 pliki
jquery-1.2.6.pack.js
stepcarousel.js
Jak cos zle mam,prosze mi wytlumaczyc jak zrobić zeby przywijac obrazki tak jak na http://www.dynamicdrive.com/dynamicindex...rousel.htm
stepcarousel.setup({
galleryid: 'mygallery', //id of carousel DIV
beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
panelclass: 'panel', //class of panel DIVs each holding content
autostep: {enable:true, moveby:1, pause:3000},
panelbehavior: {speed:500, wraparound:false, persist:true},
defaultbuttons: {enable: true, 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 ['external', 'path_to_external_file']
})
</script>
<div id="mygallery" class="stepcarousel">
<div class="belt">
<div class="panel">
<img src="http://i30.tinypic.com/531q3n.jpg" />
</div>
<div class="panel">
<img src="http://i29.tinypic.com/xp3hns.jpg" />
</div>
<div class="panel">
<img src="http://i26.tinypic.com/11l7ls0.jpg" />
</div>
<div class="panel">
<img src="http://i31.tinypic.com/119w28m.jpg" />
</div>
<div class="panel">
<img src="http://i27.tinypic.com/34fcrxz.jpg" />
</div>
</div>
</div>
<p>
<b>Current Panel:</b> <span id="statusA"></span> <b style="margin-left: 30px">Total Panels:</b> <span id="statusC"></span><br />
<a href="javascript:stepcarousel.stepBy('mygallery', -1)">Back 1 Panel</a> <a href="javascript:stepcarousel.stepBy('mygallery', 1)" style="margin-left: 80px">Forward 1 Panel</a> <br />
<a href="javascript:stepcarousel.stepTo('mygallery', 1)">To 1st Panel</a> <a href="javascript:stepcarousel.stepBy('mygallery', 2)" style="margin-left: 80px">Forward 2 Panels</a>
</p>
Zapisalem 2 pliki
jquery-1.2.6.pack.js
stepcarousel.js
Jak cos zle mam,prosze mi wytlumaczyc jak zrobić zeby przywijac obrazki tak jak na http://www.dynamicdrive.com/dynamicindex...rousel.htm