Html/hta Mutiple File In Audio Player
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 but it's one song playing again and again , so pl
Solution 1:
Get inspired by this example HTA_Audio_Player.hta
<html><head><title>Hackoo Audio Player with Playlist by Hackoo 2014</title><HTA:APPLICATIONID = "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"
><metahttp-equiv="content-type"content="text/html; charset=UTF-8"><metahttp-equiv="x-ua-compatible"content="ie=9"><script>functionloadSong(elt,e) {
if(!e) var e = window.event;
document.getElementById("player").src=elt.href;
document.getElementById("player").load();
document.getElementById("player").play();
returnfalse;
}
window.onload = function() {
links = document.getElementById("playlist").getElementsByTagName("a");
for(var i = 0; i<links.length; i++) {
links[i].onclick=function(e) { returnloadSong(this, e); };
}
}
</script><styletype="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;
}
#playlistli:nth-child(even) {
background-color: #888;
}
#playlistli: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;
}
#playlistlia,
#playlistlia:visited,
#playlistlia:hover {
color: white;
padding-left: 2px;
padding-right: 2px;
text-decoration: none;
}
</style></head><linkrel="stylesheet"media="screen"type="text/css"title="design_encoder"href="http://hackoo.alwaysdata.net/design_encoder.css"/><SCRIPTLANGUAGE="VBScript">SubCenterWindow(x,y)
window.resizeTo x,y
iLeft = window.screen.availWidth/2 - x/2
itop = window.screen.availHeight/2 - y/2window.moveTo ileft, itop
EndSubSubWindow_Onload
CenterWindow440,470EndSub</script><body><DIVid="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><marqueeDIRECTION="UP"HEIGHT="330"WIDTH="350"SCROLLAMOUNT="2"title="Listen to The Best Music"><center><fontface="Comic sans MS"color=REDsize=6STYLE ="cursor: hand;"><b>DJ Hackoo for you on the Mix</b></font></center><br><br><center><fontface="Comic sans MS"color=REDsize=3STYLE ="cursor: hand;">Music for ever</b></font></center><br><center><fontface="Comic sans MS"color=REDsize=3STYLE ="cursor: hand;">DJ © Hackoo 2014<br><br></font></center><br><center><imgsrc="http://hackoo.alwaysdata.net/DJ2.gif"></center><br><center><imgsrc="http://hackoo.alwaysdata.net/DJ3.gif"></center><br><center><imgsrc="http://hackoo.alwaysdata.net/DJ4.gif"></center><br><center><imgsrc="http://nsm05.casimages.com/img/2011/07/23//1107230741401311048506419.gif"></center></marquee></center></DIV></center><center><divid="Player"></div><SPANID="ONSCR"></SPAN></DIV></CENTER><center><div><audiotabindex="0"id="player"preload="load"controls=""src="http://hackoo.alwaysdata.net/Intro_DJ.mp3"autoplay></audio><ulid="playlist"><li><ahref="http://radio.mosaiquefm.net:8000/mosalive">Radio Mosaique FM</a></li><li><ahref="http://hackoo.alwaysdata.net/David_Guetta_Miami_2014.mp3">David Guetta Miami_2014</a></li><li><ahref="http://hackoo.alwaysdata.net/Best of Avicii Megamix 2014.mp3">Avicii Megamix 2014</a></li><li><ahref="http://hackoo.alwaysdata.net/Megamix 90.mp3">Megamix les annees 90s</a></li></ul><ulid="signature"> by © Hackoo 2014</ul></div></center></body></html>
Solution 2:
well seem that i'll be waiting so long, but at the end i found a solution , actually i'm now using a flash mp3 player (a .swf file) which has the option to make a playlist . if you're interested in knowing the code it goes like this :
<objectdata="mp3-player.swf"type="application/x-shockwave-flash"width="300"height="40"><paramname="movie"value="mp3-player.swf"><paramname="flashvars"value="mp3=mp3file1.mp3|mp3file2.mp3|mp3file3.mp3...&volume=100"><paramname="wmode"value="transparent"></object>
i believe if you have another flash mp3 player you may wanna change the values in "flashvars" according to what flash file you have :D thx for the 11 views :D :D
Post a Comment for "Html/hta Mutiple File In Audio Player"