我的space_index.htm中的代码- </div>
- <!--{if $space["field_3"]}-->
- <script language="javascript" src="flash/player1.js"></script>
- <script language="javascript" src="flash/player2.js" for="player" event="playstatechange(newstate)"></script>
- <script language="javascript">
- //歌曲列表
- function musicSwf_DOFSCommand(command,args){
- if (command=="lay"){
- play();
- }
- if (command=="Stop"){
- stop();
- }
- if (command=="ause"){
- pause();
- }
- if (command=="next"){
- next();
- }
- if (command=="previous"){
- previous();
- }
- if (command=="gotoMusic") {
- showmusiclist();
- }
- }
- </script>
- <script language="javascript">
- //音乐初始化
- function playerinit()
- {
- loop=true;
- userstop=false;
- count=6;
- listURL = new Array();
- RadioList = new Array(count);
- <!--{if $space["field_5"]}-->
- listURL[0]="$space["field_5"]"
- <!--{/if}-->
- <!--{if $space["field_4"]}-->
- RadioList[0]="$space["field_4"]"
- <!--{/if}-->
- <!--{if $space["field_7"]}-->
- listURL[1]="$space["field_7"]"
- <!--{/if}-->
- <!--{if $space["field_6"]}-->
- RadioList[1]="$space["field_6"]"
- <!--{/if}-->
- <!--{if $space["field_9"]}-->
- listURL[2]="$space["field_9"]"
- <!--{/if}-->
- <!--{if $space["field_8"]}-->
- RadioList[2]="$space["field_8"]"
- <!--{/if}-->
- <!--{if $space["field_11"]}-->
- listURL[3]="$space["field_11"]"
- <!--{/if}-->
- <!--{if $space["field_10"]}-->
- RadioList[3]="$space["field_10"]"
- <!--{/if}-->
- <!--{if $space["field_13"]}-->
- listURL[4]="$space["field_13"]"
- <!--{/if}-->
- <!--{if $space["field_12"]}-->
- RadioList[4]="$space["field_12"]"
- <!--{/if}-->
- NowId=0;
- musicSwf.SetVariable("musicName", RadioList[NowId]);
- player.URL=listURL[NowId];
- //音乐初始结束
- }
- </script>
- <script language="vbscript">
- //音乐播放器命FSCommand
- Sub musicSwf_FSCommand(ByVal command, ByVal args)
- call musicSwf_DOFSCommand(command, args)
- end sub
- </script>
- <!--{/if}-->
- <!--{if $space["field_3"]}-->
- <div id="space_appicon" class="box">
- <h2><a href="" class="r_option"></a>
- 音乐盒</h2>
- <object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="0" height="0" codebase="nsmp2inf.cab#Version=5,1,52,701standby=Loading" tppabs="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading" type="application/x-oleobject">
- <param name="URL" value="">
- <param name="UIMode" value="invisible">
- <param name="AutoStart" value="true">
- <param name="Enabled" value="true">
- <param name="enableContextMenu" value="false">
- <param name="DisplayBackColor" value="100">
- <param name="DisplayForeColor" value="100">
- <param name="WindowlessVideo" value="true">
- </object>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="210" height="120" id="musicSwf">
- <param name="movie" value="flash/$space["field_3"]">
- <param name="quality" value="high">
- <param name="wmode" value="transparent">
- <param name="allowScriptAccess" value="always">
- </object>
- </div>
复制代码 |