回答編集履歴
2
LeftButtonClick追加
test
CHANGED
@@ -6,7 +6,15 @@
|
|
6
6
|
|
7
7
|
function RightButtonClick(){
|
8
8
|
|
9
|
-
$('.wibthList').prepend($('.wibthList img').last())
|
9
|
+
$('.wibthList').prepend($('.wibthList img').last())
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
function LeftButtonClick(){
|
16
|
+
|
17
|
+
$('.wibthList').append($('.wibthList img').first())
|
10
18
|
|
11
19
|
}
|
12
20
|
|
@@ -15,3 +23,7 @@
|
|
15
23
|
|
16
24
|
|
17
25
|
でどうでしょう?
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
removeで削除するのではなく、domを移動させてあげるというかんじです。
|
1
prependとbefore間違えた
test
CHANGED
@@ -4,7 +4,11 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
|
7
|
+
function RightButtonClick(){
|
8
|
+
|
7
|
-
$('.wibthList').
|
9
|
+
$('.wibthList').prepend($('.wibthList img').last())
|
10
|
+
|
11
|
+
}
|
8
12
|
|
9
13
|
```
|
10
14
|
|