在网站建设中,我们会常涉及到多媒体文件, 下面我们就先来介绍一下在网站中播放音乐的方法,其中包括:.mid、.mp3、.avi、.flash、.mpg、.mov、.rm 和背景音乐添加的方法. 在网站建设中,我们会常涉及到多媒体文件, 下面我们就先来介绍一下在网站中播放音乐的方法,其中包括:.mid、.mp3、.avi、.flash、.mpg、.mov、.rm 和背景音乐添加的方法. width_num——是指一个作为宽度的数字; height_num——是指一个作为高度的数字; 1.mid loop="true" height=height_num width=width_num></embed> 2.mp3 src="音乐文件和路径" border="0" pluginspage= "http://www.apple.com/quicktime/download/indext.html"></embed> 3.avi "height_num" type="application/x-mplayer2"></embed> 4.flash "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 height="height_num" type="application/x-mplayer2"></embed> 6.mov src="音乐文件和路径" border="0" pluginspage= "http://www.apple.com/quicktime/download/indext.html"></embed> 7.rm src="音乐文件和路径" type= "audio/x-pn-realaudio-plugin" autostart="true" nolabels="0" autogotourl="-1"></OBJECT> 代码很简单: loop后面是循环的次数,-1代表无限循环。 你学会了吗? 文章转载:http://www./ |
|
来自: abcen > 《网站添加背景音乐》