网页背景音乐代码
2007-06-08 15:31
323 查看
将这段代码插入到您的<head></head>之间 当您打开网站时即可听到背景音乐: <bgsound src="/china.mid" loop="-1"> 这种当网页最小化之后,音乐会消失 网页背景音乐的代码: <embed src="http://XXX.com/XXX.mp3" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1" height="1"></embed> 1.mid表示音效文件 <embed src="/1.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1" height="1"></embed> 上面的网页背景音乐代码可以加入FLASH动画的绝对地址(或相对地址) <embed width=1 height=1 autostart="true" loop="true" controls=PlayButton console=clip1 nolabels=true type="audio/x-pn-realaudio-plugin" src="/1.ram"> </embed> [b][u]上面为ram格式的音乐文件专用网页背景音乐代码 [/u][/b]<embed src="/1.mid" align="center" border="0" width="1" height="1" width="100" autostart="true" loop="true"> 指定播放器的大小(width、heigh)、是否自动(autostart标记)、是否循环播放(loop标记),而浏览者则可以自主地决定是否播放音乐。 此代码可以当作网页中插入FLASH动画的代码用。只要把1.mid替换为FLASH动画的相对地址或决对地址就OK了。 <embed src="/1.mp3" align="center" border="0" width="1" height="1" width="100" autostart="true" loop="true"> 此代码可以加mp3形式的音乐为网页背景音乐 <EMBED src="http://XXX.com/XXX.mp3" width="0" height="0" border=0 autostart="ture" loop="ture"></EMBED> 1.mid表示音效文件 <bgsound src="/1.mid" loop=3> 表示将1.mid音效文件插入到页面为背景音乐,并循环播放3次。 <embed src="/1.mid" hidden="true"> 1.mid表示音效文件 <bgsound src="/1.mid" loop="infinte"> 1.mid表示音效文件 <embed src="/1.mid" hidden="true" loop="true"> 1.mid表示音效文件 <bgsound src="/1.mid" loop="-1"> 1.mid表示音效文件 |
相关文章推荐
- html网页背景音乐代码
- 网页背景音乐代码
- HTML5 标签audio添加网页背景音乐代码
- 在网页中插入背景音乐代码(html)
- 如何在网页中加入背景音乐和在线播放器代码大全
- HTML5 标签audio添加网页背景音乐代码
- 手机端自动播放网页背景音乐代码
- 怎么简单的添加多个背景音乐,网页加背景音乐代码终极版
- 网页中常用的Javascript代码
- 以HTML网页实例说明head区代码的意思
- PHP获取网页标题的代码
- 通用PHP动态生成静态HTML网页的代码
- 网页中嵌套QQ代码
- java代码 弹出浏览器并访问网页
- javascript: 加亮指定的文章内容关键字网页特效代码
- 网页内转向代码合集
- 网页设计常用的Javascript特效代码
- 鼠标激活显示背景色网页特效CSS代码
- C#:如何得到一个网页的所有a标记 herf 链接代码
- 谷歌(Chrome)浏览器中快速解除网页屏蔽鼠标右键、复制的方法/代码