@ZEAL Blog·厉
We stand alone,
TOGETHER.

浏览器兼容的在线播放器语法

Posted by zeal on 2005-08-26 11:10 , 1010 characters |  + 1 - 0   English
转载请保留本行原始出处声明信息 : http://www.zeali.net/entry/155 MaDe1nZEAL
标签 ( WebDev ):  ,  , 

昨天贴了一篇关于beyond的歌曲,采用的是最常见的 <object id="mplayer" type="application/x-oleobject" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ... 写法,结果发现在上根本播放不出任何内容。到紫竹梦轩的首页去听她置顶的歌曲,同样也是连播放器都看不到。看来这个又是IE Only的语法了。怎么改?

要显示兼容与IE/Firefox/Opera等浏览器的在线播放器,测试下来比较鲁棒的应该是如下的xhtml代码写法:

<object type="application/x-mplayer2" width="610" height="48" align="" data="/images/beyond_WhoWillGoWithMe.mp3">
<param name="src" value="/images/beyond_WhoWillGoWithMe.mp3" />
<param name="filename" value="/images/beyond_WhoWillGoWithMe.mp3" />
<param name="type" value="application/x-mplayer2" />
Sorry, Your Browser Does not support this player. Please Try IE or Fx to play this media.

</object>

感谢雨吁的Blog所介绍的xhml页面插入mp3的四法之比较

Last Modified on 2007-05-25 22:22
没有评论.
Since 2005.04.27  梦想 就像鸡蛋 要么孵化 要么臭掉RSS Feed (Entries) | Back To Home | @ZEAL | 沪ICP备05024379号