原帖由 eivll 于 2007-3-28 01:22 发表
重复播放是这个!
<param name="LOOP" value="1">这个为重复播放
那个顶部的线条你可以试着修改这段代码
- /*------------------DISCUZ社区专用UBB播放器---------代码开始------------------*/
- $player_ubb_on = true; //是否开启
- $player_num = 0;
- $player_pre = mt_rand();
- function media_player($type, $url, $auto = 0, $width = 450, $height = 340) {//需默认自动开始播放,请将$auto = 0改为$auto = 1
- global $player_pre, $player_num;
- $pid = $player_pre.'_'.$player_num;
- if($type == 'rm') {
- $player = <<<html
- <object classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="$width" height="$height" id="player_{$pid}">
- <param name="Console" value="Console_{$pid}">
- <param name="Controls" value="ImageWindow">
- <param name="AutoStart" value="0">
- <param name="Src" value="http://bbs.wuyouw.com/">
- </object><br />
- <object classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="$width" height="32">
- <param name="Console" value="Console_{$pid}">
- <param name="Controls" value="ControlPanel">
- </object>
- html;
- } else {
- if ($type == 'mp') {
- $width = 400; $height = 69;
- }else {
- $height += 69;
- }
- $player = <<<html
- <object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="$width" height="$height" id="player_{$pid}" style="FILTER: xray()">
- <param name="AutoStart" value="0">
- <param name="ShowStatusBar" value="1">
- <param name="EnableContextMenu" value="0">
- <param name="FileName" value="http://wuyouw.com/">
- </object>
- html;
- }
- $url = explode("\r\n", trim($url));
- $select = "播放> <select id="select_{$pid}" onchange="player_change('$pid', '$type')">";
- foreach ($url as $key => $value) {
- $value = preg_replace("/<a href="(.[^"']+)"(.+?)<\/a>/i","\\1", str_replace('"','"',$value));
- $one = explode('|', $value);
- $one[0] = str_replace('"', '"', trim($one[0]));
- if(!$one[0]) continue;
- ++$count;
- $select .= "<option value="{$one[0]}"> $count ".cutstr(trim($one[1]), 20)." </option>";
- }
- $select .= '</select>';
- if($type != 'mp') {
- $full = "<a href="###" onclick="javascript:player_fullscreen('$pid', '$type')">全屏播放</a> ";
- } else { $full = ''; }
- $prev_next = "<a href="###" onclick="player_prev('$pid', '$type');">上一集</a> ";
- $prev_next .= "<a href="###" onclick="player_next('$pid', '$type');">下一集</a> ";
- $cp = '© <a href="http://bbs.wuyouw.com" >wuyouw</a>';
- if($count == 1) {
- $select = "<div style="display:none">$select</div>";
- $select .= $cp;
- $prev_next = '';
- }
- $player = <<<html
- <table class="msgborder" style="width:auto;">
- <tr class="msgheader"><td style="padding:5px;">
- 〖DISCUZ社区专用播放器〗 ( 此专辑共<FONT color=red>$count</font>集 )
- </td><td align="right">
- <a href="###" id="expand_{$pid}" onclick="player_expand('$pid', '$type')">展开</a>
- </td></tr>
- <tbody id="tbody_$pid" style="display:none;">
- <tr><td colspan="2">
- $player
- </td></tr>
- </tbody>
- <tr><td colspan="2">
- <span id="cp_$pid" style="float:right">$cp</span>
- <span id="buttons_$pid" style="display:none;">
- <div style="float:right;">$select</div>{$full}{$prev_next}
- </span>
- <a href="###" id="download_$pid" onclick="player_showurl('$pid');"></a>
- </td></tr>
- <tr><td colspan="2" id="url_$pid" style="display:none;">
- </td></tr>
- </table>
- html;
- if ($auto) {
- $player .= "<script type="text/javascript">player_change('$pid', '$type');</script>";
- }
- $player_num ++;
- //$player = str_replace(array("\t","\r","\n"), '', $player);
- $player = preg_replace("/\s+/s", ' ', $player);
- return $player;
- }
- /*---------------DISCUZ社区专用UBB播放器----代码结束---------------------------*/
复制代码 |