Tweets from pichat
| Two songs from the year I created my first web sites. http://t.co/8eHrOA9K + http://t.co/AuWb2etI #video #retro About 1 day ago from pichat (Mark Seuffert) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 1 week, 5 days ago from 600infos (Wolf) |
Trace: » FR1010 - Iconbar for emoticons and colors » FR1022 - Mini-Chat-Window » FR1015 - new shortcut topwindow [F3] » Colorscheme Talk » HTTP_USER_AGENT ändern » embedding sound
You are here: Pichat Wiki (en) » Snippets » embedding sound
embedding sound
- sound.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <title>Ding Dong </title> <script> function PlaySound(sound) { document.getElementById("sound").innerHTML="<embed src='"+sound+"' hidden=true autostart=true loop=false>"; } </script> </head> <body> <span id=sound> </span> <form> <input type="button" value="Ding" onClick="PlaySound('ding.wav')"> <input type="button" value="Dong" onClick="PlaySound('dong.wav')"> </form> </body> </html>
if you need, you can download soundfiles from http://www.ilovewavs.com/Effects/Beeps/Beeps.htm
save it as ding.wav or as dong.wav and see what happens