質問編集履歴
3
CSS記入
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
bxsliderでホームページにスライドショーを設置しました。
|
6
6
|
|
7
|
-
画像をサムネイルと連動させることも、スライドを
|
7
|
+
画像をサムネイルと連動させることも、スライドを作動させることも
|
8
8
|
|
9
9
|
できたのですが、サムネイルをクリックすると、表示させたい画像が
|
10
10
|
|
@@ -130,6 +130,374 @@
|
|
130
130
|
|
131
131
|
```
|
132
132
|
|
133
|
+
|
134
|
+
|
135
|
+
###該当CSS
|
136
|
+
|
137
|
+
```言語入力
|
138
|
+
|
139
|
+
/** VARIABLES
|
140
|
+
|
141
|
+
===================================*/
|
142
|
+
|
143
|
+
/** RESET AND LAYOUT
|
144
|
+
|
145
|
+
===================================*/
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
.bx-wrapper {
|
150
|
+
|
151
|
+
position: relative;
|
152
|
+
|
153
|
+
margin-bottom: 60px;
|
154
|
+
|
155
|
+
padding: 0;
|
156
|
+
|
157
|
+
*zoom: 1;
|
158
|
+
|
159
|
+
-ms-touch-action: pan-y;
|
160
|
+
|
161
|
+
touch-action: pan-y;
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
.bx-wrapper img {
|
166
|
+
|
167
|
+
max-width: 100%;
|
168
|
+
|
169
|
+
display: block;
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
.bxslider {
|
174
|
+
|
175
|
+
margin: 0;
|
176
|
+
|
177
|
+
padding: 0;
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
ul.bxslider {
|
182
|
+
|
183
|
+
list-style: none;
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
.bx-viewport {
|
188
|
+
|
189
|
+
/*fix other elements on the page moving (on Chrome)*/
|
190
|
+
|
191
|
+
-webkit-transform: translatez(0);
|
192
|
+
|
193
|
+
}
|
194
|
+
|
195
|
+
/** THEME
|
196
|
+
|
197
|
+
===================================*/
|
198
|
+
|
199
|
+
.bx-wrapper {
|
200
|
+
|
201
|
+
-moz-box-shadow: 0 0 5px #ccc;
|
202
|
+
|
203
|
+
-webkit-box-shadow: 0 0 5px #ccc;
|
204
|
+
|
205
|
+
box-shadow: 0 0 5px #ccc;
|
206
|
+
|
207
|
+
border: 5px solid #fff;
|
208
|
+
|
209
|
+
background: #fff;
|
210
|
+
|
211
|
+
}
|
212
|
+
|
213
|
+
.bx-wrapper .bx-pager,
|
214
|
+
|
215
|
+
.bx-wrapper .bx-controls-auto {
|
216
|
+
|
217
|
+
position: absolute;
|
218
|
+
|
219
|
+
bottom: -30px;
|
220
|
+
|
221
|
+
width: 100%;
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
/* LOADER */
|
226
|
+
|
227
|
+
.bx-wrapper .bx-loading {
|
228
|
+
|
229
|
+
min-height: 50px;
|
230
|
+
|
231
|
+
background: url('画像パス') center center no-repeat #ffffff;
|
232
|
+
|
233
|
+
height: 100%;
|
234
|
+
|
235
|
+
width: 100%;
|
236
|
+
|
237
|
+
position: absolute;
|
238
|
+
|
239
|
+
top: 0;
|
240
|
+
|
241
|
+
left: 0;
|
242
|
+
|
243
|
+
z-index: 2000;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
/* PAGER */
|
248
|
+
|
249
|
+
.bx-wrapper .bx-pager {
|
250
|
+
|
251
|
+
text-align: center;
|
252
|
+
|
253
|
+
font-size: .85em;
|
254
|
+
|
255
|
+
font-family: Arial;
|
256
|
+
|
257
|
+
font-weight: bold;
|
258
|
+
|
259
|
+
color: #666;
|
260
|
+
|
261
|
+
padding-top: 20px;
|
262
|
+
|
263
|
+
}
|
264
|
+
|
265
|
+
.bx-wrapper .bx-pager.bx-default-pager a {
|
266
|
+
|
267
|
+
background: #666;
|
268
|
+
|
269
|
+
text-indent: -9999px;
|
270
|
+
|
271
|
+
display: block;
|
272
|
+
|
273
|
+
width: 10px;
|
274
|
+
|
275
|
+
height: 10px;
|
276
|
+
|
277
|
+
margin: 0 5px;
|
278
|
+
|
279
|
+
outline: 0;
|
280
|
+
|
281
|
+
-moz-border-radius: 5px;
|
282
|
+
|
283
|
+
-webkit-border-radius: 5px;
|
284
|
+
|
285
|
+
border-radius: 5px;
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
290
|
+
|
291
|
+
.bx-wrapper .bx-pager.bx-default-pager a.active,
|
292
|
+
|
293
|
+
.bx-wrapper .bx-pager.bx-default-pager a:focus {
|
294
|
+
|
295
|
+
background: #000;
|
296
|
+
|
297
|
+
}
|
298
|
+
|
299
|
+
.bx-wrapper .bx-pager-item,
|
300
|
+
|
301
|
+
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
302
|
+
|
303
|
+
display: inline-block;
|
304
|
+
|
305
|
+
vertical-align: bottom;
|
306
|
+
|
307
|
+
*zoom: 1;
|
308
|
+
|
309
|
+
*display: inline;
|
310
|
+
|
311
|
+
}
|
312
|
+
|
313
|
+
.bx-wrapper .bx-pager-item {
|
314
|
+
|
315
|
+
font-size: 0;
|
316
|
+
|
317
|
+
line-height: 0;
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
/* DIRECTION CONTROLS (NEXT / PREV) */
|
322
|
+
|
323
|
+
.bx-wrapper .bx-prev {
|
324
|
+
|
325
|
+
left: 10px;
|
326
|
+
|
327
|
+
background: url('画像パス') no-repeat center;
|
328
|
+
|
329
|
+
}
|
330
|
+
|
331
|
+
.bx-wrapper .bx-prev:hover,
|
332
|
+
|
333
|
+
.bx-wrapper .bx-prev:focus {
|
334
|
+
|
335
|
+
background-position: 0 0;
|
336
|
+
|
337
|
+
}
|
338
|
+
|
339
|
+
.bx-wrapper .bx-next {
|
340
|
+
|
341
|
+
right: 10px;
|
342
|
+
|
343
|
+
background: url('画像パス') no-repeat center;
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
.bx-wrapper .bx-next:hover,
|
348
|
+
|
349
|
+
.bx-wrapper .bx-next:focus {
|
350
|
+
|
351
|
+
background-position: -0px 0;
|
352
|
+
|
353
|
+
}
|
354
|
+
|
355
|
+
.bx-wrapper .bx-controls-direction a {
|
356
|
+
|
357
|
+
position: absolute;
|
358
|
+
|
359
|
+
top: 50%;
|
360
|
+
|
361
|
+
margin-top: -16px;
|
362
|
+
|
363
|
+
outline: 0;
|
364
|
+
|
365
|
+
width: 32px;
|
366
|
+
|
367
|
+
height: 32px;
|
368
|
+
|
369
|
+
text-indent: -9999px;
|
370
|
+
|
371
|
+
z-index: 9999;
|
372
|
+
|
373
|
+
}
|
374
|
+
|
375
|
+
.bx-wrapper .bx-controls-direction a.disabled {
|
376
|
+
|
377
|
+
display: none;
|
378
|
+
|
379
|
+
}
|
380
|
+
|
381
|
+
/* AUTO CONTROLS (START / STOP) */
|
382
|
+
|
383
|
+
.bx-wrapper .bx-controls-auto {
|
384
|
+
|
385
|
+
text-align: center;
|
386
|
+
|
387
|
+
}
|
388
|
+
|
389
|
+
.bx-wrapper .bx-controls-auto .bx-start {
|
390
|
+
|
391
|
+
display: block;
|
392
|
+
|
393
|
+
text-indent: -9999px;
|
394
|
+
|
395
|
+
width: 10px;
|
396
|
+
|
397
|
+
height: 11px;
|
398
|
+
|
399
|
+
outline: 0;
|
400
|
+
|
401
|
+
background: url('画像パス') -86px -11px no-repeat;
|
402
|
+
|
403
|
+
margin: 0 3px;
|
404
|
+
|
405
|
+
}
|
406
|
+
|
407
|
+
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
408
|
+
|
409
|
+
.bx-wrapper .bx-controls-auto .bx-start.active,
|
410
|
+
|
411
|
+
.bx-wrapper .bx-controls-auto .bx-start:focus {
|
412
|
+
|
413
|
+
background-position: -86px 0;
|
414
|
+
|
415
|
+
}
|
416
|
+
|
417
|
+
.bx-wrapper .bx-controls-auto .bx-stop {
|
418
|
+
|
419
|
+
display: block;
|
420
|
+
|
421
|
+
text-indent: -9999px;
|
422
|
+
|
423
|
+
width: 9px;
|
424
|
+
|
425
|
+
height: 11px;
|
426
|
+
|
427
|
+
outline: 0;
|
428
|
+
|
429
|
+
background: url('画像パス') -86px -44px no-repeat;
|
430
|
+
|
431
|
+
margin: 0 3px;
|
432
|
+
|
433
|
+
}
|
434
|
+
|
435
|
+
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
436
|
+
|
437
|
+
.bx-wrapper .bx-controls-auto .bx-stop.active,
|
438
|
+
|
439
|
+
.bx-wrapper .bx-controls-auto .bx-stop:focus {
|
440
|
+
|
441
|
+
background-position: -86px -33px;
|
442
|
+
|
443
|
+
}
|
444
|
+
|
445
|
+
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
446
|
+
|
447
|
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
448
|
+
|
449
|
+
text-align: left;
|
450
|
+
|
451
|
+
width: 80%;
|
452
|
+
|
453
|
+
}
|
454
|
+
|
455
|
+
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
456
|
+
|
457
|
+
right: 0;
|
458
|
+
|
459
|
+
width: 35px;
|
460
|
+
|
461
|
+
}
|
462
|
+
|
463
|
+
/* IMAGE CAPTIONS */
|
464
|
+
|
465
|
+
.bx-wrapper .bx-caption {
|
466
|
+
|
467
|
+
position: absolute;
|
468
|
+
|
469
|
+
bottom: 0;
|
470
|
+
|
471
|
+
left: 0;
|
472
|
+
|
473
|
+
background: #666;
|
474
|
+
|
475
|
+
background: rgba(80, 80, 80, 0.75);
|
476
|
+
|
477
|
+
width: 100%;
|
478
|
+
|
479
|
+
}
|
480
|
+
|
481
|
+
.bx-wrapper .bx-caption span {
|
482
|
+
|
483
|
+
color: #fff;
|
484
|
+
|
485
|
+
font-family: Arial;
|
486
|
+
|
487
|
+
display: block;
|
488
|
+
|
489
|
+
font-size: .85em;
|
490
|
+
|
491
|
+
padding: 10px;
|
492
|
+
|
493
|
+
}
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
```
|
498
|
+
|
499
|
+
|
500
|
+
|
133
501
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
134
502
|
|
135
503
|
bxSlider v4.2.12
|
2
htmlソース追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,9 +78,57 @@
|
|
78
78
|
|
79
79
|
|
80
80
|
|
81
|
+
###該当のhtml
|
82
|
+
|
83
|
+
```ここに言語を入力
|
84
|
+
|
85
|
+
<div class="bxslider">
|
81
86
|
|
82
87
|
|
83
88
|
|
89
|
+
<span style="display: block; position: relative;">
|
90
|
+
|
91
|
+
<a href="リンク" target="_blank" class="pbOpenNewWindow">
|
92
|
+
|
93
|
+
<img src="画像パス"></a></span>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<span style="display: block; position: relative;">
|
98
|
+
|
99
|
+
<a href="リンク" target="_blank" class="pbOpenNewWindow"><img src="画像パス"></a>
|
100
|
+
|
101
|
+
</span>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<span style="display: block; position: relative;">
|
106
|
+
|
107
|
+
<a href="リンク" target="_blank" class="pbOpenNewWindow"><img src="画像パス" /></a>
|
108
|
+
|
109
|
+
</span>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<span style="display: block; position: relative;">
|
114
|
+
|
115
|
+
<a href="リンク" target="_blank" class="pbOpenNewWindow"><img src="画像パス"></a>
|
116
|
+
|
117
|
+
</span>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span style="display: block; position: relative;">
|
122
|
+
|
123
|
+
<a href="リンク" target="_blank" class="pbOpenNewWindow"><img src="画像パス"></a>
|
124
|
+
|
125
|
+
</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
```
|
84
132
|
|
85
133
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
86
134
|
|
1
ソースコードの記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,4 +14,74 @@
|
|
14
14
|
|
15
15
|
手さぐりでやっているので、何かなければならない記述を消してしまったのかもしれません・・・
|
16
16
|
|
17
|
+
該当のソースコードはこれだと思うのですが、別場所の記述が必要であればご指示ください。
|
18
|
+
|
17
19
|
どうぞご教授お願いします。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
###該当のjavascript
|
24
|
+
|
25
|
+
```ここに言語を入力
|
26
|
+
|
27
|
+
$(document).ready(function(){
|
28
|
+
|
29
|
+
$('.bxslider').bxSlider({
|
30
|
+
|
31
|
+
auto: true,
|
32
|
+
|
33
|
+
startSlide: 0,
|
34
|
+
|
35
|
+
pause: 5500,
|
36
|
+
|
37
|
+
autoHover: true,
|
38
|
+
|
39
|
+
speed:2000,
|
40
|
+
|
41
|
+
infiniteLoop:true,
|
42
|
+
|
43
|
+
centerMode: true,
|
44
|
+
|
45
|
+
buildPager: function(slideIndex){
|
46
|
+
|
47
|
+
switch(slideIndex){
|
48
|
+
|
49
|
+
case 0:
|
50
|
+
|
51
|
+
return '<img src="/画像パス/>';
|
52
|
+
|
53
|
+
case 1:
|
54
|
+
|
55
|
+
return '<img src="/画像パス/>';
|
56
|
+
|
57
|
+
case 2:
|
58
|
+
|
59
|
+
return '<img src="/画像パス/>';
|
60
|
+
|
61
|
+
case 3:
|
62
|
+
|
63
|
+
return '<img src="/画像パス/>';
|
64
|
+
|
65
|
+
case 4:
|
66
|
+
|
67
|
+
return '<img src="/画像パス/>';
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
});
|
74
|
+
|
75
|
+
});
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
###補足情報(言語/FW/ツール等のバージョンなど)
|
86
|
+
|
87
|
+
bxSlider v4.2.12
|