Current location - Music Encyclopedia - NetEase Cloud Music - Web pages with music
Web pages with music
The first type:

What I want to say here is that the value in "loop" is the number of music loops and can be set to any positive integer. If it is set to "-1", the music will loop forever.

This background music is played directly after the leaves are opened and will not be displayed on the web page. This is the simplest one.

Second, this method is a little more complicated, but there are many parameters that can be set. Still in web code

& lt embedded src = "music URL" autostart = "true" loop = "true" width = "80" height = "20" >

The difference is that we can set more contents here, and the following are specific instructions:

The address (i.e. url) of src background music.

Whether autostart plays automatically, "true" means that the music file will be played immediately after reading, and "false" means that it will not be played immediately. The default value is False.

Cycle number, set to "true" to loop forever, and "false" to play only once, set to the number of times any positive integer will be input circularly.

Volume Set the volume in the range of "0- 100", and the default value is the current volume of the system.

Starttime sets the time when the music starts to play, and the format is "minutes: seconds".

For example, start time = "00: 10 ",that is, it starts playing from the first 10 second.

Endtime sets the time when the music ends playing. The specific format is as above.

Width Sets the width of the music playback control panel.

Height Sets the height of the music playback control panel.

Control sets the appearance of the music playback control panel.

The "console" is a normal panel;

A "mini console" is a small panel.

"Play button" is whether to display the play button;

"Pause button" is whether to display the pause button;

"stopbutton" indicates whether to display the stop button;

"volumelever" is whether the volume adjustment button is displayed.