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

質問編集履歴

3

質問を加えました。

2020/04/27 22:17

投稿

beginner001
beginner001

スコア29

title CHANGED
File without changes
body CHANGED
@@ -25,4 +25,6 @@
25
25
 
26
26
  </body>
27
27
  </html>
28
- ```
28
+ ```
29
+ setInterval("dsp.style.opacity^=2,1000");
30
+ の opacity^=2 が理解できません。

2

整理しなおしました。

2020/04/27 22:17

投稿

beginner001
beginner001

スコア29

title CHANGED
File without changes
body CHANGED
@@ -25,8 +25,4 @@
25
25
 
26
26
  </body>
27
27
  </html>
28
- https://teratail.com/questions/256099```でも質問させていただいたのですが、少し排他的論理値が分かってきたような感じがしたので、再度質問させていただきます。
29
- scriptの中の
28
+ ```
30
- setInterval("dsp.style.opacity^=2,1000"); は
31
- 透明化されているか、透明化されていないかを1000ミリ秒ごとに表示させると考えれば良いのでしょうか。
32
- よろしくお願いします。

1

整理しました。失礼いたしました。

2020/04/27 07:16

投稿

beginner001
beginner001

スコア29

title CHANGED
File without changes
body CHANGED
@@ -15,7 +15,7 @@
15
15
  let kuji = Math.floor(Math.random()*kujis.length);
16
16
  let disp = document.getElementById("dsp");
17
17
  dsp.style.color="red";
18
- **setInterval("dsp.style.opacity^=2,1000");**
18
+ setInterval("dsp.style.opacity^=2,1000");
19
19
 
20
20
  function onButtonClick(){
21
21
  dsp.innerHTML = kujis[kuji];