文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>将 Moodle 的mp3 flash player 替换为Google Reader Player

将 Moodle 的mp3 flash player 替换为Google Reader Player

时间:2008-05-04  来源:hutuworm


Moodle 是个优秀的开源 e-Learning 平台,完全可以满足在线教学的大部分需求。不过近来觉得其附带的 mp3 flash player 实在难看,就顺手改了几行代码,把 Google Reader Player 给换上了。各位有兴趣的朋友不妨照猫画虎,推而广之。
--- ./moodle/mod/resource/type/file/resource.class.php.bak    2008-05-04 16:27:08.000000000 +0800
+++ ./moodle/mod/resource/type/file/resource.class.php    2008-05-04 16:30:33.000000000 +0800
@@ -461,26 +461,8 @@
 
                 echo '';
 
-                echo '.$id.'">'.
-                     ''."\n".
-                     '//."\n".
-                       'var FO = { movie:"'.$CFG->wwwroot.'/lib/mp3player/mp3player.swf?src='.$cleanurl.'",'."\n".
-                         'width:"600", '."\n".
-                       'UFO.create(FO, "'.$id.'");'."\n".
-                     '//]]>'."\n".
-                     ''."\n";
-
-                echo '';
+                echo '.$id.'">'.'.$cleanurl.'" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />';
 
-                echo "";
-                echo "";
-                echo '';
-                echo '';
-                echo '';
-                echo '';
-                echo ' . $fullurl . '">' . $fullurl . '';
-
-                echo '';
                 echo '';
 
             } else if ($resourcetype == "flv") {


相关阅读 更多 +
排行榜 更多 +
西安交大通

西安交大通

生活实用 下载
长江云通

长江云通

生活实用 下载
translatez

translatez

生活实用 下载