East Carolina University
Department of Psychology


Making Your Web Page Musical


    I used to embed music in web pages this way:

<EMBED ALIGN="CENTER" SRC="http://personal.ecu.edu/wuenschk/Midi/Great_Balls_of_Fire(JerryLeeLewis).mid" HEIGHT="100" WIDTH="600" AUTOSTART="TRUE" VOLUME="100%" REPEAT="FALSE" MASTERSOUND ></EMBED>

but one of my XP computers freaks out every time I try to run htm with such an embedded command, so I have shifted to using BGSOUND, which is a Microsoft extension to HTML, so probably only works with MS Internet Explorer, which remains my favorite browser anyhow.  Here is the code I used in this web page to play the idontlikespam wav twice.

<bgsound src="http://core.ecu.edu/psyc/wuenschk/Wav/dontlikespam.wav" loop="2">

    The BSGOUND command can appear anywhere in the html document.  It works with mid, mp3,  and wav files, maybe others too.

    Use LOOP="-1" to play the sound over and over again as long as the page is open.  LOOP="0" will play it only once, LOOP="1" will play it twice, and so on.

Back to "Creating Web Pages"

Visit Karl's Index Page


Contact Information for the Webmaster,
Dr. Karl L. Wuensch


This page most recently revised on 28. September 2007.