Insert a music player into a blog

Source: Internet
Author: User

Go to the control panel, click "homepage content maintenance", and add a blank panel in "Custom blank panel,
Check "source code" and paste the following code:
 
<Embed src = http: // 163.20.114.1 /~ T120/bug.mp3 width = 200 Height = 45 type = audio/MPEG
Loop = "false" autostart = "false">

 
Or use this code:
<Object ID = nstv classid = 'clsid: 6bf52a52-394a-11d3-b153-00c04f79faa6 'width = 180 Height = 170 codebase = http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type = application/X-oleobject>
<Param name = 'url' value = 'HTTP: // bbs.hndt.com/uploadfile/2005-6/dance with the parent. wma__200561817222223885.wma'>
<Param name = 'uimode' value = 'full'> <Param name = 'autostart' value = 'true'>
<Param name = 'enabled' value = 'true'>
<Param name = 'enablescontextmenu 'value = 'false'>
<Param name = 'windowlessvideo' value = 'true'> </Object>
 
The above is long but practical. It can automatically tune online plug-ins, and almost all music and videos are played.
 
 
 
Note: http: // is followed by the URL of the song. You can change it to your favorite music,
However, it must be a URL, that is, right-click the music and right-click it to view its attributes. paste the attributes and click OK.
Player width and height width = 200 Height = 50 if you set the width and height to 0,
As a background music, visitors cannot enable or disable the player without seeing it.
(After the settings are complete, the player will appear. You can change the music you like. Just change the link address)
Loop = "true" indicates continuous loop playback, and loop = "false" indicates non-loop playback. You can control it freely.
Autostart = "true" indicates automatic playback, and autostart = "false" indicates that automatic playback is disabled.
Loop = "2" indicates that the music is played twice in a loop. 3, 4, 5 --- and so on.
Supported music formats: WMA MP3 RM Ra Ram ASF mid.
After saving, click "customize my homepage" on the left ---- "add module" --- Select the blank panel you just saved ---
Are you sure you want to log in and see the music.
After a few attempts, the habit is simple.
By the way, there must be a space between the URL address and width = 200 Height = 50; otherwise, the song cannot be played.

1. How to paste RM, Ra, Ram music, the Code is as follows:
<Embed width = "0" Height = "0" type = "audio/X-PN-RealAudio-plugin" autostart = "true" controls = "controlpanel" src = "http://guest.anyp.cn/uploads/01.rm" ;>

2. How to paste the Midi, ASF, WMA, and ASX types of music, the Code is as follows:
<Embed autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0" src = "http://guest.anyp.cn/uploads/01.mid";>

You only need to copy the entire code segment to the Article (when editing the article, click the HTML code mode and then paste the Code; otherwise, the code will be displayed in text format and cannot be executed ), you can use the URL of your favorite and available music files to replace the code of the white music address displayed above.

Most of the reasons that cause music to fail to be played:
A: The music file is incorrect. It is possible that this file is not a music file, but a common HTML page.
B: The music file address is incorrect. This music file does not exist.
C: No related playing software is installed.

Test method: Enter the music file address in the IE column. If you are prompted to save the file, the saved file type is RM, Ram, Midi, and other files, that is, the music file. If the file is opened and the music is automatically played or other content is displayed, no.

Add the flash with music, and then enter your flash Address in the pop-up window, note the post stamp Name: http://xxxxx.xxxx.swf, size can be adjusted to, 1*1, in this way, you can play music without displaying falsh, but remember to play it automatically. do not find the flash that needs to start.

Add an online music play code, recommended: <IFRAME marginheight = 0 src = "http://www.yqchina.com/play.htm "; frameborder = 0 noresize width = 540 scrolling = No Height = 25> place the code in a proper place on the website and play the song 24 hours a day. The code is provided by Qingfeng network radio.

 

The following is a simple code: First open my article, enter the editing status, select the HTML format, and then enter it. Next let's look at the code. First, let's look at the first one, which is relatively simple:

<Bgsound src = "url" loop =-1>

"Url" is still the path name, "loop" indicates the number of loops, and "-1" indicates that the loop is always

Let's look at the second one:

<Embed src = "music. Mid" autostart = "bool" loop = "N" width = "M" Height = "K">

The meaning of each attribute is as follows:

SRC: music file path
(Optional) autostart: automatic playback after the music file is uploaded. True indicates playback, and false indicates no.
Loop: Set "true" to "Automatic loop", "false" to "no loop", and "Number" to "count ".
Width and height are the width and height of the playback control panel,
Other attributes include:
Volume: The value ranges from 0 to 100. Set the volume. The default value is the volume of the system.
Starttime: "minute: Second", set the start time of the song, for example, starttime = "", starting from 10th seconds
Endtime: "minute: Second", set the end time of the song
Controls: Control Panel exterior controls = "console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"

