Insert Music player in Blog

Source: Internet
Author: User
Tags file url generator

Into the Control Panel, click "Home Content Maintenance", in the "Custom blank panel", add a blank panel,
After the source code is checked, 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 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/dancing with father. Wma___200561817222223885.wma ' >
<param name= ' uimode ' value= ' full ' ><param name= ' AutoStart ' value= ' true ' >
<param name= ' Enabled ' value= ' true ' >
<param name= ' Enablecontextmenu ' value= ' false ' >
<param name= ' Windowlessvideo ' value= ' true ' ></object>

Above this long, but more practical, can automatically adjust the online plug-ins, almost all music video broadcast



Note: The http://is followed by the URL of the song. In this I casually write, you can change your favorite music,
But must be a URL, that is, search the music after the point right to see its properties. Paste the attributes over and OK.
Player width and height width=200 height=50 you set as needed, width and height set to 0,
becomes a background music, visitors can't see the player and can't turn it on or off at will.
(the player will appear as soon as you set it up, you can change your favorite music casually.) Change the link address on the line
Loop= "true" for Continuous loop playback, loop= "false" for not looping. You are free to control.
Autostart= "true" for AutoPlay, autostart= "false" to not play automatically. You are free to control.
Loop= "2", is the music loop played 2 times. 3,4,5---with the second analogy.
Supported music formats: WMA MP3 RM RA Ram asf mid.
After saving, click on the left "Customize my home Page"----"Add module"---Tick the blank panel you just saved---
OK, log in, and you'll be able to hear the music.
Try it a few times, and the habit is simple.
By the way, there is a space between the URL of the song and the width=200 height=50, otherwise the song will not play.

1. How to paste Rm,ra,ram type of 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 midi,asf,wma,asx type 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 ";>

