|
From: FlorinCB <ory...@us...> - 2009-02-02 01:51:25
|
Update of /cvsroot/mxbb/mx_music/templates/_core In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv29243/templates/_core Added Files: music_midi_body.tpl Log Message: fix --- NEW FILE: music_midi_body.tpl --- <div class="forabg block"> <div id="p1" class="post bg2 online"> <div class="inner"><span class="corners-top"><span></span></span> <div class="textbody"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> <th height="25" colspan="2" class="thTop">{SONG_TITLE}</th> </tr> <tr> <td width="90%" class="row1" align="center"> <!-- BEGIN media --> <SCRIPT LANGUAGE="JavaScript"> var WMP7; var Mac; var Win; var Unix; var Linux; Win = navigator.userAgent.indexOf("Win") > -1; Mac = navigator.userAgent.indexOf("Mac") > -1; Unix = navigator.appVersion.indexOf("X11") > -1; Linux = navigator.appVersion.indexOf("Linux") > -1; if (Mac) { if ( navigator.appName == "Netscape" ){ //Netscape code document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); document.write (' filename="{U_SONG}"'); document.write (' src="{U_SONG}"'); document.write (' Name=MediaPlayer'); document.write (' ShowControls=1'); document.write (' ShowDisplay=1'); document.write (' ShowStatusBar=1'); document.write (' AUTOSTART=1'); document.write (' AutoSize=1'); document.write (' width={WIDTH}'); document.write (' height={HEIGHT}>'); document.write (' </Embed>'); } if ( navigator.appName != "Netscape" ){ document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="120" height="500" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="TRUE" filename="{U_SONG}" src="{U_SONG}" ></embed>'); } } if (Win) { if ( navigator.appName != "Netscape" ){ WMP7 = new ActiveXObject('WMPlayer.OCX'); } // Windows Media Player 7 Code if ( WMP7 ) { document.write (' <object id="MediaPlayer" width={WIDTH} height={HEIGHT} classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"'); document.write ('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'); document.write ('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'); document.write ('<PARAM NAME="url" VALUE="{U_SONG}">'); document.write ('<PARAM NAME="FileName" value="{U_SONG}">'); document.write ('<PARAM NAME="AutoStart" VALUE="true">'); document.write ('<PARAM NAME="ShowControls" VALUE="1">'); document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">'); document.write ('<PARAM NAME="AutoSize" VALUE="1">'); document.write ('<PARAM NAME="uiMode" VALUE="mini">'); document.write (' <Embed type="application/x-mplayer2"'); document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); document.write (' filename="{U_SONG}"'); document.write (' src="{U_SONG}"'); document.write (' Name="MediaPlayer2"'); document.write (' ShowControls="1"'); document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); document.write (' AUTOSTART="true"'); document.write (' AutoSize="1"'); document.write (' width="120"'); document.write (' height="500">'); document.write (' </embed>'); document.write ('</OBJECT>'); } // Windows Media Player 6.4 Code else { //IE Code document.write (' <object id="wmp" width={WIDTH} height={HEIGHT} classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); document.write ('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0"'); document.write ('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'); document.write ('<PARAM NAME="url" VALUE="{U_SONG}">'); document.write ('<PARAM NAME="FileName" value="{U_SONG}">'); document.write ('<PARAM NAME="AutoStart" VALUE="true">'); document.write ('<PARAM NAME="ShowControls" VALUE="1">'); document.write ('<PARAM NAME="ShowStatusBar" VALUE="1">'); document.write ('<PARAM NAME="AutoSize" VALUE="1">'); //Firefox code document.write (' <Embed type="application/x-mplayer2"'); document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); document.write (' filename="{U_SONG}"'); document.write (' src="{U_SONG}"'); document.write (' Name="MediaPlayer"'); document.write (' ShowControls="1"'); document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); document.write (' AUTOSTART="true"'); document.write (' AutoSize="1"'); document.write (' width="{WIDTH}"'); document.write (' height="{HEIGHT}">'); document.write (' </embed>'); document.write ('</OBJECT>'); } } else { document.write(' <embed type="audio/mpeg" height="120" width="500" AUTOSTART="1" filename="{U_SONG}" src="{U_SONG}" ></embed>'); } </SCRIPT> <!-- END media --> <!-- BEGIN flash --> <EMBED src="{U_SONG}" quality=high scale=noborder wmode=transparent bgcolor=#000000 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> <!-- END flash --> <!-- BEGIN flashvideo --> <embed src="{SONG_URL}" id="VideoPlayback" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" flashvars=""> </embed> <!-- END flashvideo --> <!-- BEGIN youtube --> <object width="425" height="350"> <param name="movie" value="{VIDEO_URL}" /> <param name="wmode" value="transparent" /> <param name="allowfullscreen" value="true" /> <param name="flashvars" value="&rs=1&sn=1&iurl={U_IMG}" /> <embed src="{VIDEO_URL}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" allowfullscreen="true" flashvars="&rs=1&sn=1&iurl={U_IMG}" /> </object> <!-- END youtube --> <!-- BEGIN flv --> <div id="flvplayer"> <object width="425" height="350" id="flvplayer" align="center"> <param name="allowScriptAccess" value="always" /> <param name="movie" value="{VIDEO_URL}" /> <param name="loop" value="false" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="allowfullscreen" value="true" /> <param name="scale" value="noscale" /> <param name="salign" value="lt" /> <param name="bgcolor" value="000000" /> <param name="flashvars" value="file={SONG_URL}&image={U_IMG}&shuffleOnLoad=no" /> <embed src="{VIDEO_URL}" flashvars="file={SONG_URL}&image={U_IMG}&shuffleOnLoad=no" loop="false" allowfullscreen="true" menu="false" quality="high" width="425" height="360" scale="noscale" salign="lt" name="flvplayer" align="center" bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </div> <!-- END flv --> <!-- BEGIN ram --> <embed src="{U_SONG}" align="center" width="275" height="40" type="audio/x-pn-realaudio-plugin" console="cons" controls="ControlPanel" autostart="false"></embed> <!-- END ram --> <!-- BEGIN qt --> <object id="qt" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="377" height="212"> <param name="qtsrc" value="{U_SONG}"> <param name="autoplay" value="true"> <param name="loop" value="false"> <param name="controller" value="true"> <param name="kioskmode" value="true"> <param name="cache" value="false"> <embed src="templates/subSilver/images/uneedqt41.jpg" qtsrc="{U_SONG}" width="377" height="212" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" controller="true" loop="false" autoplay="true" kioskmode="true" cache="false"> </embed> </object> <!-- END qt --> <!-- BEGIN img --> <a href="javascript:void(0);" onClick="window.open('{SONG_FULL_URL}','','scrollbars=yes,resizable=no,width=804,height=610')"><img src="{SONG_THUMB_URL}" id="image" type="image" width="425" height="350" border="1"></a> <!-- END img --> </td> </td> </tr> </table> </div></div></div> <span class="corners-bottom"><span></span></span> </div></div> <br clear="all" /> |