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

发布时间:2022-04-12 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了网页设计之网页音乐的实现技巧脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

当网页中插入音乐时,要根据不同的后缀名,来写不同的代码!下面面就是多种格式文件的详细使用代码。
注:
"音乐文件和地址"——待播放文件的文件名,前面带上绝对路径,或者本站的相对路径。
 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> 5.mpg
<embed src="音乐文件和地址" border="0" width="width_num" height="height_num" type="application/x-mplayer2"></embed> 6.mov
<embed controller="true" width="width_num" height="height_num" src="音乐文件和地址" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed> 7.rm
<OBJECT>" height="height_num">
<PARam NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="AUTOSTART" Value="true">
<PARAM NAME="SRC" VALUE="音乐文件和地址">
<embed height="高" width="宽" controls="ImageWindow" src="音乐文件和地址" type="audio/x-pn-realaudio-plugin" autostart="true" nolabels="0" autogotourl="-1"></OBJECT> 8.上面的都是使用播放器的,如果只是想播放背景音乐的话可以使用如下简单语句:
<bgsound src="音乐文件和地址" loop=1>
loop后面是循环的次数,-1代表无限循环。

脚本宝典总结

以上是脚本宝典为你收集整理的网页设计之网页音乐的实现技巧全部内容,希望文章能够帮你解决网页设计之网页音乐的实现技巧所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。