bigal
09-06-2003, 08:36 AM
A little while ago, BestZest kindly rewrote a piece of javascript for me so i had a select box instead of a type box. :p
Now i face a new prob. If you download the attached txt file and remove the txt extention, leaving the file as player_main.htm
You will notace that the script allowes you to select a song, and it delves into the folder "sound/midi/midi<x>.mid
it replaces<x> with the number of the tune, the first song has the file name midi1.mid the second midi2.mid exc exc...
But what i have decided i want to do now is instead of when you press "Play" you get a link straight to the file, activating a quicktime plugin, i want it to use "Post" to post the selection to a php file containing a WMP embeded, using:
****start code******************
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName"
VALUE="php file will go here">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
</OBJECT>
********end code*************
and as the source is the file specified by the player, thus in stead of having the java window going straight to the midi file, it opens a page with a player playing the file you specify.
Of course i COULD do the long way and have 36 different htm files called midi1.htm midi2.htm ect to have the script open instead of the midi file direct, but that would be laborous!
But i might end up doing that! :rolleyes:
SO, is there a way to do this, or not? ;)
Now i face a new prob. If you download the attached txt file and remove the txt extention, leaving the file as player_main.htm
You will notace that the script allowes you to select a song, and it delves into the folder "sound/midi/midi<x>.mid
it replaces<x> with the number of the tune, the first song has the file name midi1.mid the second midi2.mid exc exc...
But what i have decided i want to do now is instead of when you press "Play" you get a link straight to the file, activating a quicktime plugin, i want it to use "Post" to post the selection to a php file containing a WMP embeded, using:
****start code******************
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName"
VALUE="php file will go here">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
</OBJECT>
********end code*************
and as the source is the file specified by the player, thus in stead of having the java window going straight to the midi file, it opens a page with a player playing the file you specify.
Of course i COULD do the long way and have 36 different htm files called midi1.htm midi2.htm ect to have the script open instead of the midi file direct, but that would be laborous!
But i might end up doing that! :rolleyes:
SO, is there a way to do this, or not? ;)