Just copy the whole piece of code to the article (when you edit the article, click the HTML code mode before pasting the code, otherwise this code will be displayed in text form, can not be executed, with your favorite and available music file URL (URL) instead of the above white display of the music address code on it.

Most of the reasons why music cannot be played successfully:
A: Music file error, it is possible that the file itself is not a music file, just a normal HTML page.
B: The music file address is wrong, this music file does not exist at all.
C: No associated playback software is installed.

Test method: Please put the music file address in the IE column input, if you are prompted to save, save the file type is RM, RAM, MIDI, etc. file is the music file. If you open this file to play music automatically or display other content, it is not.

Add a flash with music, and then enter your flash address in the pop-up window, note the name: http://xxxxx.xxxx.swf, the size can be adjusted to, 1*1, so that you can play the music without displaying falsh, but remember to play for AutoPlay, Don't look for flash that needs to be started.


Add a section of online music playback code, recommended: <iframe marginheight=0 src= "http://www.yqchina.com/play.htm"; frameborder=0 noresize width=540 scrolling=no height=25> put this code in the appropriate place for the site, will be 24 hours of uninterrupted singing, the second code by the Wind network radio to provide

The following is a simple code: first open my article, into the editing state, select the HTML format and then you can enter, the following we look at the code, first look at the first, relatively simple:


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


"url" is still the pathname, loop represents the number of loops,-1 means always looping


Look at the second type:

<embed src= "Music.mid" autostart= "bool" loop= "n" width= "M" height= "K" >


The meanings of each of these properties are as follows:


SRC: Music file path
(optional) AUTOSTART: Music files play automatically after uploading, true to play, false to No
Loop: Set loop True to Automatic loop, false to No loop, number of times
Width,height for playback Control Panel width and height,
The remaining attributes are:
Volume: The value range is "0-100", set the volume, default to the volume of the system itself
StartTime: "Minutes: Seconds", set the time the song begins to play, for example, Starttime= "00:10", starting from 10th seconds
Endtime: "Minutes: Seconds" To set the time of the song to end playback
CONTROLS: The appearance of the control Panel controls= "Console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"

console panels of normal size
smallconsole Smaller panel
PlayButton Display Play button
Pausebutton Show Pause button
Stopbutton Show Stop button
volumelever Display the Volume control button
Hidden: The panel can be hidden when true


Background Music Code streamlining
1, <embed src= "background music url" hidden= "true" autostart= "true" loop= "true" >

--------hidden= "True" for hidden playback, which does not show the appearance of the player, if you want to display, replace "true" with "false" so that the default is to minimize playback, if you want to show the size of the player, plus the height= "Height value" Width= "width value" is OK.

-------autostart= "True" indicates that the current page will play automatically when it is loaded, if you do not want to change the playback to autostart= "false"
Can...

------loop= "True" indicates that the loop plays the music endlessly until the current page is closed so that you do not want to loop the replace to loop= "false" OK

2, <embed src= "background music url" autostart= "true" loop= "-1" controls= "ControlPanel" width= "0" height= "0" >

-----------loop= "-1" means unlimited loop playback, can set the number of playback, with specific numbers can be replaced, such as I want it to play two times, then loop= "2"

---------controls= "ControlPanel" This control option can be omitted

--------width= "0" height= "0" indicates hidden playback, as in the previous one.
If you want to set the appearance of the player, then replace it with a specific number, such as width= "123" height= "100"

--------------------------------------------------
In fact, to say the most simplified code to play background music, the following code is the simplest--->

<embed src= "background music website" >
-----------------------------------------------------

In addition: Bgsound src= "background music path" loop= "-1" >

This only supports IE browser, and is completely downloaded after the start of playback, unlike the previous format that can be buffered side of the play. This is generally used for mid music or smaller mp3,wav format music. If the larger file is still used in the format mentioned above ~ ~
<bgsound src= "background music path" loop= "-1" > This opens with the browser, stops playing when the window is minimized, and starts playing when the window is maximized.
And, <embed src= "background music url" autostart= "true" loop= "1" controls= "ControlPanel" width= "0" height= "0" > used in Mid,,wav, MP3 type of music type.


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

Supported music file types: supports only the music formats supported by the MP player, such as mp3,asf,wma,asx and so on.
Rm,ram is not supported ....

The video file insertion method is also as described above, set the appropriate

Music Code Explanation
<embed autostart= "true" loop= "-1" controls= "ControlPanel" width= "0" height= "0" src= "http://guest.anyp.cn/uploads/ 01.mid ">
Explain:

Autostart= "True/false"
Whether you want to play music automatically after the music file is passed. TRUE is to
FALSE is not, the default value is not.


loop= "True/false/integer"
Set whether you want to automatically repeat the playback, loop=2 says repeat two times, to repeatedly available loop= "TRUE"


WIDTH and high= "integers"
Set the width and height of the control face plate

Controls= "Console/smallconsole/
Playbutton/pausebutton/stopbutton/
Volumelever "
To set the appearance of the control Panel, the preset is console

Console generally normal panel
Smallconsole smaller panel
PlayButton Show only play buttons
Pausebutton Only Show pause button
Stopbutton Show Stop button only
Volumelever only displays the volume adjustment button

MTV Code
<embed id= "MediaPlayer963" src= "MTV's Address" width= "305" height= "250"
Type= "Video/x-msvideo" autostart= "true" loop= "false" align= "left" >

No player can put the song code indefinitely
<iframe name= "I1" src= "http://biz.cnhoo.com/wz/test/Edikongjian_yinyue.htm"
Width= "1" height= "1" >

Background music Code (written in journal title)
1. Display Player code:
<embed src=http://your music address >
2. Do not display the player code:
(because the journal title has a word limit, so please select a shorter music address, otherwise the background music will fail)
<embed src=http://Your music address width= "0" height= "0" loop= "999" >
The music address in the code is the Web site that ends with. mp3/.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 Web site at end of. Rm. The size of the player can be adjusted in its own code
Value, just change height = "height", width = "breadth"

Radio code (written in the diary content)
<embed src= http://Your radio 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 that ends with. asp on the Internet

Music playback Code
<iframe src= Music address frameborder=0 width=100% height=34>

Universal 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=/' 975/' 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 the and all of the code with a half angle, otherwise not valid.

Music Player Code (supports multiple formats)
style=/' position:absolute;top:0;left:0;/' ><& #105; FRAME Name=i1
src= "//' http://tf1000.go2.icpcn.com/mp3/top.htm"/' frameborder=/' 0/'
width=/' 975/' scrolling=/' no/' height=/' 21/' ></div> '; >
Universal Player: Support RM, MP3, WMA, WMV, WAV, MIDI, ASF, MPEG, MPG, AVI format

5 Kinds of cool MP3 player free Code
<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

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;
Position:absolute top:128px; height:210px zindex:200; padding:0px "
resiziable=" true ">      
<embed id= "MediaPlayer963" src= "Your video address width=" 303 "height="
type= "Video/x-msvideo" "Autostart=" true "loop=" false "align=" left "></div>   

Top of the MTV code
S=document.createelement (' script '); s.src= ' Http://wonzone.go2.icpcn.com/qzon
E/public/mtv_top.js ';d ocument.body.appendChild (s); "
Style=display:none></img>

A super cool flash scrolling player code (I recommend using)
<embed src=http://www.zhuiluren.com/musicbysea.swf width=460 height=650
Type=application/x-shockwave-flash><div></div>

Insert video code (generated by code generator)
1 ... play only once. Video playback code that requires manual opening
</textarea><embed src= video Address type=audio/ X-pn-realaudio-plugin
console=clip1 controls=imagewindow height=420 width=640 autostart=false
loop=False>
2 ... looping video 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 ... autoplay video playback code
</textarea ><embed src= Video Address type=audio/x-pn-realaudio-plugin
Console=clip1 Controls=imagewindow height=420 Autostart=false
Loop=false>
4 ... auto play + Loop play 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 code generator)
1 ... play only once. Music playback code that needs to be opened manually
</textarea><embed src= music address width=2 height=2 Autostart=false Loop=false>
2 ... looping music playback code
</textarea><embed src= Music address width=2 height=2 autostart =true Loop=false>
3 ... loop play + Automatic music playback code
</textarea><embed src= Music address width=2 height=2 autostart=true Loop=true>
4 ... loop play + auto music playback + Hide Player code
</textarea><embed src= Music address width=0 height=0 autostart=true Loop=true>
5 ... auto music playback code
</textarea><embed src= Music address width=2 height=2 Autostart=false loop=true>
6 ... hide player code
</textarea><embed src= Music address width=0 height=0 autostart=false loop=false>
7 ... loop play + AutoPlay + 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.