打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
网页中插入背景音乐代码 (音画)

1、网页中插入背景音乐代码

 网页中加入音乐代码是放在<body>与</body>之间的。代码:

<embed src="音乐名及路径" autostart="true" loop="true" width="数值" height="数值"></embed>
 

说明:

   数值在网页中一般设置为0
<embed>......</embed>是在页面中加入声音的标记。
src= 表示指向音乐文件的全名及路径。

2、各种格式的音乐的插入

(1).mid音乐格式
<embed src="音乐文件和地址" type="audio/midi" hidden="false" autostart="true" loop="true" height="height_num" width="width_num"></embed>

(2).mp3音乐格式
<embed controller="true" width="width_num" height="height_num" src="音乐文件和地址" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>

(3).avi音乐格式
<embed src="音乐文件和地址" border="0" height="height_num" width="width_num" type="application/x-mplayer2"></embed>

(4).mpg音乐格式
<embed src="音乐文件和地址" border="0" height="height_num" width="width_num" type="application/x-mplayer2"></embed>

(5).mov音乐格式
<embed controller="true" width="width_num" height="height_num" src="音乐文件和地址" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>

(6).rm音乐格式
<OBJECT height="height_num">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="AUTOSTART" Value="true">
<PARAM NAME="src" VALUE="音乐文件和地址">
<embed height="height_num" width="width_num" controls="ImageWindow" src="音乐文件和地址" type="audio/x-pn-reslaudio-plugin" autostart="true" nolabels="0" autogotourl="-1"></OBJECT>

上面的都是使用播放器的,如果只是想播放背景音乐的话可以使用如下简单语句:
<bgsound src="Filename with full URL" loop=1>
loop后面是循环的次数,-1代表无限循环。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
网站建设中怎样让网页播放音乐,和网页背景音乐代码是什么,怎样放网页背景音乐?
百度空间背景音乐代码
在网页中添加多首音乐循环播放代码
怎样用代码贴音乐 【手动自动播放】
转载云杜红叶:怎样在网页帖子里插入音视频文件
如何在网页中插入音乐播放器?
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服