Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 651 Pomógł: 116 Dołączył: 3.06.2012 Skąd: Lędziny Ostrzeżenie: (0%)
|
Mam takie buttony u dołu strony. Z prawej i lewej strony są strzałki, użytkownik może sobie przewijać w dowolną stronę i przeglądać te buttony. Jeśli jednak sam nie przewija to skrypt sam to robi. Problem jest jednak taki, że skrypt przewija buttony od prawej do lewej strony. W momencie jak zostaną dwa buttony to skrypt stopuje ;/ Jak zrobić aby w przypadku gdy skończą się buttony do przewijania to skrypt automatycznie zaczął przewijać znowu z powrotem i tak w kółko? Skrypt js:
Kod <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, wrapbehavior:'slide', persist:true}, defaultbuttons: {enable: true, moveby: 1, leftnav: ['templates/sportaudi/images/lewa.png', -90, 60], rightnav: ['templates/sportaudi/images/prawa.png', 0, 60]}, 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'] }) </script> A wyświetlam tak: Kod <div id="bg_banery"> <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, wrapbehavior:'slide', persist:true}, defaultbuttons: {enable: true, moveby: 1, leftnav: ['templates/sportaudi/images/lewa.png', -90, 60], rightnav: ['templates/sportaudi/images/prawa.png', 0, 60]}, 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'] }) </script> <div id="mygallery" class="stepcarousel"> <div class="belt"> <div class="panel"> <a href="http://odnosik.pl/"><img src="http://obraz.pl/obraz.jpg" border="0"/></a></div> </div> </div> </div> <br clear="all"> Poradzi mi ktoś jak osiągnąć taki efekt? ;/ Ten post edytował Michael2318 22.01.2013, 12:51:47 |
|
|
|
Michael2318 [JavaScript]Automatyczne przesuwanie buttonów 22.01.2013, 12:51:19
!*! http://forum.php.pl/index.php?showtopic=15...mp;#e... 22.01.2013, 13:06:21
Michael2318 ah, zapomniałem o demie, wybacz.
Na dole, na stron... 22.01.2013, 13:14:52
!*! Sprawdź w dokumentacji tej wtyczki, na pewno jest ... 22.01.2013, 14:34:33
Michael2318 Problem w tym, że nawet nie wiem gdzie szukać doku... 22.01.2013, 15:00:36
!*! http://www.dynamicdrive.com/dynamicindex4/stepcaro... 22.01.2013, 16:31:51 ![]() ![]() |
|
Aktualny czas: 25.12.2025 - 07:02 |