|
-
Jan 26th, 2004, 06:07 PM
#1
Thread Starter
New Member
ComboBox Music
I wanted to play midi file with the OnChange command when i select any1 of about 10 choices and that it loop back if i select another one...but i cant....anyone can help me out plz ?
-
Jan 27th, 2004, 12:43 AM
#2
Dazed Member
What specifically are you having a problem with? Do you have any existing code to show?
-
Jan 27th, 2004, 08:27 AM
#3
OnChange? Is this about JavaScript perhaps?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 27th, 2004, 08:31 AM
#4
Thread Starter
New Member
yes!
<script type="text/javascript" language="Javascript">
// Web midi JukeBox application
function play()
{
if(document.selform.music.selectedIndex != 0)
{
document.embeds[document.selform.music.selectedIndex-1].play();
}
}
function stop()
{
if(document.selform.music.selectedIndex != 0)
{
document.embeds[document.selform.music.selectedIndex-1].stop();
}
}
</script>
<form name="selform"><select name="music" size="1">
<option VALUE="0" SELECTED>Musiques</option>
<option VALUE="1"> Hyrule's Field [OoT]</option>
<option VALUE="2">Castle [LA]</option>
</select></form><input type= "submit" onClick="javascript lay()" ; value="Play"><input type= "submit" onClick="javascript:stop()" ; value="Stop">
--------------------------------
Thats my code from now... because i cant find something to make it loop back and i dont know the code to use OnChange....thanks in advance to help me out :S
-
Jan 27th, 2004, 08:35 AM
#5
Wrong forum. This is about the Java programming language, not about the JavaScript scripting language. Got to "XML, HTML, Javascript and CGI".
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|