質問編集履歴
1
記入方法の訂正とjsの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,10 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
### 該当のソースコード
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```html
|
14
18
|
|
15
19
|
<div id="top">
|
16
20
|
|
@@ -54,11 +58,13 @@
|
|
54
58
|
|
55
59
|
</div>
|
56
60
|
|
61
|
+
```
|
57
62
|
|
58
63
|
|
59
64
|
|
60
65
|
|
66
|
+
|
61
|
-
CSS
|
67
|
+
```CSS
|
62
68
|
|
63
69
|
.news:before {
|
64
70
|
|
@@ -114,6 +120,56 @@
|
|
114
120
|
|
115
121
|
}
|
116
122
|
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
```js
|
128
|
+
|
129
|
+
function slideSwitch() {
|
130
|
+
|
131
|
+
var $active = $('#slideshow img.active');
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
if ( $active.length == 0 ) $active = $('#slideshow img:last');
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
var $next = $active.next().length ? $active.next()
|
140
|
+
|
141
|
+
: $('#slideshow img:first');
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
$active.addClass('last-active');
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
$next.css({opacity: 0.0})
|
150
|
+
|
151
|
+
.addClass('active')
|
152
|
+
|
153
|
+
.animate({opacity: 1.0}, 1000, function() {
|
154
|
+
|
155
|
+
$active.removeClass('active last-active');
|
156
|
+
|
157
|
+
});
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
$(function() {
|
164
|
+
|
165
|
+
setInterval( "slideSwitch()", 3000 );
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
```
|
172
|
+
|
117
173
|
|
118
174
|
|
119
175
|
### 試したこと
|