質問編集履歴
2
html,jqueryを変更しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,13 +16,23 @@
|
|
16
16
|
|
17
17
|
<link rel="stylesheet" href="main.css">
|
18
18
|
|
19
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
|
20
|
-
|
21
19
|
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
|
22
20
|
|
23
|
-
<script src="
|
21
|
+
<script src="main.js"></script>
|
24
22
|
|
25
23
|
</head>
|
24
|
+
|
25
|
+
<body>
|
26
|
+
|
27
|
+
<script>
|
28
|
+
|
29
|
+
alert.('hello');
|
30
|
+
|
31
|
+
</script>
|
32
|
+
|
33
|
+
</body>
|
34
|
+
|
35
|
+
|
26
36
|
|
27
37
|
```
|
28
38
|
|
@@ -32,47 +42,9 @@
|
|
32
42
|
|
33
43
|
$(function(){
|
34
44
|
|
35
|
-
$('
|
45
|
+
$('body').alert('Hello! World!')
|
36
46
|
|
37
|
-
|
38
|
-
|
39
|
-
var $slides = $(this).find('img'),
|
40
|
-
|
41
|
-
slideCount = $slides.length,
|
42
|
-
|
43
|
-
currentIndex = 0;
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
$slides.eq(currentIndex).fadeIn();
|
48
|
-
|
49
|
-
setInterval(showNextSlide, 7500);
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
function showNextSlide () {
|
54
|
-
|
55
|
-
var nextIndex = (currentIndex + 1) % slideCount
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
$slides.eq(currentIndex).fadeOut();
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
$slides.eq(nexxtIndex).fadeIn();
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
currentIndex = nextIndex;
|
68
|
-
|
69
|
-
|
47
|
+
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
});
|
74
|
-
|
75
|
-
});
|
76
48
|
|
77
49
|
|
78
50
|
|
1
写真を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -77,3 +77,9 @@
|
|
77
77
|
|
78
78
|
|
79
79
|
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
![イメージ説明](1562af95080531d22a1384ab848cc285.png)
|
84
|
+
|
85
|
+
![イメージ説明](02a4f8a4155cd01e65163c535ff8d32b.png)
|