首页 > 开发 > HTML > 正文

网页设计之网页音乐的实现技巧

2020-06-14 22:44:05
字体:
来源:转载
供稿:网友

当网页中插入音乐时,要根据不同的后缀名,来写不同的代码!下面面就是多种格式文件的具体使用代码。

注:

"音乐文件和地址"——待播放文件的文件名,前面带上绝对路径,或者本站的相对路径。

 width_num——指定一个作为宽度的数字;

 height_num——指定一个作为高度的数字;

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" width="width_num" height="height_num" type="application/x-mplayer2"></embed>

4.flash

<embed src="音乐文件和地址" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="width_num" height="height_num" play="true" loop="true" quality="high" scale="showall" menu="true"></embed>

共2页上一页12下一页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表