teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

html,jqueryを変更しました。

2020/01/01 12:04

投稿

退会済みユーザー
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="./js/main.js"></script>
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
- $('.slideshow').each(function(){
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
  ![イメージ説明](1562af95080531d22a1384ab848cc285.png)

1

写真を追記しました。

2020/01/01 12:04

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -37,4 +37,7 @@
37
37
  });
38
38
  });
39
39
 
40
- ```
40
+ ```
41
+
42
+ ![イメージ説明](1562af95080531d22a1384ab848cc285.png)
43
+ ![イメージ説明](02a4f8a4155cd01e65163c535ff8d32b.png)