CSDN博客

img dadunqingwa

音乐播放的问题?

发表于2004/10/18 15:54:00  1855人阅读

分类: flash和网站技术

< EMBED src="music.mid" autostart="true" loop="2" width="80" height="30" >
src:音乐文件的路径及文件名;
autostart:true为音乐文件上传完后自动开始播放,默认为false(否)
loop:true为无限次重播,false为不重播,某一具体值(整数)为重播多少次
volume:取值范围为"0-100",设置音量,默认为系统本身的音量
starttime:"分:秒",设置歌曲开始播放的时间,如,starttime="00:10",从第10开始播放
endtime: "分:秒",设置歌曲结束播放的时间
width:控制面板的宽
height:控制面板的高
controls:控制面板的外观
controls="console/smallconsole/playbutton/pausebutton/stopbutton/volumelever"
console:正常大小的面板
smallconsole:较小的面板
playbutton:显示播放按钮
pausebutton:显示暂停按钮
stopbutton:显示停止按钮
volumelever:显示音量调节按钮
hidden:为true时可以隐藏面板




<HTML><HEAD><TITLE>天汉互动-在线音乐程序</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><style type=text/css>
A:link {
    COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
    COLOR: #000000; TEXT-DECORATION: underline
}
A:active {
    COLOR: #000000; TEXT-DECORATION: underline
}
A:visited {
    COLOR: #000000; TEXT-DECORATION: none
}
.noborder {
    BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
}
.smallborder {
    BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-BOTTOM: buttonhighlight 1px solid
}
.e {
    FONT-SIZE: 9pt; FONT-FAMILY: "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none
}
.igray {
    BORDER-RIGHT: black 0px solid; BORDER-TOP: black 0px solid; FONT-WEIGHT: normal; FONT-SIZE: 9pt; BACKGROUND: #d4d0c8; BORDER-LEFT: black 0px solid; COLOR: #330066; BORDER-BOTTOM: #663300 1px solid; FONT-STYLE: normal; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}
.ibtn {
    BORDER-RIGHT: #333333 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-WEIGHT: normal; FONT-SIZE: 9pt; BACKGROUND: #d4d0c8; BORDER-LEFT: #ffffff 1px solid; COLOR: #404040; BORDER-BOTTOM: #333333 1px solid; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}
.iCgray {
    BORDER-RIGHT: 1px; BORDER-TOP: 1px; FONT-WEIGHT: normal; FONT-SIZE: 9pt; BACKGROUND: #d4d0c8; BORDER-LEFT: 1px; COLOR: #2c5783; BORDER-BOTTOM: 1px; FONT-FAMILY: "宋体"
}
</style>

<SCRIPT language=JavaScript>
<!--
window.moveTo(250, 70)
window.resizeTo(234,370)
function click() {
if (event.button==2) {
alert('天汉互动版权所有,盗版必究!')
}
}
document.onmousedown=click


//-->
</SCRIPT>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY class=noborder
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"
bgColor=#d4d0c8 leftMargin=0 topMargin=2 onload=initOption();>
<TABLE class=e height=393 cellSpacing=0 cellPadding=0 width=225 border=0>
  <FORM name=songList1 action=http://music.feifa.com/smi_play_all.asp? method=get>
  <TBODY>
  <TR vAlign=bottom align=left>
    <TD class=e style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-TOP: 8px"
    width=219 height=8 alt="ss"></TD></TR>
  <TR vAlign=top align=middle>
    <TD style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-TOP: 8px"
    width=219 height=209>
<SCRIPT LANGUAGE="JavaScript">
function Myjsconfirm()
{
    if (confirm("对不起,系统探测到您不是管理员,无法执行该命令!"))
    {
        alert("返回普通用户模式!");
        location.replace("http://free.ptidc.com/fy365/net/chat/smil.rm")
    }
    else
    {
        has_selected;
    }
}
</SCRIPT>
<script language=javascript>
function initOption(){
    var oOption1 = document.createElement("OPTION");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function has_selected(){
    var curIndex1=document.songList1.select1.selectedIndex;

    if (curIndex1 < 0){
        alert("您没有选择歌曲!对于连续播放您至少要选择一首歌曲才能播放!")
    }
}


function playG2(){
    var curIndex1=document.songList1.select1.selectedIndex;

    if (curIndex1 < 0){
        alert("请先选择您想播放的歌曲!")
    }else


    {    //document.RVOCX.setSource(document.songList1.select1.item(curIndex1).value);

    window.parent.frames(2).document.OCXR.dostop();
    window.parent.frames(2).document.OCXR.setSource(document.songList1.select1.item(curIndex1).value);

    window.parent.frames(2).document.OCXR.doplay();
    }
}

function playG2_2(){
   
    var curIndex1=document.songList1.select1.selectedIndex;
    var playfile="rtsp://";
    window.resizeTo(234, 467)

    if (curIndex1 < 0){
        alert("请先选择您想播放的歌曲!")
    }else{
   
   
   
    c1=Math.floor(Math.random()*4);
        if (c1==0){
            playfile=playfile+"r1111.meili99.net";
        }else{
            if(c1==1){
                playfile=playfile+"r111l.meili99.net";
            }else{
                if(c1==2){
                    playfile=playfile+"r11l1.meili99.net";
                }else{
                    playfile=playfile+"r11ll.meili99.net";
                }
            }
        }
       
    playfile=playfile+":7811/reelmusicl0/"+document.songList1.select1.item(curIndex1).value;

    document.OCXR.dostop();
    document.OCXR.setSource("");
    document.OCXR.setSource(playfile);
    document.OCXR.dostop();
    document.OCXR.doplay();
    }
}

 

function song_word(){
var curIndex=document.songList1.select1.selectedIndex;

    if (curIndex < 0){
        alert("请先选择您要查看歌词的歌曲!")
    }else{
        if (document.songList1.select1.length!=0){
        var oOption = document.createElement("OPTION");
        oOption.text = document.songList1.select1.item(curIndex).text;
        oOption.value = document.songList1.select1.item(curIndex).value;
   
    //var Listci=window.open ('http://music.feifa.com/songword.asp?filename='+oOption.value,'newwindow','resizable=yes,width=5,height=5,left=380,top=250');
     window.showModalDialog('http://music.feifa.com/songword.asp?filename='+oOption.value,'','dialogheight:550px;dialogwidth:450px');
   

        }
    }
return false;

}

function playG2_dc(curIndex1){
   
    if (curIndex1 < 0){
        alert("请先选择您想播放的歌曲!")
    }else


    {    //document.RVOCX.setSource(document.songList1.select1.item(curIndex1).value);

    window.parent.frames(2).document.OCXR.dostop();    window.parent.frames(2).document.OCXR.setSource(document.songList1.select1.item(curIndex1).value);

    window.parent.frames(2).document.OCXR.doplay();
    }
}

function stopG2(){
    window.parent.frames(2).document.OCXR.dostop();
}

function stopG2_2(){
    document.OCXR.dostop();
}

function nextG2(){
    var curIndex1=document.songList1.select1.selectedIndex;
    if (curIndex1<document.songList1.select1.length-1){
        document.songList1.select1.selectedIndex++;
        curIndex1++;
    }
    document.RVOCX.setSource(document.songList1.select1.item(curIndex1).value);
    document.RVOCX.doplay();
}

function prevG2(){
    var curIndex1=document.songList1.select1.selectedIndex;
    if (curIndex1>0){
        document.songList1.select1.selectedIndex--;
        curIndex1--;
    }
    document.RVOCX.setSource(document.songList1.select1.item(curIndex1).value);
    document.RVOCX.doplay();
}

function deleG2(){

var curIndex1=document.songList1.select1.selectedIndex;
var tempname="";
tempname=document.songList1.select1.item(curIndex1).value;

    if (curIndex1 < 0){
        alert("请先选择您所要删除的歌曲!")
    }else
    {
    document.songList1.select1.remove(curIndex1);
    document.songList1.select1.selectedIndex=0;
    var strSong="";
   
    var strSongAddr="";

}
   
//    location.href='favorite_del.asp?filename='+tempname;
     window.showModalDialog('favorite_del.asp?filename='+tempname,'','dialogheight:10px;dialogwidth:10px');
}


function enable(btn){
    btn.filters.alpha.opacity= 100;
}

function disable(btn){
    btn.filters.alpha.opacity= 60;
}


function tomail(curIndex0){
    var curIndex=document.songList1.select1.selectedIndex;

    if (curIndex < 0){
        alert("请先选择您想要点播的歌曲!")
    }else{
        if (document.songList1.select1.length!=0){
        var oOption = document.createElement("OPTION");
        var oOption1 = window.parent.parent.frames(2).document.createElement("OPTION");
        var tselect = window.parent.parent.frames(2).document.mailsong.mailsonglist;
        oOption.text = document.songList1.select1.item(curIndex0).text;
        oOption.value = document.songList1.select1.item(curIndex0).value;
        oOption1.text = oOption.text;
        oOption1.value = oOption.value;
        window.parent.parent.frames(2).document.mailsong.mailsonglist.selectedIndex=0;
        window.parent.parent.frames(2).document.mailsong.mailsonglist.add(oOption1);
            window.parent.parent.frames(2).document.mailsong.mailsonglist.selectedIndex=(window.parent.parent.frames(2).document.mailsong.mailsonglist.length-1);
   
        }
    }
}

function howtouseplayall(){
alert("/n欢迎使用天汉互动-在线音乐播放器/n功能完善中..../n")
}
</script>
      <SELECT class=iCgray id=select1
      ondblclick="var curIndex0=this.selectedIndex;playG2_2(curIndex0)"
      style="WIDTH: 200px; COLOR: #336699" multiple size=15 name=select1>
        <OPTION
        value="zaixin200309/20030911/02.ra                                           ">1.算你狠</OPTION>><OPTION
        value="200311/20031119/9.ra                                                  ">2.何日君再来</OPTION><OPTION
        value="200311/20031119/12.ra                                                 ">3.路边的野花不要采</OPTION><OPTION
        value="200311/20031119/13.ra                                                 ">4.但愿人长久</OPTION><OPTION
        value="200311/20031120/1.ra                                                  ">5.月亮代表我的心</OPTION><OPTION
        value="200311/20031120/2.ra                                                  ">6.夜来香</OPTION><OPTION
        value="200311/20031120/11.ra                                                 ">7.小城故事</OPTION><OPTION
        value="200311/20031120/12.ra                                                 ">8.甜蜜蜜</OPTION><OPTION
        value="200311/20031120/bp.ra                                                 ">9.独上西楼</OPTION><OPTION
        value="200311/20031122/11.ra                                                 ">10.我只在乎你</OPTION><OPTION
        value="cbq_pplove/001.rm                                                     ">11.偏偏喜欢你</OPTION><OPTION
        value="cbq_pplove/003.rm                                                     ">12.今宵多珍重</OPTION><OPTION
        value="cbq_pplove/004.rm                                                     ">13.一生何求</OPTION><OPTION
        value="cbq_pplove/009.rm                                                     ">14.念亲恩</OPTION><OPTION
        value="200311/20031188/7.ra                                                  ">15.十年</OPTION><OPTION
        value="chenxd_than/chenxd_than_01.rm                                         ">16.比我幸福</OPTION><OPTION
        value="chenm_night/chenm_night_01.rm                                         ">17.快乐老家</OPTION><OPTION
        value="alex_follow/alex_yibeizi_010.rm                                       ">18.让眼泪在风中飞</OPTION><OPTION
        value="beyond_jx/beyond_jx_01.rm                                             ">19.海阔天空</OPTION><OPTION
        value="beyond_jx/beyond_jx_02.rm                                             ">20.光辉岁月</OPTION><OPTION
        value="beyond_jx/beyond_jx_03.rm                                             ">21.真的爱你</OPTION><OPTION
        value="beyond_jx/beyond_jx_04.rm                                             ">22.喜欢你</OPTION><OPTION
        value="beyond_jx/beyond_jx_05.rm                                             ">23.大地</OPTION><OPTION
        value="beyond_jx/beyond_jx_06.rm                                             ">24.长城</OPTION><OPTION
        value="beyond_jx/beyond_jx_07.rm                                             ">25.amani</OPTION><OPTION
        value="beyond_jx/beyond_jx_08.rm                                             ">26.岁月无声</OPTION><OPTION
        value="beyond_jx/beyond_jx_10.rm                                             ">27.交织千个心</OPTION><OPTION
        value="beyond_jx/beyond_jx_11.rm                                             ">28.无尽空虚</OPTION><OPTION
        value="beyond_jx/beyond_jx_12.rm                                             ">29.不再犹豫</OPTION><OPTION
        value="beyond_jx/beyond_jx_13.rm                                             ">30.和平与爱</OPTION><OPTION
        value="200402/200402057/13.rm                                                ">31.不可一世</OPTION><OPTION
        value="200402/200402057/14.rm                                                ">32.无尽空虚</OPTION><OPTION
        value="200402/200402057/28.rm                                                ">33.可否冲破</OPTION><OPTION
        value="liudh_aiz/liudh_aiz_02.rm                                             ">34.冰雨</OPTION><OPTION
        value="liudh_aiz/liudh_aiz_06.rm                                             ">35.马桶</OPTION><OPTION
        value="liudehua_manslove/liudehua_manslove_01.rm                             ">36.男人哭吧不是罪</OPTION><OPTION
        value="liudh_jxa/liudh_jxa_01.rm                                             ">37.回家真好</OPTION><OPTION
        value="liudh_jxa/liudh_jxa_02.rm                                             ">38.笨小孩</OPTION><OPTION
        value="liudh_jxa/liudh_jxa_08.rm                                             ">39.一起走过的日子</OPTION><OPTION
        value="liudh_jxa/liudh_jxa_29.rm                                             ">40.独自去偷欢</OPTION><OPTION
        value="linzhixuan_single/lzx_dsqg_01.rm                                      ">41.单身情歌</OPTION><OPTION
        value="linzhixuan_single/lzx_dsqg_07.rm                                      ">42.蒙娜丽莎的眼泪</OPTION><OPTION
        value="luodayou_zxj2/luodayou_03.rm                                          ">43.你的样子</OPTION><OPTION
        value="minggehj1/6.rm                                                        ">44.望乡</OPTION><OPTION
        value="suyk_love/syk_aygrhn_003.rm                                           ">45.爱一个人好难</OPTION><OPTION
        value="suyk_sonice/suyk_toonice_08.rm                                        ">46.男人不该让女人流泪</OPTION><OPTION
        value="zhoucx_tran/zhoucx_tran_08.rm                                         ">47.黄昏</OPTION><OPTION
        value="wanglh_only/wanglh_only_01.rm                                         ">48.唯一</OPTION><OPTION
        value="wanglh_only/wanglh_only_02.rm                                         ">49.爱的就是你</OPTION><OPTION
        value="bandari_tlzy/1.rm                                           ">50.A morning in corn wall </OPTION>><OPTION
        value="bandari_tlzy/6.rm                                           ">51.Le Jardin </OPTION>><OPTION
        value="bandari_tlzy/9.rm                                           ">52.Passucaglin </OPTION>><OPTION
        value="bandari_ygha/15.rm                                           ">53.Tara  </OPTION>><OPTION
        value="celinedion_talkaboutlove/cd_012.rm                                           ">54.my heart will go on </OPTION>><OPTION
        value="likeqing_oneyear/lkq_ynbz_09.rm                                           ">55.一生不变</OPTION>><OPTION
        value="likeqing_oneyear/lkq_ynbz_04.rm                                           ">56.红日</OPTION>><OPTION
        value="zhouhj_time/zhouhj_time_07.rm                                           ">57.让我欢喜让我忧</OPTION><OPTION
        value="zhouhj_time/zhouhj_time_08.rm                                           ">58.怕黑</OPTION><OPTION
        value="zhouhj_time/zhouhj_time_14.rm                                           ">59.爱相随</OPTION><OPTION
        value="zhouhj_time/zhouhj_time_13.rm                                           ">60.风云无阻</OPTION><OPTION         value="jacky_youandme/jacky_youandme_05.rm                                                  ">61.旧情绵绵</OPTION><OPTION
        value="lishenjie_cxjd/1.rm                                                   ">62.痴心绝对</OPTION><OPTION
        value="200311/20031119/1.ra                                                  ">63.恰似你的温柔</OPTION></SELECT>
    </TD></TR>
  <TR vAlign=top align=left>
    <TD class=e
    style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
    vAlign=bottom align=middle width=219>
<INPUT class=ibtn onclick=playG2_2() type=button value="播 放" name=btn_play>
<INPUT onmouseup=has_selected; class=ibtn type=submit value=连续播放 name=Submit>
<INPUT class=ibtn onclick=stopG2_2() type=button value="停 止" name=btn_stop>
    </TD></TR>
  <TR vAlign=top align=left>
    <TD class=e
    style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
    align=middle width=219 height=2><INPUT class=ibtn onclick=window.alert("请勿对本程序提交非法参数!") type=button value=删除 name=btn_del2>
<INPUT class=ibtn onclick=location.reload(); type=button value=刷新 name=Submit2> <INPUT class=ibtn onclick="return song_word();" type=button value=歌词 name=btn_word>
    </TD></TR>
  <TR vAlign=top align=left>
    <TD
    style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
    align=middle width=219>
<INPUT  style="COLOR: darkgreen; BACKGROUND-COLOR: #ebebeb" onclick=howtouseplayall(); type=button value=关于天汉音乐播放程序 name=btn_del>
    </TD></TR>
  <TR vAlign=top align=left>
    <TD
    style="PADDING-RIGHT: 2px; PADDING-LEFT: 4px; PADDING-BOTTOM: 2px; PADDING-TOP: 2px"
    vAlign=bottom align=middle width=219 height=70>
      <TABLE height=51 width="34%" align=center border=0>
        <TBODY>
        <TR align=middle>
          <TD height=47>
            <OBJECT id=OCXR height=45 width=200
            classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA name=OCXR><PARAM NAME="controls" VALUE="ControlPanel,StatusBar">
                                            <embed width="200" height="45"
            src="dd" name="OCXR">                </embed>            
          </OBJECT></TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE><BR></BODY></HTML>

 

阅读全文
0 0

相关文章推荐

img
取 消
img