· Normal console panel size
· Small smallconsole panel
· Playbutton: display the playback button
· Pausebutton: display the pause button
· Stopbutton: displays the stop button.
· Volumelever display volume adjustment button
Hidden: If this parameter is set to true, the Panel can be hidden.

Simplified background music code
1. <embed src = "den =" true "autostart =" true "loop =" true ">

-------- Hidden = "true" indicates hidden playback, that is, the appearance of the player is not displayed. to display the video, replace "true" with "false". By default, playback is minimized, if you want to display the player size, add height = "height" width = "width.

------- Autostart = "true" indicates automatic playback when the current page is loaded. If you do not want to play the video, change it to autostart = "false"
You can...

------ Loop = "true" indicates Infinite Loop Playing of music until the current page is closed. If you do not want Loop Playing to be replaced by loop = "false", it will be OK.

2. <embed src = "" autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0">

----------- Loop = "-1" indicates infinite loop playback. You can set the number of playback times and use a specific number instead. For example, if you want it to play twice, loop = "2"

--------- Controls = "controlpanel" can be omitted

-------- Width = "0" Height = "0" indicates hiding the playback, which is the same as the previous one.
To set the appearance of the player, replace it with a specific value, for example, width = "123" Height = "100"

--------------------------------------------------
In fact, the following code is the simplest to describe the code for playing background music. --->

<Embed src = "">
-----------------------------------------------------

In addition, bgsound src = "background music path" loop = "-1">

This function only supports Internet Explorer and starts playing after the download is complete. Unlike the preceding format, it can be played while buffering. This is generally used for mid music or small MP3 or WAV music. If it is a large file, use the format mentioned above ~~
<Bgsound src = "background music path" loop = "-1"> this function is played as the browser opens. When the window is minimized, the function stops playing. When the window is maximized, the function starts playing again.
However, <embed src = "" autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0"> commonly used in mid,, WAV and MP3 types of music.

This will always be played regardless of whether the window is minimized until the current window is closed ~~

Supported music file types: only supported music formats supported by the MP player, such as MP3, ASF, WMA, and ASX.
Rm, Ram ....

The video file insertion method is also the same as described above.

Music code explanation
<Embed autostart = "true" loop = "-1" controls = "controlpanel" width = "0" Height = "0" src = "http://guest.anyp.cn/uploads/01.mid">
Explanations:

Autostart = "True/false"
Whether to automatically play the music after the music file is uploaded. True is required
False indicates no, and the specified value indicates no.

Loop = "True/false/Integer"
Sets whether to automatically repeat playback. Loop = 2 indicates repeated playback twice. If you want to repeat playback for an unlimited number of times, you can use loop = "true"

Width and high = "integer"
Set the width and height of the Control Panel

Controls = "console/smallconsole/
Playbutton/pausebutton/stopbutton/
Volumelever"
Set the control panel. The default value is console.

Normal console panel
Small smallconsole panel
Playbutton only displays the play button
Pausebutton: only the pause button is displayed.
Stopbutton: only show the stop button
Volumelever only displays the volume adjustment button

◆ MTV code
<Embed id = "mediaplayer963" src = "MTV address" width = "305" Height = "250"
Type = "Video/X-msvideo" autostart = "true" loop = "false" align = "Left">

◆ Unlimited song code can be put without a player
<IFRAME name = "I1" src = "http://biz.cnhoo.com/wz/test/Edikongjian_yinyue.htm"
Width = "1" Height = "1">

◆ Background music code (written in the diary title)
1. display the player code:
<Embed src = http: // your music address>
2. Do not display the player code:
(Because there is a limit on the number of words in the diary title, please select a short music address. Otherwise, the background music will become invalid)
<Embed src = http: // your music address width = "0" Height = "0" loop = "999">
The music address in the Code is a URL that ends with audio/. MIDI/. wma/. wmv.

◆ Video MTV code (written in the diary content)
<Embed src = http: // your video file address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 124 width = 180 autostart = true
Loop = true>
The video file address in the Code is the URL Ending with. rm on the Internet. You can adjust the player size in the code.
You only need to change Height = "height", width = "width"

◆ Radio station code (written in the diary content)
<Embed src = http: // your station address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 124 width = 180 autostart = true
Loop = true>
The radio address in the Code is the URL Ending with. asp.

◆ Music playback code
<IFRAME src = Music address frameborder = 0 width = 100% Height = 34>

◆ All-around player code
Style =/'position: absolute; top: 0; left: 0;/'> <#105; frame name = I1
Src =/'HTTP: // tf1000.go2.icpcn.com/mp3/top.htm/'frameborder =/'0 /'
Width =/'2017/'scrolling =/'no/'Height =/'21/'> </div> '; ">

