[問題] 緊急求救>///<

看板Web_Design作者 (唸著倒要不)時間17年前 (2009/01/12 02:51), 編輯推噓1(104)
留言5則, 5人參與, 最新討論串1/1
我選到一個完全搞不懂的通識課ˊˋ 我好幾天沒好好睡覺了麻煩大家救救我...(跪) 老師說期末作業要用jsp做一個網頁小鋼琴 本來我已經寫好了 也很成功的播出聲音 沒想到慘劇發生了... 就在我想要把他做的更完美的時候 我把本來的17個音擴充到25個音 結果就沒反應了!!!!!!!!!! 程式碼完全沒改變阿...只是加了幾個音 而且後來我又改回17個音還是沒聲音... 我已經煩惱好幾個禮拜了 拜託高手們救救我的兩學分... 感激不盡 <HTML> <HEAD> <TITLE>JavaScript Piano</TITLE> <SCRIPT language=JavaScript>function playnote(note) { document.embeds[note].play() }</SCRIPT> <SCRIPT language=JavaScript>function stopSound(note) { document.embeds[note].stop() }</SCRIPT> </HEAD> <BODY> <EMBED src=A0.mp3 hidden=true AUTOSTART="false"> <EMBED src=A#0.mp3 hidden=true AUTOSTART="false"> <EMBED src=B0.mp3 hidden=true AUTOSTART="false"> <EMBED src=C.mp3 hidden=true AUTOSTART="false"> <EMBED src=C#.mp3 hidden=true AUTOSTART="false"> <EMBED src=D.mp3 hidden=true AUTOSTART="false"> <EMBED src=D#.mp3 hidden=true AUTOSTART="false"> <EMBED src=E.mp3 hidden=true AUTOSTART="false"> <EMBED src=F.mp3 hidden=true AUTOSTART="false"> <EMBED src=F#.mp3 hidden=true AUTOSTART="false"> <EMBED src=G.mp3 hidden=true AUTOSTART="false"> <EMBED src=G#.mp3 hidden=true AUTOSTART="false"> <EMBED src=A.mp3 hidden=true AUTOSTART="false"> <EMBED src=A#.mp3 hidden=true AUTOSTART="false"> <EMBED src=B.mp3 hidden=true AUTOSTART="false"> <EMBED src=C2.mp3 hidden=true AUTOSTART="false"> <EMBED src=C#2.mp3 hidden=true AUTOSTART="false"> <EMBED src=D2.mp3 hidden=true AUTOSTART="false"> <EMBED src=D#2.mp3 hidden=true AUTOSTART="false"> <EMBED src=E2.mp3 hidden=true AUTOSTART="false"> <EMBED src=F2.mp3 hidden=true AUTOSTART="false"> <EMBED src=F#2.mp3 hidden=true AUTOSTART="false"> <EMBED src=G2.mp3 hidden=true AUTOSTART="false"> <EMBED src=G#2.mp3 hidden=true AUTOSTART="false"> <EMBED src=A2.mp3 hidden=true AUTOSTART="false"> <a href=# onMouseDown="playnote(0);return true" onMouseUp ="stopSound(0);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(1);return true" onMouseUp ="stopSound(1);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(2);return true" onMouseUp ="stopSound(2);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(3);return true" onMouseUp ="stopSound(3);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(4);return true" onMouseUp ="stopSound(4);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(5);return true" onMouseUp ="stopSound(5);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(6);return true" onMouseUp ="stopSound(6);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(7);return true" onMouseUp ="stopSound(7);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(8);return true" onMouseUp ="stopSound(8);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(9);return true" onMouseUp ="stopSound(9);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(10);return true" onMouseUp ="stopSound(10);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(11);return true" onMouseUp ="stopSound(11);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(12);return true" onMouseUp ="stopSound(12);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(13);return true" onMouseUp ="stopSound(13);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(14);return true" onMouseUp ="stopSound(14);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(15);return true" onMouseUp ="stopSound(15);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(16);return true" onMouseUp ="stopSound(16);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(17);return true" onMouseUp ="stopSound(17);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(18);return true" onMouseUp ="stopSound(18);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(19);return true" onMouseUp ="stopSound(19);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(20);return true" onMouseUp ="stopSound(20);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(21);return true" onMouseUp ="stopSound(21);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(22);return true" onMouseUp ="stopSound(22);return true"> <IMG src="whitekey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(23);return true" onMouseUp ="stopSound(23);return true"> <IMG src="blackkey.gif" align=top border=0></a> <a href=# onMouseDown="playnote(24);return true" onMouseUp ="stopSound(24);return true"> <IMG src="whitekey.gif" align=top border=0></a> </BODY> </HTML> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.171.115.79 ※ 編輯: zizoids 來自: 118.171.115.79 (01/12 02:52)

01/12 08:39, , 1F
embeds src="xxx.mp3",另外檔名不要有#,試試看。
01/12 08:39, 1F

01/12 16:34, , 2F
謝謝樓上 可是行不通耶ˊˋ
01/12 16:34, 2F

01/12 19:52, , 3F
這是HTML不是JSP~
01/12 19:52, 3F

01/12 22:26, , 4F
JSP和這個的關係是啥
01/12 22:26, 4F

01/12 23:15, , 5F
連三篇
01/12 23:15, 5F
文章代碼(AID): #19QZ--HF (Web_Design)