| <html> <title>歌曲播放试听</title> <SCRIPT>
var UUName = ""; var UUPIN = ""; var cookiestr; var TotalSongs;
//插入歌曲列表入口函数 function Insertsong(songstr){ var tstr; tstr = songstr.split("|"); if(tstr.length == 5){ cookiestr = cookiestr + "#" + songstr; InitList(); } }
//容错代码 function killerror() {return true;} window.onerror = killerror;
//初始化歌曲列表过程 function InitList(){ var songarray,htmlstr,i,j,tstr,ttstr,selectedindex; htmlstr = "<select size=\"5\" name=\"SongList\" style=\"width:710px; background:#52b7d6; color:#ffffff; border: 1px solid #333333;\" OnDblClick=\"play();\">"; songarray = cookiestr.split("#"); TotalSongs = 0; for(i = 1;i < songarray.length;i++){ tstr = songarray[i].split("|"); if(tstr.length == 5){ TotalSongs += 1; htmlstr += "<option value=\"" + songarray[i] + "\">"; ttstr = TotalSongs + "." + tstr[1] + "**" + tstr[3]; if(ttstr.length < 20){ ttstr = ttstr.replace("**"," - "); }else{ ttstr = ttstr.replace("**"," - "); ttstr = ttstr.substr(0,20) + "..."; } htmlstr += ttstr + "</option>;"; } } htmlstr += "</select>"; playlist.innerHTML = htmlstr; }
//播放歌曲 function play(){ if(SongList.selectedIndex < 0) alert('请选择你要播放的曲目!'); else{ var varvar,person,collect,song,url; varvar = SongList.options[SongList.selectedIndex].value.split("|"); //alert(varvar.length + "\n" + SongList.options[SongList.selectedIndex].value); url = varvar[0];song = varvar[1];collect = varvar[2]; person = varvar[3];SongID = varvar[4]; if(person.length > 5) info_person.innerHTML = person.substr(0,5) + "..."; else info_person.innerHTML = person; if(collect.length > 5) info_collect.innerHTML = collect.substr(0,5) + "..."; else info_collect.innerHTML = collect; if(song.length > 5) info_song.innerHTML = song.substr(0,5) + "..."; else info_song.innerHTML = song; Exobud.URL = url;Exobud.controls.play();showTLab(); URLTmp = PageBasicAddress + SongID; return; } }
//控制按钮 上一首 function Last_OneOK(){ if((SongList.selectedIndex > 0) && (SongList.selectedIndex < TotalSongs)){ SongList.options[SongList.selectedIndex - 1].selected = true; play(); } }
//控制按钮 下一首 function Next_OneOK(){ if((SongList.selectedIndex >= 0) && (SongList.selectedIndex < TotalSongs - 1)){ SongList.options[SongList.selectedIndex + 1].selected = true; play(); } }
function showTLab(){ if(Exobud.playState == 1) Next_OneOK(); setTimeout("showTLab()",1000); } </SCRIPT> </head> <body topmargin="0" leftmargin="0" font-size="2"> <tr valign="top"><td height="177" colspan="3">
<!--PlayMusic 开始--> <tr><td height="21" bgcolor="#FFFFFF"><table width="710" border="0" align="center" cellpadding="0" cellspacing="0"><TR align=middle><TD>歌手:<SPAN id=info_collect></SPAN></TD><TD>专辑:<SPAN id=info_person></SPAN></TD><TD>歌曲:<SPAN id=info_song></SPAN></TD></TR></TABLE>
<!--播放器 开始--> <OBJECT id=Exobud style="WIDTH: 710px; HEIGHT: 63px" type=application/x-oleobject classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6><PARAM NAME="URL" VALUE=""><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="0"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="1"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="84"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="-1"><PARAM NAME="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="-1"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""><PARAM NAME="enableErrorDialogs" VALUE="0"></OBJECT><!--播放器 结束--> <TABLE id=table4 cellSpacing=0 cellPadding=0 width=710 border=0><TBODY><TR><TD bgColor=#ffffff> <DIV id=playlist><BR>正在导入歌曲播放列表,1至10秒中完成,请您稍等片刻.. </DIV></TD></TR></TBODY></TABLE> <TABLE id=table25 style="BORDER-COLLAPSE: collapse" height=25 cellPadding=0 width="710" border=0><TBODY><TR><TD bgColor=#f4fdff height=25> <P align=center><A style="COLOR: #000000; TEXT-DECORATION: none" onclick=Last_OneOK(); href="#">前一首歌曲</A></P></TD><td height=23 bgcolor=#f4fdff><div align="center"></div></td><TD bgColor=#f4fdff height=32><P align=center><A style="COLOR: #000000; TEXT-DECORATION: none" onclick=Next_OneOK(); href="#">下一首歌曲</A></P></TD></TR></TBODY></TABLE></table>
<SCRIPT language=JavaScript> <!--
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/1.Wma?"+UUName+"MPIN="+UUPIN+"|戏迷|任贤齐|老地方|77868");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/2.Wma?"+UUName+"MPIN="+UUPIN+"|约定蓝天|任贤齐|老地方|77869");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/3.Wma?"+UUName+"MPIN="+UUPIN+"|老地方|任贤齐|老地方|77870");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/4.Wma?"+UUName+"MPIN="+UUPIN+"|好时代|任贤齐|老地方|77871");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/5.Wma?"+UUName+"MPIN="+UUPIN+"|爱伤了|任贤齐|老地方|77872");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/6.Wma?"+UUName+"MPIN="+UUPIN+"|外婆桥|任贤齐|老地方|77873");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/7.Wma?"+UUName+"MPIN="+UUPIN+"|天生注定(杨千嬅)|任贤齐|老地方|77874");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/8.Wma?"+UUName+"MPIN="+UUPIN+"|秋天来了|任贤齐|老地方|77875");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/9.Wma?"+UUName+"MPIN="+UUPIN+"|我就在你身边|任贤齐|老地方|77876");
Insertsong("http://61.132.74.117:1985/www_mtv789_com_gudaomusic//new2006/481/10.Wma?"+UUName+"MPIN="+UUPIN+"|想飞|任贤齐|老地方|77877");
SongList.options[0].selected = true; play();
--> </SCRIPT></div></td></tr>
</table></td> </tr> </table> </td> </tr> <tr> <td width="67" rowspan="2"> </td> <td width="341" valign="top" height="37"> <div align="center">
</div> </td> <td width="63" rowspan="2"> </td> </tr> <tr> <td width="341" valign="top"> </td> </tr> </body> </html>
|