Welcome to CODEBOX! (Copy 2120)
✨ นายสรรค์ธกรณ์ วงศ์ศิริภา
<html> <head> <title>Let's Start </title> <style> body{ background:#eee; margin:1em; font-family:sans-serif; } .el{ display:inline-block; background:#f008; height:100px; width:20%; padding:10px; box-sizing:border-box; border:3px solid #f008; } </style> </head> <body> <!-- เขียนเว็บง่ายๆ และดูการแสดงผลด้านซ้ายมือได้เลย --> <audio autoplay id="autoplay" onloadeddata="setHalfvolume()"> <source src="https://multijabond.web.app/guan-im.mp3"> </audio> <div class="el">1234 </div> <div class="el">1234 </div> <div class="el">1234 </div> <div class="el">1234 </div> </body> <script> function setHalfvolume(){ var bgmusic = document.getElementById("autoplay"); bgmusic.volume = 0.2; bgmusic.loop = true; } </script> </html>