Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> HTML >> Snippet

Play a sound


<!-- to play the sound in a separate window, use the <a> anchor tag -->
< a href = "mysound.wav" > Sound </ a >

<!-- to embed the sound in your HTML file, with a control panel visible for the user -->
< em BED SRC =your_file.mid AUTOSTART =false WIDTH = 144 HEIGHT = 60 LOOP = 1 >
Set Loop=True to play the sound until the user stops it

<!-- to embed the sound in your HTML file, playing in the background as soon as the page loads -->
< em BED SRC =your_file.mid AUTOSTART =true HIDDEN =true LOOP = 1 >

<!-- call helper app    this works on Microsoft IE only -->
< b GSOUND SRC =your_file.mid LOOP = 1 >
Loop=-1 for nonstop