« 给mt增加WYSIWYG编辑器FCKeditor | 首页 | Akon--Lonely »

June 29, 2005

如何为MT添加媒体播放器

参考了Postcast music japan 的播放器,觉得用flash的播放器比较通用,就把他的flash借用了一下,至少除了ie浏览器外,比如firefox,opera都能正常显示。

你也可以下载Postcast music japan作用在你的blog上,很简单的

然后只要在你的blog页面写上以下代码即可

<OBJECT id=vPlayer
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0
height=20 width=215 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="movie" VALUE="player.swf?url=你的mp3的url"><PARAM NAME="quality" VALUE="high">
      <embed  src="player.swf?url=你的mp3的url" quality=high pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
         type="application/x-shockwave-flash" width="215" height="20" id=vPlayer>
    </embed> 
</OBJECT>

这样就能出现像本站那样的falsh mp3播放器了

由 frank 发表于 June 29, 2005 10:02 PM

本网所有文章建立在 创作公用 协议下。版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及以上“创作共用”声明。

Trackback Pings

TrackBack URL for this entry:
http://blog.5ilinux.com/cgi-bin/mt-tb.cgi/41

Listed below are links to weblogs that reference 如何为MT添加媒体播放器:

» 为MT的编辑菜单加入了mp3播放器按钮 from Xiao2's HomePage | 一个人的长征
闲得无聊,看到 张微波的如何为MT添加媒体播放器,挺好晚的,不过对于经常添加歌曲的化可能就不方便了,于是决定把他加入到编辑菜单,简单修改了mt.js 和tmpl/cms/edit_entry.tmpl两个文件,按... [Read More]

Tracked on July 17, 2005 4:36 AM

安装Movable Type 3.17遇到问题,请帮忙看看,谢谢了

服务器环境:
winXp Sp2,Apache-2.0.54,ActivePerl-5.8.7.813,mySQL-4.1

DBI,DBD-mysql都装好了。
MT的cgi文件第一行我都改成本地perl路径了:#!c:/perl/bin/perl.exe -w。

在服务器上测试几个perl教本都没有问题,但是执行mt-check.cgi,mt-load.cgi总是有错:

500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

error log里的记录是:

[error] [client ] D:/Apache/cgi-bin/mt/mt-load.cgi is not executable; ensure interpreted scripts have "#!" first line
[error] [client ] (9)Bad file descriptor: don't know how to spawn child process: D:/Apache/cgi-bin/mt/mt-load.cgi
[error] [client ] D:/Apache/cgi-bin/mt/mt-load.cgi is not executable; ensure interpreted scripts have "#!" first line
[error] [client ] (9)Bad file descriptor: don't know how to spawn child process: D:/Apache/cgi-bin/mt/mt-load.cgi

在命令行下直接用解释器执行 perl mt-check.cgi,perl mt-load.cgi都没有问题。

那为什么在服务器上运行就找不到perl了呢?

sk 发表于 July 14, 2005 11:44 AM

不知道怎么搞``希望您能给我个提示```再说了```您说的哪个代码我不知道怎么放撒``希望您能谅解```谢谢撒`

林星海 发表于 September 12, 2006 5:14 PM

发表评论




是否保存个人讯息?