Cita:
Creo que donde dice option option value= “numero” El nombre de la canción<OBJECT ID="Player" height="0" width="0" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM NAME="uiMode" VALUE="invisible">
<PARAM NAME="Autostart" VALUE="true">
</object>
</p>
<FORM ID="form">
<SELECT ID="playlist" size="21">
<!-- Add song info that appears in drop down list here -->
<option value="0">Dalmata - Deja Quitarte La Ropa</option>
<option value="1">De La Ghetto - Se Que Tu Quieres</option>
<option value="2">Don Omar - Beautiful</option>
<option value="3">Don Omar - Reggaeton Latino Remix</option>
<option value="4">Don Omar - Anda Sola</option>
<option value="5">Don Omar - Myspace</option>
<option value="6">Don Omar - Senor De La Noche</option>
<option value="7">Don Omar - Adios</option>
<option value="8">El Roockie - No Te Quiere</option>
<option value="9">El Roockie - Bajo Vijilia De Un Santo</option>
<option value="10">El Tio Ft.Yandel - ChuChin</option>
<option value="11">El Tio - Caliente y Pega</option>
<option value="12">Franco - Acelera</option>
<option value="13">Franco - Baila Sola</option>
<option value="14">Fuego ft.Reychesta Secretweapon - Me Gustan Todas</option>
<option value="15">Fuego - Vente Conmigo</option>
<option value="16">Gallego - Intro</option>
<option value="17">Gocho - Como Hacer</option>
<option value="18">Gocho - La Perfecta Occasion</option>
<option value="19">Gocho - Si Ella Pide</option>
<option value="20">Gocho Ft. La Secta - Es Asi</option>
<option value="21">Gringo - El Zorro</option>
</SELECT>
<BR>
<BUTTON ID="BackButton" onClick="Back(forms['form'].playlist);"> <FONT color="#336699">Back </font></BUTTON>
<BUTTON ID="PlayButton" onClick="PlayPause(forms['form'].playlist);"><FONT color="#336699"> Play </FONT></BUTTON>
<BUTTON ID="NextButton" onClick="Next(forms['form'].playlist);"> <FONT color="#336699">Next </font></BUTTON>
<BUTTON ID="StopButton" onClick="Stop();"><FONT color="#336699">Stop</FONT></BUTTON>
<b><font size="3" color="#336699">Mezclar</font></b><INPUT TYPE=checbox CHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);" value="ON">
</FORM>
</CENTER>
<comment ID="PlayHTML"><FONT color="#00C5CD"> Play </FONT></comment>
<comment ID="ShuffleOnHTML"><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);"></comment>
<comment ID="ShuffleOffHTML"><INPUT TYPE=checkbox UNCHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);"></comment>
<script ID="Main" Language="JavaScript">
var songs = new Array();
//*******************************//
//****** PARA CAMBIAR *******//
//*******************************//
var shuffle = true; // false = shuffle off, true = shuffle on
var autoStart = true; // false = autoStart off, true = autoStart on
var numberTracks = false; // true = place track number in front of list items, false = no track numbers
// Add song URLs here (make sure it matches up with the order you have for song info, and urls need quotes):
songs[0]="http://digitalmp.superprovider.de/dalmata_dejaquitartelaropa.wma";
songs[1]="http://www.famouscodez.com/file/delaghetto_sequetuquieres.asx";
songs[2]="http://localhost/radio%20gargolas%20k/sounds/50CENT1.wma";
songs[3]="http://www.famouscodez.com/file/donomar_reggaetonlatinochosenfewremix.asx";
songs[4]="http://www.pmtnet.net/~codez/donomar_andasola.wma";
songs[5]="http://www.pmtnet.net/~codez/donomarwisinyyandel_myspace.wma";
songs[6]="http://www.pmtnet.net/~codez/donomar_senordelanoche.wma";
songs[7]="http://www.famouscodez.com/file/donomar_adios.asx";
songs[8]="http://digitalmp.superprovider.de/elroockie_notequiere.wma";
songs[9]="http://www.famouscodez.com/file/elroockie_bajolavijiliadeunsanto.asx";
songs[10]="http://www.filelodge.com/files/room47/1364599/eltio_chuchinftyandel.wma";
songs[11]="http://www.filelodge.com/files/room47/1364599/eltio_calienteypega.wma";
songs[12]="http://digitalmp.superprovider.de/franco_acelera.wma";
songs[13]="http://www.pmtnet.net/~codez/franco_bailasola.wma";
songs[14]="http://www.famouscodez.com/file/fuego_megustantodas.asx";
songs[15]="http://www.famouscodez.com/file/fuego_venteconmigo.asx";
songs[16]="http://www.pmtnet.net/~codez/gallego_intro.wma";
songs[17]="http://www.pmtnet.net/~codez/gocho_comohacer.wma";
songs[18]="http://digitalmp.superprovider.de/gocho_laperfectaoccasion.wma";
songs[19]="http://digitalmp.superprovider.de/gocho_siellapide.wma";
songs[20]="http://digitalmp.superprovider.de/gocho_esasi.wma";
songs[21]="http://digitalmusic1.superprovider.de/DM-ElZorro-Gringo.wma";
//*******************************//
//*******************************//
// Initializations //
with (document){
var length = forms['form'].playlist.length;
if(numberTracks){
for (var i = 0; i < length; i++){
forms['form'].playlist.options[i].innerHTML = (i+1) + " - " + forms['form'].playlist.options[i].innerHTML;
}
}
if (shuffle) {
var randsg = Math.floor(Math.random()*songs.length);
Player.url = songs[randsg];
forms['form'].playlist.options[randsg].selected = true;
forms['form'].ShuffleSwitch.outerHTML = ShuffleOnHTML.innerHTML;
}
else {
forms['form'].ShuffleSwitch.outerHTML = ShuffleOffHTML.innerHTML;
Player.url = songs[0];
}
if(autoStart){
var snum = forms['form'].playlist.selectedIndex;
if(Player.url != songs[snum]){
Player.url = songs[snum];
}
Player.controls.Play();
}
}
// Functions //
// Discription: "PlayPause" will toggle playing and pausing if the same song is still selected,
// otherwise it will load the newly selected song
function PlayPause(list) {
var snum = list.selectedIndex;
if((Player.url == songs[snum] && Player.url != "") && Player.playState != 1){
if(Player.playState == 3){
Player.controls.Pause();
}
else {
Player.controls.Play();
}
}
else {
Player.url = songs[snum];
Player.controls.Play();
}
}
// Discription: "Next" will move to the next music file if shuffle is off
// otherwise it will load a random song. Calls PlayPause to start music.
function Next(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == list.length-1) {
snum = -1;
}
snum++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: "Back" does the same thing as "Next" but moves backwads
// through the list. If shuffle is on then picks a random song.
function Back(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == 0){
snum = list.length;
}
snum--;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: Self explanitory.
function Stop(){
Player.controls.Stop();
}
// Discription: Makes the shuffle flag the same as the status of the CheckBox
// The status of the checkbox (true/false) indicates if the box is checked
function ToggleShuffle(CheckBox) {
shuffle = CheckBox.status;
}
</SCRIPT>
<script ID="StateChangeHandler" Language = "JavaScript" For = "Player" Event = playStateChange(NewState)>
// Description: This is an interupt handler used to handle instances when the
// state of the player changes to play or stop for example.
//STATE.innerText = NewState;
switch(NewState){
case 8: // Handles player after it just finishes playing through a song
var num = document.forms['form'].playlist.selectedIndex;
if (!shuffle){
if(num == document.forms['form'].playlist.length-1){
num = -1;
}
num++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == num);
num = temp;
}
document.forms['form'].playlist.options[num].selected = true;
PreviousState = NewState;
break;
case 1: // Handles player after it stops
if(PreviousState == 8){
var num = document.forms['form'].playlist.selectedIndex;
Player.settings.autoStart = true;
Player.url = songs[num];
PreviousState = NewState;
}
else if (PreviousState != 3 && PreviousState != 2){
Player.controls.Play();
Player.settings.autoStart = false;
}
else{
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
}
break;
case 3: // Handles player after it starts to play
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = "Pause";
shuffle = document.forms['form'].ShuffleSwitch.status;
break;
case 2: // Handles player after being paused
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
break;
default:
}
</SCRIPT>
</div>
<PARAM NAME="uiMode" VALUE="invisible">
<PARAM NAME="Autostart" VALUE="true">
</object>
</p>
<FORM ID="form">
<SELECT ID="playlist" size="21">
<!-- Add song info that appears in drop down list here -->
<option value="0">Dalmata - Deja Quitarte La Ropa</option>
<option value="1">De La Ghetto - Se Que Tu Quieres</option>
<option value="2">Don Omar - Beautiful</option>
<option value="3">Don Omar - Reggaeton Latino Remix</option>
<option value="4">Don Omar - Anda Sola</option>
<option value="5">Don Omar - Myspace</option>
<option value="6">Don Omar - Senor De La Noche</option>
<option value="7">Don Omar - Adios</option>
<option value="8">El Roockie - No Te Quiere</option>
<option value="9">El Roockie - Bajo Vijilia De Un Santo</option>
<option value="10">El Tio Ft.Yandel - ChuChin</option>
<option value="11">El Tio - Caliente y Pega</option>
<option value="12">Franco - Acelera</option>
<option value="13">Franco - Baila Sola</option>
<option value="14">Fuego ft.Reychesta Secretweapon - Me Gustan Todas</option>
<option value="15">Fuego - Vente Conmigo</option>
<option value="16">Gallego - Intro</option>
<option value="17">Gocho - Como Hacer</option>
<option value="18">Gocho - La Perfecta Occasion</option>
<option value="19">Gocho - Si Ella Pide</option>
<option value="20">Gocho Ft. La Secta - Es Asi</option>
<option value="21">Gringo - El Zorro</option>
</SELECT>
<BR>
<BUTTON ID="BackButton" onClick="Back(forms['form'].playlist);"> <FONT color="#336699">Back </font></BUTTON>
<BUTTON ID="PlayButton" onClick="PlayPause(forms['form'].playlist);"><FONT color="#336699"> Play </FONT></BUTTON>
<BUTTON ID="NextButton" onClick="Next(forms['form'].playlist);"> <FONT color="#336699">Next </font></BUTTON>
<BUTTON ID="StopButton" onClick="Stop();"><FONT color="#336699">Stop</FONT></BUTTON>
<b><font size="3" color="#336699">Mezclar</font></b><INPUT TYPE=checbox CHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);" value="ON">
</FORM>
</CENTER>
<comment ID="PlayHTML"><FONT color="#00C5CD"> Play </FONT></comment>
<comment ID="ShuffleOnHTML"><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);"></comment>
<comment ID="ShuffleOffHTML"><INPUT TYPE=checkbox UNCHECKED ID="ShuffleSwitch" onClick="ToggleShuffle(this);"></comment>
<script ID="Main" Language="JavaScript">
var songs = new Array();
//*******************************//
//****** PARA CAMBIAR *******//
//*******************************//
var shuffle = true; // false = shuffle off, true = shuffle on
var autoStart = true; // false = autoStart off, true = autoStart on
var numberTracks = false; // true = place track number in front of list items, false = no track numbers
// Add song URLs here (make sure it matches up with the order you have for song info, and urls need quotes):
songs[0]="http://digitalmp.superprovider.de/dalmata_dejaquitartelaropa.wma";
songs[1]="http://www.famouscodez.com/file/delaghetto_sequetuquieres.asx";
songs[2]="http://localhost/radio%20gargolas%20k/sounds/50CENT1.wma";
songs[3]="http://www.famouscodez.com/file/donomar_reggaetonlatinochosenfewremix.asx";
songs[4]="http://www.pmtnet.net/~codez/donomar_andasola.wma";
songs[5]="http://www.pmtnet.net/~codez/donomarwisinyyandel_myspace.wma";
songs[6]="http://www.pmtnet.net/~codez/donomar_senordelanoche.wma";
songs[7]="http://www.famouscodez.com/file/donomar_adios.asx";
songs[8]="http://digitalmp.superprovider.de/elroockie_notequiere.wma";
songs[9]="http://www.famouscodez.com/file/elroockie_bajolavijiliadeunsanto.asx";
songs[10]="http://www.filelodge.com/files/room47/1364599/eltio_chuchinftyandel.wma";
songs[11]="http://www.filelodge.com/files/room47/1364599/eltio_calienteypega.wma";
songs[12]="http://digitalmp.superprovider.de/franco_acelera.wma";
songs[13]="http://www.pmtnet.net/~codez/franco_bailasola.wma";
songs[14]="http://www.famouscodez.com/file/fuego_megustantodas.asx";
songs[15]="http://www.famouscodez.com/file/fuego_venteconmigo.asx";
songs[16]="http://www.pmtnet.net/~codez/gallego_intro.wma";
songs[17]="http://www.pmtnet.net/~codez/gocho_comohacer.wma";
songs[18]="http://digitalmp.superprovider.de/gocho_laperfectaoccasion.wma";
songs[19]="http://digitalmp.superprovider.de/gocho_siellapide.wma";
songs[20]="http://digitalmp.superprovider.de/gocho_esasi.wma";
songs[21]="http://digitalmusic1.superprovider.de/DM-ElZorro-Gringo.wma";
//*******************************//
//*******************************//
// Initializations //
with (document){
var length = forms['form'].playlist.length;
if(numberTracks){
for (var i = 0; i < length; i++){
forms['form'].playlist.options[i].innerHTML = (i+1) + " - " + forms['form'].playlist.options[i].innerHTML;
}
}
if (shuffle) {
var randsg = Math.floor(Math.random()*songs.length);
Player.url = songs[randsg];
forms['form'].playlist.options[randsg].selected = true;
forms['form'].ShuffleSwitch.outerHTML = ShuffleOnHTML.innerHTML;
}
else {
forms['form'].ShuffleSwitch.outerHTML = ShuffleOffHTML.innerHTML;
Player.url = songs[0];
}
if(autoStart){
var snum = forms['form'].playlist.selectedIndex;
if(Player.url != songs[snum]){
Player.url = songs[snum];
}
Player.controls.Play();
}
}
// Functions //
// Discription: "PlayPause" will toggle playing and pausing if the same song is still selected,
// otherwise it will load the newly selected song
function PlayPause(list) {
var snum = list.selectedIndex;
if((Player.url == songs[snum] && Player.url != "") && Player.playState != 1){
if(Player.playState == 3){
Player.controls.Pause();
}
else {
Player.controls.Play();
}
}
else {
Player.url = songs[snum];
Player.controls.Play();
}
}
// Discription: "Next" will move to the next music file if shuffle is off
// otherwise it will load a random song. Calls PlayPause to start music.
function Next(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == list.length-1) {
snum = -1;
}
snum++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: "Back" does the same thing as "Next" but moves backwads
// through the list. If shuffle is on then picks a random song.
function Back(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == 0){
snum = list.length;
}
snum--;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: Self explanitory.
function Stop(){
Player.controls.Stop();
}
// Discription: Makes the shuffle flag the same as the status of the CheckBox
// The status of the checkbox (true/false) indicates if the box is checked
function ToggleShuffle(CheckBox) {
shuffle = CheckBox.status;
}
</SCRIPT>
<script ID="StateChangeHandler" Language = "JavaScript" For = "Player" Event = playStateChange(NewState)>
// Description: This is an interupt handler used to handle instances when the
// state of the player changes to play or stop for example.
//STATE.innerText = NewState;
switch(NewState){
case 8: // Handles player after it just finishes playing through a song
var num = document.forms['form'].playlist.selectedIndex;
if (!shuffle){
if(num == document.forms['form'].playlist.length-1){
num = -1;
}
num++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == num);
num = temp;
}
document.forms['form'].playlist.options[num].selected = true;
PreviousState = NewState;
break;
case 1: // Handles player after it stops
if(PreviousState == 8){
var num = document.forms['form'].playlist.selectedIndex;
Player.settings.autoStart = true;
Player.url = songs[num];
PreviousState = NewState;
}
else if (PreviousState != 3 && PreviousState != 2){
Player.controls.Play();
Player.settings.autoStart = false;
}
else{
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
}
break;
case 3: // Handles player after it starts to play
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = "Pause";
shuffle = document.forms['form'].ShuffleSwitch.status;
break;
case 2: // Handles player after being paused
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
break;
default:
}
</SCRIPT>
</div>
Y donde dice :
songs[0]="numero"; va los url donde e subido la canción pero al momento que pongo play no lo abre por ejemplo si tu das clic en este link:
http://digitalmp.superprovider.de/gocho_laperfectaoccasion.wma
lo escuchas directamente pero si le das clic en este donde yo e subido mi canción lo descarga ¿por que?