回答編集履歴

3

編集

2021/01/07 01:32

投稿

ahk
ahk

スコア19

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  month = hiduke.getMonth()+1;
20
20
 
21
- banner.src="http://~/"+image[month]+".jpg";//月ごとの画像の表示
21
+ banner.src=""+image[month]+".jpg";//月ごとの画像の表示
22
22
 
23
23
  link_a.href=link_to[month];//月ごとのリンク先の設定
24
24
 

2

編集

2021/01/07 01:32

投稿

ahk
ahk

スコア19

test CHANGED
@@ -2,9 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- <img src="" id="banner">
6
-
7
- <a href="" id="link_a">リンク先</a>
5
+ <a href="" id="link_a"><img src="" id="banner"></a>
8
6
 
9
7
 
10
8
 

1

編集

2021/01/07 01:30

投稿

ahk
ahk

スコア19

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <script>
12
12
 
13
- const image =[01,02,03,04,05,06,07,08,09,10,11,12];//月ごとの画像を連番で用意
13
+ const image =["1","2","3","4","5","6","7","8","9","10","11","12"];//月ごとの画像を連番で用意
14
14
 
15
15
  const link_to =["https://yahoo.co.jp/","https://google.com/","URL","URL","URL","URL","URL","URL","URL","URL","URL","URL"];//月ごとのリンク先
16
16