sound effect program thingy
unknown
plain_text
a year ago
672 B
3
Indexable
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Image Soundboard</title> <style> .image-container { display: flex; justify-content: center; align-items: center; } img { width: 100px; margin: 10px; cursor: pointer; } </style> </head> <body> <div class="image-container"> <!-- Image of confetti and hands --> <img src="confetti_and_hands.jpg" onclick="playSound('clapping_cheering.mp3')" alt="Confetti and Hands"> </div> <script> function playSound(soundFile) { var audio = new Audio(soundFile); audio.play(); } </script> </body> </html>
Editor is loading...