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.

(TITLE) Sound 2 (/TITLE)

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



To Main Menu

New Email Address: See Main Menu page
Date last updated: January 2003