Quantcast
Channel: OKWAVE 最新質問([技術者向] コンピューター/205)【本日】
Viewing all articles
Browse latest Browse all 38062

音鳴らず。ソース見てください。

$
0
0
クリックで効果音を出したくて下記ソース書きましたが、音が出ません。 どこが間違ってるのでしょうか?使用しているブラウザはFirefoxです。よろしくお願いします。 <!DOCTYPE html> <head> <meta charset="Shift_JIS"> <script type="text/javascript"> function naru() { document.getElementById("mySound").play(); } </script> </head> <body> <audio id="mySound" preload="auto"> <source src="oto1.mp3" type="audio/mp3"> <source src="oto1.ogg" type="audio/ogg"> <source src="oto1.wav" type="audio/wav"> </audio> <form> <input type="button" value="oto" onclick="naru()"> </form> </body> </html>

Viewing all articles
Browse latest Browse all 38062

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>