質問編集履歴
2
html,jqueryを変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,36 +7,22 @@
|
|
7
7
|
<meta charset="utf-8">
|
8
8
|
<title></title>
|
9
9
|
<link rel="stylesheet" href="main.css">
|
10
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
|
11
10
|
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
|
12
|
-
<script src="
|
11
|
+
<script src="main.js"></script>
|
13
12
|
</head>
|
13
|
+
<body>
|
14
|
+
<script>
|
15
|
+
alert.('hello');
|
16
|
+
</script>
|
17
|
+
</body>
|
18
|
+
|
14
19
|
```
|
15
20
|
|
16
21
|
```Jquery
|
17
22
|
$(function(){
|
18
|
-
$('
|
23
|
+
$('body').alert('Hello! World!')
|
24
|
+
}
|
19
25
|
|
20
|
-
var $slides = $(this).find('img'),
|
21
|
-
slideCount = $slides.length,
|
22
|
-
currentIndex = 0;
|
23
|
-
|
24
|
-
$slides.eq(currentIndex).fadeIn();
|
25
|
-
setInterval(showNextSlide, 7500);
|
26
|
-
|
27
|
-
function showNextSlide () {
|
28
|
-
var nextIndex = (currentIndex + 1) % slideCount
|
29
|
-
|
30
|
-
$slides.eq(currentIndex).fadeOut();
|
31
|
-
|
32
|
-
$slides.eq(nexxtIndex).fadeIn();
|
33
|
-
|
34
|
-
currentIndex = nextIndex;
|
35
|
-
}
|
36
|
-
|
37
|
-
});
|
38
|
-
});
|
39
|
-
|
40
26
|
```
|
41
27
|
|
42
28
|

|
1
写真を追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,4 +37,7 @@
|
|
37
37
|
});
|
38
38
|
});
|
39
39
|
|
40
|
-
```
|
40
|
+
```
|
41
|
+
|
42
|
+

|
43
|
+

|