.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 » Гостевая


Гостевая

Тем 1 страница 30 из 266

Тема Ответов Просмотров Последнее сообщение
0 13 2024-04-27 13:58:55  Danielpap
0 10 2024-04-26 07:32:08  PeterPub
0 7 2024-04-24 11:25:48  Randalltwert
27 1508 2024-04-23 06:49:14  Philipdog
0 7 2024-04-23 06:42:36  KennethSes
0 12 2024-04-21 20:00:27  Gregoryclems
0 9 2024-04-19 10:18:51  Jamesror
0 8 2024-04-17 13:07:28  Sergiodal
9 Esperio  Philipdog
0 6 2024-04-15 08:55:13  Philipdog
10 loli cp  AllanCor
0 12 2024-04-15 00:59:14  AllanCor
0 7 2024-04-10 10:10:07  Travishop
0 10 2024-04-09 05:30:22  Randallsit
0 7 2024-04-09 02:28:37  TrentonFaush
0 8 2024-04-08 08:41:29  JamesCof
0 9 2024-04-03 16:56:51  WandaGeomi
0 8 2024-04-03 02:34:20  Randalltwert
17 thanks, interesting read  FrbetCrive
0 6 2024-03-31 00:48:53  FrbetCrive
0 8 2024-03-27 07:29:33  RaymondSoank
1 18 2024-03-26 01:04:08  Павел Кузнецов
20 Test, just a test  XRumerTest
0 8 2024-03-25 15:48:28  XRumerTest
0 8 2024-03-25 07:52:11  Stephenunuro
0 9 2024-03-25 03:18:23  Eugeneoxing
0 6 2024-03-23 04:56:42  Eugeneoxing
0 13 2024-03-23 01:14:53  Eugeneoxing
0 9 2024-03-22 13:49:57  LouisFew
26 It has surprised me.  Eugeneoxing
0 12 2024-03-22 05:59:11  Eugeneoxing
0 7 2024-03-22 05:13:59  CryptoCurrencybut
28 It certainly is not right  Eugeneoxing
0 9 2024-03-21 18:39:00  Eugeneoxing
0 10 2024-03-20 07:01:30  Eugeneoxing
0 8 2024-03-20 03:05:04  Eugeneoxing

Вы здесь » Threads of the Fate » Гостевая


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