HTML Tutorial (8) - Playing Music

xiaoxiao2021-03-06  105

play music

In addition to the graphics, HTML can also play music and videos. The music format that can be played with a browser is: MIDI music, WAV music, AU format. In addition, in various music formats downloaded by the network, MP3 is the most compressed rate, the best sound quality.

Oncast music

Make music into a link, just click on the mouse to click on it, you can hear the moving music, this way is simple:

music name

For example: Playing a paragraph MIDI music:

Midi Music MIDI Music

Play a paragraph Au format music:

You - Abu Music in the same table - Abu music at the same table

Collect the music we like, make a music library, you can make yourself with others in the ocean of music, you have already met a lot, and you can try it!

Automatically load music

In front, we are using the link to implement the function of playing music online, we can also allow music to load, you can make it control panel or as background music. Basic syntax:

Attributes are:

SRC = "filename" sets the path of music file AutoStart = true / false Automatic playback Represents 6 times, True means unlimited playback, FALSE will stop once. Startime = "分: second" Set the start play time of the song, such as 20 seconds, playing STARTIME = 00: 20Volume = 0-100 Set the size of the volume. If you are not set, use the volume of the system. Width Height Sets the size of the control panel Hidden = true Hide Control Panel Controls = Console / SmallConsole Set the Control Panel

Background music in IE

In addition, there is an insertion background music format, but you can only hear it in the IE browser.

# = Number of cycles

Example:


New Post(0)