當前位置:編程學習大全網 - 源碼下載 - 如何添加新浪博客音樂

如何添加新浪博客音樂

編輯完文章後(或者編輯文章前,或者在文章的其他位置,可以自行選擇),勾選文本編輯框下方的“顯示源代碼”復選框;

第6步,將下面的音樂播放器代碼復制粘貼到文本編輯框中的原始代碼中

音樂播放器代碼:

& lt嵌入式src = music link address width = 200 height = 50 type = audio/mpeg loop = " true " auto start = " true " >

代碼描述:

支持的音樂格式:wma,mp3,rm,ra,ram,asf。盡量使用可以流暢鏈接的音樂鏈接,保證音樂可以流暢播放。

1,寬度和高度表示球員的寬度和高度。如果寬度和高度設置為“0”,則不顯示播放器,可以根據自己的需要靈活設置。

2、autostart="true "表示自動播放,autostart="false "表示不自動播放;

3.loop="true "表示連續循環播放,loop="false "表示不循環播放。loop也可以設置為整數,例如loop="3 "表示音樂循環播放三次。

第七步,點擊“發布文章”;

第八步:文章發布成功後,返回首頁會看到博文中的音樂播放器效果。

提示:

1,音樂url鏈接地址必須存儲在網絡服務器,不是本地音樂,否則無法播放;

2.在選擇音樂url鏈接地址時,壹定要多聽。妳需要選擇傳輸流暢的音樂作為音樂環節,否則會語無倫次。

添加背景音樂,打開空白控制面板,粘貼以下代碼,在線搜索想要的歌曲,復制地址保存寬度和高度是播放器的寬度和高度,可以靈活設置。Autostart="true "表示自動播放,autostart="false "表示不自動播放。

Loop="true "表示連續循環播放,loop="false "表示不循環播放。

Loop可以等於整數,如loop="3 ",即音樂循環播放三次。

1*玩家風格代碼:

& ltDIV & gt& ltembedded style = " filter:Xray()" src = music link width = 180 high = 50 type = audio/mpeg auto start = " true " loop = " true " > & lt;/DIV & gt;

2*玩家風格代碼:

& lt嵌入式src = music link width = 200 height = 50 type = audio/mpeg loop = " true " auto start = " true " >

3*玩家風格代碼:

& ltTABLE Style = " FILTER:alpha(opacity = 100 Style = 0 finishopity = 100)" border color = # 000000 height = 200 cell spacing = 0 cell padding = 0 width = 200 align = left background =/exing border = 0 & gt;

& ltTBODY & gt

& ltTR & gt

& ltTD width = 200 height = 200 cell padding = " 0 " cellSpacing = " 0 " >& lt/TD & gt;& lt/TR & gt;

& ltTR & gt

& ltTD align=cente>。

& ltP align = center & gt& ltEMBED style = " BORDER-RIGHT:# cccccc 0px solid;BORDER-TOP:# cccccc 0px solid;FILTER:alpha(opacity = 40 Style = 1 finishopity = 40)gray progid:& lt;br & gt

DXImageTransform。Microsoft . Blur(pixel radius = 0 make shadow = false);邊框-左側:#cccccc 3px實心;border-bottom:# ccccc 0 px solid " src = music link width = 200 high = 24 type = application/x-mplayer 2 loop = "-1 " auto start = " 1 " volume = " 0 " > & lt;/FONT & gt;& lt/TD & gt;& lt/TR & gt;& lt/TBODY & gt;& lt/TABLE & gt;

  • 上一篇:瘋狂助手源代碼
  • 下一篇:叮咚用死魚冒充活魚買菜被查。如何保證網購的質量?
  • copyright 2024編程學習大全網