.wrapAll('
') // Float left to display horizontally, readjust .slides width .css({ 'float' : 'right', 'width' : slideWidth }); // Set #slideInner width equal to total width of all slides $('#slideInner').css('width', slideWidth * numberOfSlides); // Insert controls in the DOM $('#slideshow') .prepend('Clicking moves left') .append('Clicking moves right'); // Hide left arrow control on first load manageControls(currentPosition); // Create event listeners for .controls clicks $('.control') .bind('click', function(){ // Determine new position currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1; // Hide / show controls manageControls(currentPosition); // Move slideInner using margin-left $('#slideInner').animate({ 'marginLeft' : slideWidth*(-currentPosition) }); }); // manageControls: Hides and Shows controls depending on currentPosition function manageControls(position){ // Hide left arrow if position is first slide if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() } // Hide right arrow if position is last slide if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() } } });

Threads of the Fate

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Threads of the Fate » Партнеры » euphoria


euphoria

Сообщений 1 страница 3 из 3

1

palate

C¦P L¦O¦L¦I¦T¦A:

gclnk.com/QxUNbUiVZw

s.yjm.pl/BbtC

0

2

power indulge

C¦P L¦O¦L¦I¦T¦A:

gclnk.com/QxUNbUiVZw

s.yjm.pl/BbtC

0

3

engross valued

C¦P L¦O¦L¦I¦T¦A:

gclnk.com/QxUNbUiVZw

s.yjm.pl/BbtC

0


Вы здесь » Threads of the Fate » Партнеры » euphoria


Рейтинг форумов | Создать форум бесплатно