音频播放器中的html/hta多文件 [英] html/hta mutiple file in audio player

查看:88
本文介绍了音频播放器中的html/hta多文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我开始编码.hta应用程序,几乎是带有.hta扩展名的html页面,我添加了这个mp3播放器,它确实起作用了

ok so i started coding a .hta application , pretty much a html page with .hta extension , i adde this mp3 player and it did work

<object data="test.mp3" type="audio/mp3" width="200" height="40">
<param name="src" value="test.mp3">
<param name="autostart" value="0">
</object>

但是这是一首歌,一次又一次地播放,所以plz有任何方法可以将多个文件添加到播放列表中,我相信应该将其添加到"src"参数中,但是不确定,因为我刚开始我就做了在之间添加,",我也尝试过;"他们都不在工作,所以我在等答案:D

but it's one song playing again and again , so plz is there any way to add multiple files to the playlist i believe it's something that should be added to "src" parameters but not sure, as i'm just starting i did add "," in between , and i tried also ";" none of them was working so i'm waiting for answers :D

我也想知道是否有人可以向我展示如何熟悉标签,所以我认为它对于activeX,音频,视频,pdf ...文件非常有用且功能强大,所以我只是这么不耐烦地等待[我不愿意不太了解对象,所以请更加清楚]

i also wanna know if someone can show me how to become familiar with tag i see it's very helpful and powerful for activeX, audio,video,pdf .... files so i'm just waiting so impatiently [i don't know much about object, so plz plz be more clear]

推荐答案

从此示例中获得启发 HTA_Audio_Player.hta

<html>
<head>
<title>Hackoo Audio Player with Playlist by Hackoo 2014</title>
<HTA:APPLICATION
      ID = "Music"
      icon="http://files.softicons.com/download/social-media-icons/free-large-twitter-icons-by-aha-soft/ico/Audio.ico"
      APPLICATIONNAME="Music"
      SCROLL="no"
      navigable="no"
      selection="no"
      showintaskbar="yes"
      singleinstance="no"
      innerborder="no"
      maximizebutton="no"
      minimizebutton="yes"
      border="dialog"
      borderstyle="normal"
      caption="yes"
      contextMenu="no"
      sysmenu="yes"
 >
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=9">
   <script>
      function loadSong(elt,e) {
    if(!e) var e = window.event;
    document.getElementById("player").src=elt.href;
    document.getElementById("player").load();
        document.getElementById("player").play();
    return false;
      }

      window.onload = function() {
    links = document.getElementById("playlist").getElementsByTagName("a");
    for(var i = 0; i<links.length; i++) {
      links[i].onclick=function(e) { return loadSong(this, e); };
    }
      }
   </script>
    <style type="text/css">
      #player {
    margin: 10;
    padding: 10;
        font-family: sans;
        font-size: 12px;
    width: 400px;
      }
      #playlist {
    border: solid 5px #555;
    font-family: sans;
    font-size: 14px;
        background-color: #777;
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: 200px;
      }
      #playlist li:nth-child(even) {
        background-color: #888;
      }
      #playlist li:nth-child(odd) {
        background-color: #777;
      }
      #signature {
        border: solid 5px #555;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        font-family: sans;
        font-size: 12px;
        background-color: #888;
        color: white;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 200px;
      }
      #playlist li a,
      #playlist li a:visited,
      #playlist li a:hover {
        color: white;
    padding-left: 2px;
    padding-right: 2px;
    text-decoration: none;
      }
    </style>
</head>
<link rel="stylesheet" media="screen" type="text/css" title="design_encoder" href="&#0104;&#0116;&#0116;&#0112;&#0058;//&#0104;&#0097;&#0099;&#0107;&#0111;&#0111;&#0046;&#0097;&#0108;&#0119;&#0097;&#0121;&#0115;&#0100;&#0097;&#0116;&#0097;&#0046;&#0110;&#0101;&#0116;/&#0100;&#0101;&#0115;&#0105;&#0103;&#0110;&#0095;&#0101;&#0110;&#0099;&#0111;&#0100;&#0101;&#0114;&#0046;&#0099;&#0115;&#0115;"/>
<SCRIPT LANGUAGE="VBScript">
Sub CenterWindow(x,y)
  window.resizeTo x,y
  iLeft = window.screen.availWidth/2 - x/2
  itop = window.screen.availHeight/2 - y/2
  window.moveTo ileft, itop
 End Sub

 Sub Window_Onload
 CenterWindow 440,470
 End Sub
</script>
<body>
<DIV id="Splash" STYLE="background-image:url(http://hackoo.alwaysdata.net/laser.gif); background-position:center center; background-repeat:no-repeat; align=center; cursor: hand; Height:300;Width:400;Border:0.1mm solid black;">
<center>
  <marquee DIRECTION="UP" HEIGHT="330" WIDTH="350" SCROLLAMOUNT="2" title="Listen to The Best Music">
   <center><font face="Comic sans MS" color=RED size=6 STYLE ="cursor: hand;"><b>DJ Hackoo for you on the Mix</b></font></center>
     <br><br>
    <center><font face="Comic sans MS" color=RED size=3 STYLE ="cursor: hand;">Music for ever</b></font></center>
    <br><center><font face="Comic sans MS" color=RED  size=3 STYLE ="cursor: hand;">DJ © Hackoo 2014<br><br></font></center>
    <br><center><img src="http://hackoo.alwaysdata.net/DJ2.gif"></center>
    <br><center><img src="http://hackoo.alwaysdata.net/DJ3.gif"></center>
    <br><center><img src="http://hackoo.alwaysdata.net/DJ4.gif"></center>
    <br><center><img src="&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#110;&#115;&#109;&#48;&#53;&#46;&#99;&#97;&#115;&#105;&#109;&#97;&#103;&#101;&#115;&#46;&#99;&#111;&#109;&#47;&#105;&#109;&#103;&#47;&#50;&#48;&#49;&#49;&#47;&#48;&#55;&#47;&#50;&#51;&#47;&#47;&#49;&#49;&#48;&#55;&#50;&#51;&#48;&#55;&#52;&#49;&#52;&#48;&#49;&#51;&#49;&#49;&#48;&#52;&#56;&#53;&#48;&#54;&#52;&#49;&#57;&#46;&#103;&#105;&#102;"></center>
    </marquee>
 </center>
 </DIV>
 </center>
<center>
<div id="Player"></div>
<SPAN ID="ONSCR"></SPAN></DIV></CENTER>
<center><div> <audio tabindex="0" id="player" preload="load" controls="" src="http://hackoo.alwaysdata.net/Intro_DJ.mp3" autoplay></audio>
<ul id="playlist">
  <li><a href="http://radio.mosaiquefm.net:8000/mosalive">Radio Mosaique FM</a></li>
  <li><a href="http://hackoo.alwaysdata.net/David_Guetta_Miami_2014.mp3">David Guetta Miami_2014</a></li>
  <li><a href="http://hackoo.alwaysdata.net/Best of Avicii Megamix 2014.mp3">Avicii Megamix 2014</a></li>
  <li><a href="http://hackoo.alwaysdata.net/Megamix 90.mp3">Megamix les annees 90s</a></li>
</ul>
<ul id="signature"> by © Hackoo 2014</ul>
</div>
</center>
</body></html>

这篇关于音频播放器中的html/hta多文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