Final4Ever Community
Your Ad Here

Go Back   Final4Ever Community > Final4Ever Community > Web Templates, Programming Language, Scripts & E-Books > Scripts, Fonts, Wallpapers & Icons
Scripts, Fonts, Wallpapers & Icons VBulletin, PhpBB, Invision Board Skins, Templates and Hacks

Donation Goal
Goal amount for this month: 200 EUR, Received: 0 EUR (0%)
Donate Now

Direct download Web based Music Player here
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26th October 2009, 05:35
Leecher
 
Join Date: Sep 2009
Posts: 7
Default Web based Music Player

Bring the sound of life - music to your visitors by this JavaScript. It is an advanced web based midi player that actually enables you to jump, pause, and manipulate the play list like never before.... detail


How to setup

Step 1: Use JavaScript code below to setup the script
JavaScript
Code:
<SCRIPT language=JavaScript>
<!-- Begin
counter = 0;
html = true;
songs = new Array();
function addsong() {
file = document.forms[0].file.value;
if(file == "") {
alert("Entra un nombre de archivo o da click en Examinar..");
}
else {
fn = file;
while(fn.indexOf() != -1) {
pos = fn.indexOf();
fn = fn.substring(fn.lenght);
}
if(fn.indexOf(".gif") == 1) {
alert("Sólo sonidos o música");
}
else {
songs[counter] = file;
document.forms[0].selMusica[counter] = new Option(fn, file, false, true);
counter++;
}
document.forms[0].file.value = "";
}
}
function musica() {
document.all.sound.src=document.clock.selMusica.options[document.clock.selMusica.selectedIndex].text;
}
function stop() {
document.all.sound.src="";
}
function count() {
document.clock.songs.value=document.clock.selMusica.options.length;
}
function deletethis() {
if(counter > 0) {
counter--;
document.forms[0].selMusica[counter] = null;
songs[counter] = "";
}
else {
alert("No hay nada en la lista!");
   }
}
function bajar() {
document.clock.selMusica.options[document.clock.selMusica.selectedIndex++];
saber2();
saber();
}
function subir() {
document.clock.selMusica.options[document.clock.selMusica.selectedIndex--];
saber2();
saber();
}
function saber() {
document.clock.url.value=document.clock.selMusica.options[document.clock.selMusica.selectedIndex].text;
}
function saber2() {
fn = document.clock.selMusica.options[document.clock.selMusica.selectedIndex].text;
char = unescape("%5C");
while(fn.indexOf(char) != -1) {
pos = fn.indexOf(char);
fn = fn.substring(pos + 1, fn.length);
document.clock.nombre.value=fn;
}
}
// End-->
</SCRIPT>
Step 2: Place HTML below in your BODY section
HTML
Code:
<BODY onclick=count() onload=count()>
<BGSOUND id=sound src="">
<FORM name=clock><INPUT type=file name=file size="20"> <INPUT onclick=addsong() type=button value=Add><INPUT onclick=deletethis() type=button value=Delete><BR><INPUT onclick=musica() type=button value=Listen name=empezar> 
<INPUT onclick=stop() type=button value=Stop name=detener> You have:<INPUT 
readOnly size=2 name=songs>song(s) in the list.<BR>Name of the song:<INPUT 
size=25 name=nombre><INPUT onclick="saber2(); saber()" type=button value="Know Name & Url">Url 
	of the song:<INPUT size=19 name=url> <BR><INPUT onclick=bajar() type=button value=MoveDown><INPUT onclick=subir() type=button value=MoveUp><BR><BR><SELECT 
multiple size=20 name=selMusica></SELECT> </FORM>
</BODY>





Reply With Quote
Reply

Bookmarks

Tags
based , music , player , web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LabVIEW CD-Based Training regman E-Book Download 0 18th September 2009 22:10
Foundations of Diatonic Theory: A Mathematically Based Approach to Music Fundamentals regman E-Book Download 0 16th September 2009 16:30
Component-Based Software Development: Case Studies (Series on Component-Based Softwar regman E-Book Download 0 15th September 2009 12:10
Free Web Based Proxy Ghazifly Security and Protection 5 10th February 2008 18:35
Christmas Music Player 4.1 Varacolaci Applications 2 7th August 2007 16:32

Your Ad Here

All times are GMT +2. The time now is 07:18.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Final4Ever Forums  |   PhazeDDL.com  |   AdultShare.org  |   Final4Ever.co.uk  |   F4E.info  |   HellDDL.com