首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

jsp多首音乐播放有关问题。

2011-11-29 
jsp多首音乐播放问题。。如果播放固定的几首歌,可以用网页内的播放器直接播放事先做好的类似asx音乐列表文件

jsp多首音乐播放问题。。
如果播放固定的几首歌,可以用网页内的播放器直接播放事先做好的类似asx音乐列表文件。
但象音乐网站那类的,在某个音乐列表内选择一些歌,然后点播放即可播放所选中的歌曲是如何实现的??

哪位做过类似的给个思路。。。。给代码更好。。。

谢谢。。。。。。。




[解决办法]
一个页面,供选择,然后传参,比如 http://www1.haoting.com/play/htsonglian.asp?id=146126&id=145971&id=144252&B132.x=32&B132.y=5

下面是这个页面的代码,去看看其中的JS部分。今天没时间了,不能给你去提炼了。


<html> <head>
<title> 好听音乐 - 连播 </title>
<meta name= "generator " content= "activecontent 3.0.0 ">
<meta name= "Author " content= "www.haoting.com ">
<META http-equiv=Content-Type content= "text/html; charset=gb2312 ">
<meta name= "Keywords " content= "在线试听, 音乐下载, 好听音乐网,music ">
<meta name= "Description " content= "数万首歌曲音乐在线试听下载 ">
<link rel= "stylesheet " href= "../css/mb1.css ">
</head>
<script language= "javascript " src= "http://sy1.haoting.com/mpin "> </script>

<style type= "text/css ">
<!--
body {
background-color: #f7f3f7;
}
-->
</style>

<body topmargin= "0 " leftmargin= "0 ">
<table border= "0 " cellpadding= "0 " cellspacing= "0 " align= "center " width= "462 " height= "400 ">
<tr>
<td width= "100% " valign= "top ">
<table border= "0 " cellpadding= "0 " cellspacing= "0 " width= "100% ">
<tr>
<td width= "100% ">
<table border= "0 " cellpadding= "0 " cellspacing= "0 " width= "100% " height= "136 ">
<tr>
<td width= "100% " valign= "top " height= "136 ">
<table border= "0 " cellpadding= "2 " cellspacing= "0 " width= "100% " height= "128 " class= "line4 ">
<tr>
<td width= "100% " height= "12 ">
<table border= "0 " cellpadding= "2 " cellspacing= "0 " collapse " align= "center " width= "462 ">
<tr>

<td height= "23 " class= "bothmarg "> <a href= "http://www.haoting.com/ " target= "_blank "> 返回网站首页 </a> | <a href= "http://sms.haoting.com " target= "_blank "> <font color= "red "> 热门铃声下载 </font> </a> | <a href= "http://www.haoting.com/music1.htm " target= "_blank "> <font color= "red "> 免费点歌送祝福 </font> </a> | <a href= "http://www.hao123.com " target= "_blank "> <font color= "red "> 网址之家 </font> </a> |&nbsp;&nbsp;&nbsp;
听好音乐 有好心情 <br> <a href= "http://www.haoting.com/bz.htm " target= "_blank "> 如果无法播放,请点击这里查看试听帮助 </a> </td>

</tr>
<tr> <td colspan= "2 " > <script src= "../adad/adbft2.js "> </script>
<DIV id=playlist> 正在读取列表,请稍后..... </DIV> </td> </tr>
</table>
</td>


</tr>
<tr>
<td width= "100% " class= "bothmarg ">
<p align= "center ">

<script src=../js/copyurl.js> </script> <br>
<a href= "http://www.haoting.com/mms1.htm " target= "_blank "> 铃声下载到手机 </a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href= "http://www.haoting.com/music.htm " target= "_blank "> 点送歌曲 </a> &nbsp;&nbsp;|&nbsp;&nbsp; <SPAN id=MusicGeCi> </SPAN> &nbsp;&nbsp;|&nbsp;&nbsp; <A onClick= "Last_OneOK(); " Onfocus= "this.blur() " style= "cursor:hand "> 上一首 </a> &nbsp;&nbsp;|&nbsp;&nbsp; <A onClick= "Next_OneOK(); " Onfocus= "this.blur() " style= "cursor:hand "> 下一首 </a> &nbsp;&nbsp;| <br>

</p> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width= "100% " align= "center ">
<OBJECT id=haotingplay
style= "WIDTH: 468px; HEIGHT: 62px "
type=application/x-oleobject border=0
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= "80 ">
<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= "false ">
<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>
</td>
</tr>
</table>
</td>
</tr>
</table>
<SCRIPT language= "JavaScript " src= "/js/lianbosy.js "> </SCRIPT>


<SCRIPT language= "JScript.Encode ">
<!--

Insertsong( "/18z/0/woainizhendeainiyyyyjt/1/1.wma|江涛 - 我爱你真的爱你|华人群星7|146126 ");

Insertsong( "/18z/0/niguangsyzhi/1/5.wma|我怀念的|孙燕姿(Sun, Yen tzu)|145971 ");

Insertsong( "/18z/0/wowanglexiaobonusyyyyhrw/1/1.wma|我忘了笑|何耀珊(Ho Yeow Sun)|144252 ");


SongList.options[0].selected=true;
haotingplayer();
-->
</SCRIPT>
<TABLE cellSpacing=0 cellPadding=0 width=468 align=center bgColor=#ffffff border=0>
<TBODY>
<TR>
<td align= "center "> <script src= "../adad/adbf.js "> </script> </td>

</tr>
<TR>
<td align= "center " id= "baiduCpro "> <script src= "../adad/333.js "> </script> </td>

</tr>
</TBODY>
</TABLE>
<script type= "text/javascript ">
var arrBaiduCproConfig=new Array();
arrBaiduCproConfig[ 'uid '] = 65651;
arrBaiduCproConfig[ 'n '] = 'sterry163cpr ';
arrBaiduCproConfig[ 'tm '] = 30;
arrBaiduCproConfig[ 'cm '] = 68;
arrBaiduCproConfig[ 'um '] = 34;
arrBaiduCproConfig[ 'rad '] = 1;
arrBaiduCproConfig[ 'w '] = 468;
arrBaiduCproConfig[ 'h '] = 60;
arrBaiduCproConfig[ 'bd '] = '#CCCCCC ';
arrBaiduCproConfig[ 'bg '] = '#EDEDEB ';
arrBaiduCproConfig[ 'tt '] = '#ff0000 ';
arrBaiduCproConfig[ 'ct '] = '#333333 ';
arrBaiduCproConfig[ 'url '] = '#666666 ';
arrBaiduCproConfig[ 'bdl '] = '#ffffff ';
arrBaiduCproConfig[ 'wn '] = 2;
arrBaiduCproConfig[ 'hn '] = 1;
arrBaiduCproConfig[ 'ta '] = 'right ';
arrBaiduCproConfig[ 'tl '] = 'bottom ';
arrBaiduCproConfig[ 'bu '] = 0;
</script>
<script type= "text/javascript "
src= "http://cpro.baidu.com/cpro/ui/ui.js ">
</script>
<script type= "text/javascript ">
<!--
document.write(baiduCproIFrame());
-->
</script>
</body>
</html>
[解决办法]
学习一下

热点排行