<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[浏览器背景音乐chrome、firefox多浏览器兼容的解决方案]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Thu, 10 Jan 2013 10:34:13 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: 微软雅黑;">今天又一朋友让帮忙解决他的页面中的背景音乐的问题，如果用bgsound只有ie支持，其它firefox,chrome浏览器都不支持。这里给出了具体的解决方法。<br/>打开一个空白控制面板粘贴下面代码,到网上搜索你要的歌曲,把地址复制过来保存 <br/>&lt;embed src=音乐链接地址 width=200 height=50 type=audio/mpeg loop=&quot;true&quot; autostart=&quot;true&quot;&gt; <br/>width和height为播放器宽度和高度,可以灵活设置。 <br/>autostart=&quot;true&quot;为自动播放,autostart=&quot;false&quot;为不自动播放. <br/>loop=&quot;true&quot;为连续循环播放,loop=&quot;false&quot;为不循环播放. <br/>loop可以等于一个整数,比如loop=&quot;3&quot;,就是音乐循环播放3次 <br/><br/>firefox如果不能播放，会提示安装quicktime ，经过测试(IE6+ firefox chrome测试通过)<br/><br/>以下是补充方法：推荐用第一种方法:<br/><br/>&lt;embed src=&quot;bgsound.mp3&quot; height=&quot;45&quot; width=&quot;250&quot;&gt; <br/><br/>其中src 后跟要插入的音乐文件的名称，height和width是播放框的高度和宽度。 <br/><br/>如果希望在网页打开后自动播放音乐，可使用如下代码： <br/><br/>&lt;DIV align=center&gt;&lt;embed src=&quot;bgsound.mp3&quot; height=&quot;45&quot; width=&quot;250&quot; autostart=&quot;true&quot; &gt;&lt;/DIV&gt; <br/><br/>如果希望播放框居中显示，可使用如下代码： <br/><br/>&lt;DIV align=center&gt;&lt;embed src=&quot;bgsound.mp3&quot; height=&quot;45&quot; width=&quot;250&quot;&gt;&lt;/DIV&gt; <br/><br/>要让你的网页能够在Firefox浏览器中播放背景音乐，使用object标签。</span> <span style="font-family: 微软雅黑;"><br/>以下是一段标准的、跨浏览器的代码示例：<br/><br/>&lt;object data=&quot;music/bgsound.mp3&quot; type=&quot;application/x-mplayer2&quot; width=&quot;0&quot; height=&quot;0&quot;&gt; <br/>&lt;param name=&quot;src&quot; value=&quot;music/bgsound.mp3&quot;&gt; <br/>&lt;param name=&quot;autostart&quot; value=&quot;1&quot;&gt; <br/>&lt;param name=&quot;playcount&quot; value=&quot;infinite&quot;&gt; <br/>&lt;/object&gt; </span><br/>Tags - <a href="https://www.heckjj.com/tags/%25E7%25BD%2591%25E9%25A1%25B5%25E8%2583%258C%25E6%2599%25AF%25E9%259F%25B3%25E4%25B9%2590/" rel="tag">网页背景音乐</a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] 浏览器背景音乐chrome、firefox多浏览器兼容的解决方案]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>