Add flash play or background music to the web page

xiaoxiao2021-03-06  111

The reason why the Object label is packaged outside the Embed label. Because IE recognizes the Object tag, and Netscape Navigator recognizes the Embed tab and ignores the object tag. This is the most basic calling music code.

This tag can change your favorite look, place anywhere between and when doing a web page. A similar media playing program appears in the position placed in this tag, which can control play music or pause. For example, I will write this line below:

There will be a control palette to let you play music. If I want to use the music as a background music, it is not to display the control panel. And when you enter the picture, you will play it and then repeat it. Write like this:

About There are still many other properties, here I will give you a detailed explanation.

SRC = "Archive Name and Path" Set the path to the MIDI file.

AutoStart = "true / false" is automatically played after the music file is over. True is to, false is not, the preset value is not.

Loop = "true / false / integer" setting Do you want to automatically rebound, loop = 2 indicates twice, if you want to repeat the available loop = "true" without limiting. StartTiime = "Minute: Second" sets the time of the song to start playing, for example, I want to start playing from the 30th second of this song, so I write StartTiime = "00:30"

EndTime = "分: 秒" songs ended, Generally, we don't have to set the time and end of the song, it will automatically play from the head.

Volumee = "0-100" Set the size of the music volume, the value must be between 0 and 100, if not set, is the volume size set by the user system itself.

Width and high = "integer" setting the width and height of the control surface version.

Align = "Top / Bottom / Center / Baseline / Left / Right / TEXTTOP / MIDDLE / ABSMIDDLE / ABSBOTTOM" Sets the alignment of the control panel and the next text, the properties used by (inserted graphical tag) are the same of.

Controls = "console / smallconsole / playbutton / pausebutton / stopbutton / volume" sets the sample control panel, the preset value is console.

Console General Panel SmallConsole Small Panel PlayButton Only Display Play button Pausebutton only Display Pause StopButton only Display Stop Button Volumelever only Display Volume Tuning

Hidden = "true" If you write this property, you will completely hide the control panel, but you can't set the width and high of the control panel.

can be placed anywhere in and . Remember: A pattern of control panels appears in the position placed in this tag, you can put it in your proper position, you can also use hidden = true to hide the panel, with AutoStart = True as background music use.

I have already understood it above, then all information is like this:

This is the code that hides the control panel

The music here is not only to play the MID format, and the MP3 format can be played.

转载请注明原文地址:https://www.9cbs.com/read-101311.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.043, SQL: 9