![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 660 Pomógł: 13 Dołączył: 9.06.2004 Skąd: Wrocław i okolice Ostrzeżenie: (0%) ![]() ![]() |
Cześć, mam w jQuery ukrywanie/pokazywanie diva:
Kod jQuery('#rss_action_icon').click(function () { jQuery('#rss_pasek_wiadomosci').slideToggleWidth(); }); jQuery.fn.extend({ slideRight: function() { return this.each(function() { jQuery(this).animate({width: 'show'},2000); }); }, slideLeft: function() { return this.each(function() { jQuery(this).animate({width: 'hide'},2000); }); }, slideToggleWidth: function() { return this.each(function() { var el = jQuery(this); if (el.css('display') == 'none') { el.slideRight(); } else { el.slideLeft(); } }); } }); Niestety zwija mi z prawej do lewej - jak odwrócić kierunek? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 51 Pomógł: 0 Dołączył: 13.07.2009 Ostrzeżenie: (0%) ![]() ![]() |
Pomyśl nad tym:
if (el.css('display') == 'none') { el.slideRight(); } else { el.slideLeft(); } Może warto zamienić te funkcje ze sobą ?(IMG:style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.09.2025 - 06:45 |