bigal
09-01-2003, 04:51 AM
Ok, i need a script that has a box (playlist) with a scroller bar
(text area box)
That has all the files in my midi folder on my website in.
(I will type them in, it doesnt have to detect and list the files)that would be useful though!))
And when a person clicks on a song on the list, they then press "play" and voila!
The script:
<Script Language="JavaScript">
<!-- Hiding
/* Rescued by A1 javascripts from pieces on a site resulting in errors and restored to excellent working condition - although not quite original anymore, all credit to the script maker Lefteris Haritou. http://www.geocities.com/~lef
Please keep the above credit.
No copyrights but be fair.
*/
song = new Array()
var x = 0
song[1] = " Songname # 1"
song[2] = " Songname # 2"
song[3] = " Songname # 3"
song[4] = " Songname # 4"
song[5] = " Songname # 5"
song[6] = " Songname # 6"
song[7] = " Songname # 1"
song[8] = " Songname # 2"
song[9] = " Songname # 3"
song[10] = " Songname # 4"
song[11] = " Songname # 5"
song[12] = " Songname # 6"
song[13] = " Songname # 1"
song[14] = " Songname # 2"
song[15] = " Songname # 3"
song[16] = " Songname # 4"
song[17] = " Songname # 5"
song[18] = " Songname # 6"
song[19] = " Songname # 1"
song[20] = " Songname # 2"
song[21] = " Songname # 3"
song[22] = " Songname # 4"
song[23] = " Songname # 5"
song[24] = " Songname # 6"
song[25] = " Songname # 1"
song[26] = " Songname # 2"
song[27] = " Songname # 3"
song[28] = " Songname # 4"
song[29] = " Songname # 5"
song[30] = " Songname # 6"
song[31] = " Songname # 1"
song[32] = " Songname # 2"
song[33] = " Songname # 3"
song[34] = " Songname # 4"
song[35] = " Songname # 5"
song[36] = " Songname # 6"
song[37] = " Songname # 1"
song[38] = " Songname # 2"
song[39] = " Songname # 3"
song[40] = " Songname # 4"
song[41] = " Songname # 5"
song[42] = " Songname # 6"
song[43] = " Songname # 1"
song[44] = " Songname # 2"
song[45] = " Songname # 3"
song[46] = " Songname # 4"
song[47] = " Songname # 5"
song[48] = " Songname # 6"
function prev(){
if (x>1)
{ x--
document.midi.typein.value=song [x]
}
}
function next(){
var max= song.length-1
if (x<max)
{ x++
document.midi.typein.value=song [x]
}
}
function go(){
if (x != 0){
location.href='midi'+x+'.mid'
}
}
function start(){
x=1
document.midi.typein.value=song [x]
}
function end(){
x=song.length-1
document.midi.typein.value=song [x]
}
function cls(){
document.midi.typein.value=" Select A Midi Song"
}
// Done Hiding -->
</Script>
<FORM Name="midi">
<INPUT NAME="typein" TYPE="text" SIZE="40" ALIGN=top><BR><!-- You can change the size of the textbox if you need-->
<font size=2 face="Helvetica">
<INPUT TYPE=Button Value="|<<" Align=center onclick="start()"><INPUT TYPE=Button Value="<<" Align=center onclick="prev()"><INPUT TYPE=Button Value="PLAY" Align=center onclick="go()"><INPUT TYPE=Button Value=">>" Align=center onclick="next()"><INPUT TYPE=Button Value=">>|" Align=center onclick="end()"></FORM></font>
<!-- -->
<!-- --><body onload="cls()"><!-- -->
works but i need it with a large box that you can select the files in, not a thing when you press a button to go through the list.
The html file for the above is attached!
(text area box)
That has all the files in my midi folder on my website in.
(I will type them in, it doesnt have to detect and list the files)that would be useful though!))
And when a person clicks on a song on the list, they then press "play" and voila!
The script:
<Script Language="JavaScript">
<!-- Hiding
/* Rescued by A1 javascripts from pieces on a site resulting in errors and restored to excellent working condition - although not quite original anymore, all credit to the script maker Lefteris Haritou. http://www.geocities.com/~lef
Please keep the above credit.
No copyrights but be fair.
*/
song = new Array()
var x = 0
song[1] = " Songname # 1"
song[2] = " Songname # 2"
song[3] = " Songname # 3"
song[4] = " Songname # 4"
song[5] = " Songname # 5"
song[6] = " Songname # 6"
song[7] = " Songname # 1"
song[8] = " Songname # 2"
song[9] = " Songname # 3"
song[10] = " Songname # 4"
song[11] = " Songname # 5"
song[12] = " Songname # 6"
song[13] = " Songname # 1"
song[14] = " Songname # 2"
song[15] = " Songname # 3"
song[16] = " Songname # 4"
song[17] = " Songname # 5"
song[18] = " Songname # 6"
song[19] = " Songname # 1"
song[20] = " Songname # 2"
song[21] = " Songname # 3"
song[22] = " Songname # 4"
song[23] = " Songname # 5"
song[24] = " Songname # 6"
song[25] = " Songname # 1"
song[26] = " Songname # 2"
song[27] = " Songname # 3"
song[28] = " Songname # 4"
song[29] = " Songname # 5"
song[30] = " Songname # 6"
song[31] = " Songname # 1"
song[32] = " Songname # 2"
song[33] = " Songname # 3"
song[34] = " Songname # 4"
song[35] = " Songname # 5"
song[36] = " Songname # 6"
song[37] = " Songname # 1"
song[38] = " Songname # 2"
song[39] = " Songname # 3"
song[40] = " Songname # 4"
song[41] = " Songname # 5"
song[42] = " Songname # 6"
song[43] = " Songname # 1"
song[44] = " Songname # 2"
song[45] = " Songname # 3"
song[46] = " Songname # 4"
song[47] = " Songname # 5"
song[48] = " Songname # 6"
function prev(){
if (x>1)
{ x--
document.midi.typein.value=song [x]
}
}
function next(){
var max= song.length-1
if (x<max)
{ x++
document.midi.typein.value=song [x]
}
}
function go(){
if (x != 0){
location.href='midi'+x+'.mid'
}
}
function start(){
x=1
document.midi.typein.value=song [x]
}
function end(){
x=song.length-1
document.midi.typein.value=song [x]
}
function cls(){
document.midi.typein.value=" Select A Midi Song"
}
// Done Hiding -->
</Script>
<FORM Name="midi">
<INPUT NAME="typein" TYPE="text" SIZE="40" ALIGN=top><BR><!-- You can change the size of the textbox if you need-->
<font size=2 face="Helvetica">
<INPUT TYPE=Button Value="|<<" Align=center onclick="start()"><INPUT TYPE=Button Value="<<" Align=center onclick="prev()"><INPUT TYPE=Button Value="PLAY" Align=center onclick="go()"><INPUT TYPE=Button Value=">>" Align=center onclick="next()"><INPUT TYPE=Button Value=">>|" Align=center onclick="end()"></FORM></font>
<!-- -->
<!-- --><body onload="cls()"><!-- -->
works but i need it with a large box that you can select the files in, not a thing when you press a button to go through the list.
The html file for the above is attached!