PLAY_LIST
Vyber si nijaku pesnicku ktoru chces prehrat:)
PLAY-LIST
<HEAD>
<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>
</HEAD>
<BODY onLoad="count()" onClick="count()">
<bgsound id="sound" src="">
<form name="clock">
<input type=file name=file value=""> <input type=button value="Add" onClick="addsong()"><input type="button" value="Delete" onClick="deletethis()"><br>
<input type="button" name="empezar" value="Listen" onClick="musica()">
<input type="button" name="detener" value="Stop" onClick="stop()">
You have:<input type="text" name="songs" size="2" readonly>song(s) in the list.<br>
Name of the song:<input type="text" name="nombre" value="" size="25"><input type="button" value="Know Name & Url" onClick="saber2(); saber()">Url of the song:<input size="19" name="url" value="">
<br>
<input type="button" value="MoveDown" onClick="bajar()"><input type="button" value="MoveUp" onClick="subir()"><br>
<br><select name=selMusica size=20 multiple></select>
</form>
<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>
</HEAD>
<BODY onLoad="count()" onClick="count()">
<bgsound id="sound" src="">
<form name="clock">
<input type=file name=file value=""> <input type=button value="Add" onClick="addsong()"><input type="button" value="Delete" onClick="deletethis()"><br>
<input type="button" name="empezar" value="Listen" onClick="musica()">
<input type="button" name="detener" value="Stop" onClick="stop()">
You have:<input type="text" name="songs" size="2" readonly>song(s) in the list.<br>
Name of the song:<input type="text" name="nombre" value="" size="25"><input type="button" value="Know Name & Url" onClick="saber2(); saber()">Url of the song:<input size="19" name="url" value="">
<br>
<input type="button" value="MoveDown" onClick="bajar()"><input type="button" value="MoveUp" onClick="subir()"><br>
<br><select name=selMusica size=20 multiple></select>
</form>
Komentáre
Prehľad komentárov
Zatiaľ nebol vložený žiadny komentár.