VocExileMain Menu/Music

An Easy Way to Add Music to a Web Page

By Ed Perley

The HTML code listed below will allow a web page to play music when it is loaded. The music file referred to in the code must also be present. It must be in a format that your browser can play. In the example below, it is a midi file. The music will start playing as soon as the page is loaded, and it will continue indefinitely. The value following 'loop=' determines how many times it will play.


(HTML)
(HEAD)
(TITLE) Sound 2 (/TITLE)
(BODY)
(P)

(bgsound src="bigcity.mid" loop="INFINITE")
(embed src="bigcity.mid" HIDDEN=true AUTOSTART=true loop = true)

(/P)

(/BODY)
(/HTML)



To Main Menu



http://www.nfinity.com/~exile/progmenu.htm
New Email Address: See Main Menu page
Date last updated: January 2003