◆ A cool embedded Player Code
Style = position: absolute; top: 0; left: 0; width: 925; Height: 655;> </div> '; mvplayer
. & #105; nnerhtml = '<& #105; Frame
Src = http://wonzone.go2.icpcn.com/qzone/mvp/mvp.htm?
Mvx = 700 & mvy = 445 & mvw = 225 & MVh = 180 & mvlst = http://wonzone.go2.icpcn.com/qzon
E/test. JS & ctrlp = true & lstmd = 1 & dd8h = 445 & ctrlpx = 49 & ctrlpy = 625 & rndp = true
Allowtransparency = true width = 925 Height = 655 marginwidth = 0 marginheight = 0
Hspace = 0 vspace = 0 frameborder = 0 scrolling = no name = MVP> </& #105; frame> '"
Style = display: None>
Use NotePad to replace & all in the Code with halfwidth &; otherwise, the code is invalid.

◆ Music player code (multiple formats supported)
Style =/'position: absolute; top: 0; left: 0;/'> <#105; frame name = I1
Src = "// 'HTTP: // tf1000.go2.icpcn.com/mp3/top.htm"/'frameborder =/'0 /'
Width =/'2017/'scrolling =/'no/'Height =/'21/'> </div> '; ">
All-Around PLAYER: supports RM, MP3, WMA, WMV, WAV, Midi, ASF, MPEG, mpg, Avi, and other formats

◆ Code can be freely stored in five super-cool MP3 players
<Content> Src = "javascript: Document. getelementbyid ('mlogo '). innerhtml + =' <Div
Style =/'position: absolute; top: 0; left: 0;/'> <IFRAME name = I1
Src =/'HTTP: // 218.80.220.26/qqzone/25514291/files/music/music5.htm /'
Frameborder =/'0/'width =/'930/'scrolling =/' No /'
Height =/'33/'> </div>'; "> </content>
Top: 0; left: 0 indicates the distance between the top and the left. You can modify the value.

◆ Home theater code
<Div id = "layer25" style = "padding: 0px; left: 2px; overflow: hidden; width:
634px; position: absolute; top: 0px; Height: 530px; zindex: 90"
Resiziable = "true">
Src = "http://photoimg24.qq.com/cgi-bin/load_pic?
Verify = qi4pbowvs % 2fbcyd7ol7ik % 2fg % 3d % 3d "width =" 707 "align =" Middle"
Border = "0"> </div>
<Div id = "layer23" style = "Left: 229px; overflow: hidden; width: 262px;
Position: absolute; top: 128px; Height: 210px; zindex: 200; padding: 0px"
Resiziable = "true">
<Embed id = "mediaplayer963" src = "your video address" width = "303" Height = "300"
Type = "Video/X-msvideo" autostart = "true" loop = "false" align = "Left"> </div>

◆ Top MTV code
S = Document. createelement ('script'); S. src = 'HTTP: // wonzone.go2.icpcn.com/qzon
E/public/mtv_top.js '; document. Body. appendchild (s );"
Style = display: None> </img>

◆ Code of a cool flash rolling player (recommended by myself)
<Embed src = http://www.zhuiluren.com/MusicBYSEA.swf width = 460 Height = 650
Type = application/X-Shockwave-flash> <div> </div>

◆ Insert video code (generated by the Code Generator)
1... only play the video playback code that needs to be opened manually once
</Textarea> <embed src = video address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 420 width = 640 autostart = false
Loop = false>
2 .. loop playback code
</Textarea> <embed src = video address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 420 width = 640 autostart = false
Loop = true>
3 .. video playback code for automatic playback
</Textarea> <embed src = video address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 420 width = 640 autostart = false
Loop = false>
4 .. automatic playback + loop playback code
</Textarea> <embed src = video address type = audio/X-PN-RealAudio-plugin
Console = clip1 controls = imagewindow Height = 420 width = 640 autostart = true
Loop = true>

◆ Insert music code (generated by the Code Generator)
1... only play the code of the music that needs to be opened manually once
</Textarea> <embed src = Music address width = 2 Height = 2 autostart = false loop = false>
2 .. loop playback code
</Textarea> <embed src = Music address width = 2 Height = 2 autostart = true loop = false>
3 .. loop playback + automatic music playback code
</Textarea> <embed src = Music address width = 2 Height = 2 autostart = true loop = true>
4 .. loop playback + automatic music playback + hide Player Code
</Textarea> <embed src = Music address width = 0 Height = 0 autostart = true loop = true>
5 .. automatic music playback code
</Textarea> <embed src = Music address width = 2 Height = 2 autostart = false loop = true>
6 .. hide the Player Code
</Textarea> <embed src = Music address width = 0 Height = 0 autostart = false loop = false>
7 .. loop playback + automatic playback + Player Code
Style =/'position: absolute; top:; left:;/'> <& #105; frame name = I1 src =/' music address
/'Frameborder =/'0/'width =/'/'scrolling =/' No/'height =/'> </div>'; ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.