質問編集履歴

1

html、css、jsのコードを追加しました。

2016/03/18 09:34

投稿

ShunYoshizawa
ShunYoshizawa

スコア103

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,534 @@
38
38
 
39
39
 
40
40
 
41
+ ```html
42
+
43
+ <div id="slideshow">
44
+
45
+ <ul class="bxslider2">
46
+
47
+ <li>
48
+
49
+ <img src="images/slide_img1.jpg">
50
+
51
+ </li>
52
+
53
+ <li>
54
+
55
+ <img src="images/slide_img2.jpg">
56
+
57
+ </li>
58
+
59
+ <li>
60
+
61
+ <img src="images/slide_img3.jpg">
62
+
63
+ </li>
64
+
65
+ <li>
66
+
67
+ <img src="images/slide_img4.jpg">
68
+
69
+ </li>
70
+
71
+ <li>
72
+
73
+ <img src="images/slide_img5.jpg">
74
+
75
+ </li>
76
+
77
+ <li>
78
+
79
+ <img src="images/slide_img6.jpg">
80
+
81
+ </li>
82
+
83
+ <li>
84
+
85
+ <img src="images/slide_img7.jpg">
86
+
87
+ </li>
88
+
89
+ <li>
90
+
91
+ <img src="images/slide_img8.jpg">
92
+
93
+ </li>
94
+
95
+ <li>
96
+
97
+ <img src="images/slide_img9.jpg">
98
+
99
+ </li>
100
+
101
+ <li>
102
+
103
+ <img src="images/slide_img10.jpg">
104
+
105
+ </li>
106
+
107
+ <li>
108
+
109
+ <img src="images/slide_img11.jpg">
110
+
111
+ </li>
112
+
113
+ <li>
114
+
115
+ <img src="images/slide_img12.jpg">
116
+
117
+ </li>
118
+
119
+ </ul>
120
+
121
+ </div>
122
+
123
+ ```
124
+
125
+
126
+
127
+ bxsliderのcssになります。
128
+
129
+ ```css
130
+
131
+ /**
132
+
133
+ * BxSlider v4.1.2 - Fully loaded, responsive content slider
134
+
135
+ * http://bxslider.com
136
+
137
+ *
138
+
139
+ * Written by: Steven Wanderski, 2014
140
+
141
+ * http://stevenwanderski.com
142
+
143
+ * (while drinking Belgian ales and listening to jazz)
144
+
145
+ *
146
+
147
+ * CEO and founder of bxCreative, LTD
148
+
149
+ * http://bxcreative.com
150
+
151
+ */
152
+
153
+
154
+
155
+
156
+
157
+ /** RESET AND LAYOUT
158
+
159
+ ===================================*/
160
+
161
+
162
+
163
+ .bx-wrapper {
164
+
165
+ position: relative;
166
+
167
+ margin: 0 auto 100px;
168
+
169
+ padding: 0;
170
+
171
+ *zoom: 1;
172
+
173
+ }
174
+
175
+
176
+
177
+ .bx-wrapper img {
178
+
179
+ max-width: 100%;
180
+
181
+ display: block;
182
+
183
+ }
184
+
185
+
186
+
187
+ /** THEME
188
+
189
+ ===================================*/
190
+
191
+
192
+
193
+ .bx-wrapper .bx-viewport {
194
+
195
+ background: #fff;
196
+
197
+
198
+
199
+ /*fix other elements on the page moving (on Chrome)*/
200
+
201
+ -webkit-transform: translatez(0);
202
+
203
+ -moz-transform: translatez(0);
204
+
205
+ -ms-transform: translatez(0);
206
+
207
+ -o-transform: translatez(0);
208
+
209
+ transform: translatez(0);
210
+
211
+ }
212
+
213
+
214
+
215
+ .bx-wrapper .bx-pager,
216
+
217
+ .bx-wrapper .bx-controls-auto {
218
+
219
+ position: absolute;
220
+
221
+ width: 100%;
222
+
223
+ }
224
+
225
+
226
+
227
+ /* LOADER */
228
+
229
+
230
+
231
+ .bx-wrapper .bx-loading {
232
+
233
+ min-height: 50px;
234
+
235
+ background: url(images/bx_loader.gif) center center no-repeat #fff;
236
+
237
+ height: 100%;
238
+
239
+ width: 100%;
240
+
241
+ position: absolute;
242
+
243
+ top: 0;
244
+
245
+ left: 0;
246
+
247
+ z-index: 2000;
248
+
249
+ }
250
+
251
+
252
+
253
+ /* PAGER */
254
+
255
+
256
+
257
+ .bx-wrapper .bx-pager {
258
+
259
+ text-align: center;
260
+
261
+ font-size: .85em;
262
+
263
+ font-family: Arial;
264
+
265
+ font-weight: bold;
266
+
267
+ color: #666;
268
+
269
+ padding-top: 20px;
270
+
271
+ }
272
+
273
+
274
+
275
+ .bx-wrapper .bx-pager .bx-pager-item,
276
+
277
+ .bx-wrapper .bx-controls-auto .bx-controls-auto-item {
278
+
279
+ display: inline-block;
280
+
281
+ *zoom: 1;
282
+
283
+ *display: inline;
284
+
285
+ }
286
+
287
+
288
+
289
+ .bx-wrapper .bx-pager.bx-default-pager a {
290
+
291
+ background: #666;
292
+
293
+ text-indent: -9999px;
294
+
295
+ display: block;
296
+
297
+ width: 10px;
298
+
299
+ height: 10px;
300
+
301
+ margin: 0 5px;
302
+
303
+ outline: 0;
304
+
305
+ -moz-border-radius: 5px;
306
+
307
+ -webkit-border-radius: 5px;
308
+
309
+ border-radius: 5px;
310
+
311
+ }
312
+
313
+
314
+
315
+ .bx-wrapper .bx-pager.bx-default-pager a:hover,
316
+
317
+ .bx-wrapper .bx-pager.bx-default-pager a.active {
318
+
319
+ background: #000;
320
+
321
+ }
322
+
323
+
324
+
325
+ /* DIRECTION CONTROLS (NEXT / PREV) */
326
+
327
+
328
+
329
+ .bx-wrapper .bx-prev {
330
+
331
+ left: 10px;
332
+
333
+ background: url(images/controls.png) no-repeat 0 -32px;
334
+
335
+ }
336
+
337
+
338
+
339
+ .bx-wrapper .bx-next {
340
+
341
+ right: 10px;
342
+
343
+ background: url(images/controls.png) no-repeat -43px -32px;
344
+
345
+ }
346
+
347
+
348
+
349
+ .bx-wrapper .bx-prev:hover {
350
+
351
+ background-position: 0 0;
352
+
353
+ }
354
+
355
+
356
+
357
+ .bx-wrapper .bx-next:hover {
358
+
359
+ background-position: -43px 0;
360
+
361
+ }
362
+
363
+
364
+
365
+ .bx-wrapper .bx-controls-direction a {
366
+
367
+ position: absolute;
368
+
369
+ top: 50%;
370
+
371
+ margin-top: -16px;
372
+
373
+ outline: 0;
374
+
375
+ width: 32px;
376
+
377
+ height: 32px;
378
+
379
+ text-indent: -9999px;
380
+
381
+ z-index: 9999;
382
+
383
+ }
384
+
385
+
386
+
387
+ .bx-wrapper .bx-controls-direction a.disabled {
388
+
389
+ display: none;
390
+
391
+ }
392
+
393
+
394
+
395
+ /* AUTO CONTROLS (START / STOP) */
396
+
397
+
398
+
399
+ .bx-wrapper .bx-controls-auto {
400
+
401
+ text-align: center;
402
+
403
+ }
404
+
405
+
406
+
407
+ .bx-wrapper .bx-controls-auto .bx-start {
408
+
409
+ display: block;
410
+
411
+ text-indent: -9999px;
412
+
413
+ width: 10px;
414
+
415
+ height: 11px;
416
+
417
+ outline: 0;
418
+
419
+ background: url(images/controls.png) -86px -11px no-repeat;
420
+
421
+ margin: 0 3px;
422
+
423
+ }
424
+
425
+
426
+
427
+ .bx-wrapper .bx-controls-auto .bx-start:hover,
428
+
429
+ .bx-wrapper .bx-controls-auto .bx-start.active {
430
+
431
+ background-position: -86px 0;
432
+
433
+ }
434
+
435
+
436
+
437
+ .bx-wrapper .bx-controls-auto .bx-stop {
438
+
439
+ display: block;
440
+
441
+ text-indent: -9999px;
442
+
443
+ width: 9px;
444
+
445
+ height: 11px;
446
+
447
+ outline: 0;
448
+
449
+ background: url(images/controls.png) -86px -44px no-repeat;
450
+
451
+ margin: 0 3px;
452
+
453
+ }
454
+
455
+
456
+
457
+ .bx-wrapper .bx-controls-auto .bx-stop:hover,
458
+
459
+ .bx-wrapper .bx-controls-auto .bx-stop.active {
460
+
461
+ background-position: -86px -33px;
462
+
463
+ }
464
+
465
+
466
+
467
+ /* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
468
+
469
+
470
+
471
+ .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
472
+
473
+ text-align: left;
474
+
475
+ width: 80%;
476
+
477
+ }
478
+
479
+
480
+
481
+ .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
482
+
483
+ right: 0;
484
+
485
+ width: 35px;
486
+
487
+ }
488
+
489
+
490
+
491
+ /* IMAGE CAPTIONS */
492
+
493
+
494
+
495
+ .bx-wrapper .bx-caption {
496
+
497
+ position: absolute;
498
+
499
+ bottom: 0;
500
+
501
+ left: 0;
502
+
503
+ background: #666\9;
504
+
505
+ background: rgba(80, 80, 80, 0.75);
506
+
507
+ width: 100%;
508
+
509
+ }
510
+
511
+
512
+
513
+ .bx-wrapper .bx-caption span {
514
+
515
+ color: #fff;
516
+
517
+ font-family: Arial;
518
+
519
+ display: block;
520
+
521
+ font-size: .85em;
522
+
523
+ padding: 10px;
524
+
525
+ }
526
+
527
+
528
+
529
+ ```
530
+
531
+
532
+
533
+ ```javascript
534
+
535
+ <script>
536
+
537
+ $(document).ready(function(){
538
+
539
+ var huga = $('.bxslider2').bxSlider({
540
+
541
+ infiniteLoop: true,
542
+
543
+ controls: false,
544
+
545
+ swipeThreshold: 70,
546
+
547
+ auto: true,
548
+
549
+ pause: 3000,
550
+
551
+ onSlideAfter: function(){
552
+
553
+ huga.startAuto();
554
+
555
+ }
556
+
557
+ });
558
+
559
+ });
560
+
561
+ </script>
562
+
563
+ <script>
564
+
565
+ ```
566
+
567
+
568
+
41
569
 
42
570
 
43
571
  解決策を知っている方宜しくお願い致します。