質問編集履歴

2

誤字

2019/02/23 12:45

投稿

saramone
saramone

スコア13

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <TD>
8
8
 
9
- <A HREF="Javascript:playsnd('sample1');">
9
+ <A HREF="Javascript:playsnd('3-1-1');">
10
10
 
11
11
  <FONT FACE="Arial Unicode MS" CLASS="F2">
12
12
 

1

追加プログラム

2019/02/23 12:45

投稿

saramone
saramone

スコア13

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,33 @@
17
17
 
18
18
 
19
19
  ```
20
+
21
+ 音声ファイルは3-1-1.mp3なのですがどう変更すればよいでしょうか?
22
+
23
+ ```javascript
24
+
25
+ function playsnd(h){
26
+
27
+ with(parent.frame1.document) {
28
+
29
+ open();
30
+
31
+ writeln("<html><body>");
32
+
33
+ write("<embed src='"+h+".mp3' loop='false' hidden='true'");
34
+
35
+ // write("<embed src='"+h+".wav' loop='false' hidden='true'");
36
+
37
+ writeln(" width = '150' height = '60' autostart = 'true' repeat='false'>");
38
+
39
+ writeln("</body></html>");
40
+
41
+ close();
42
+
43
+ }
44
+
45
+ }
46
+
47
+
48
+
49
+ ```