Click to See Complete Forum and Search --> : decisive way to play mid


light_wt
04-02-2003, 02:07 PM
Hi,

I am having trouble with the music to play in this web page http://light_wt.tripod.com. There are four different mid needed to be playing based on the button clicked on index.htm. The button "Friends and Families" will bring user to a new page with its tune. The button "Grand Tour" will bring user to a new page with another tune, and so on. index.htm itself has its own mid, which makes total of five mids.

In the http://light_wt.tripod.com/index.htm, I have <Bgsound src="sound/bnb1.mid" loop="-1">. When I click Friend and Families, it launch a frame to http://light_wt.tripod.com/ff/ff.frame.htm where the top row has the http://light_wt.tripod.com/ff/ff.music.htm, the bottom has the picture (well ... removed to conserve space). In the bottom row, if a person click on the right arrow, it will move to the next page and music plays uninterruptedly.

When the top arrow button is click, it brings user back to the index.html. However, it will be launched within the frame http://light_wt.tripod.com/ff/ff.frame.htm. Therefore it still plays the tune from http://light_wt.tripod.com/ff/ff.music.htm rather than the embedded mid in http://light_wt.tripod.com/index.htm.


May be I am digging a hole for myself by using frame? Is there a way to make the browser to continuously playing the music based on the button clicked in index.htm or based on the html files users is browsing? I don't have <Bgsound src="../sound/BeOurGuest.mid" loop="-1"> in the individual htm files. It is because the left or right arrows links will cause choppy mid rather than continuously within all the files in http://light_wt.tripod.com/ff

At last, if there is a way to disable the advertisement from tripod will be great. :)

Thanks for your help.

Jona
04-02-2003, 03:37 PM
I think this may help:

My "has not been updated in 2 months" MIDI script. (http://geocities.com/god_loves_07/next_mid.html) :D

light_wt
04-02-2003, 03:58 PM
Hey, That is pretty cool.

Sorry, but I can't make sense of it so music will continuiously to play in those subsequent htm files after the "Friends and Families" buttons and to play index.htm one when the top arrow is click.

Each time I click the next button, the music will start from zero in the next jrXXX.htm file. :(

Thanks. It is a good try.

Jona
04-02-2003, 04:02 PM
You want a button that onclick plays a selected MIDI? Or is this a two-page kind of script? You can (1) parse the URL with JavaScript or (2) use a server-side language.

light_wt
04-02-2003, 04:31 PM
"You want a button that onclick plays a selected MIDI? Or is this a two-page kind of script? You can (1) parse the URL with JavaScript or (2) use a server-side language."

Good question. I want the MIDI continuous to play the same "theme song" starting when the button on index.html is clicked until the end of the series of jr***.htm. That is, when the up arrow is clicked.

For example, "Friends and Families" button will bring user to its series of htms. While clicking the right arrow, the "theme song" will not be interrupted. When the up arrow is clicked the song as in the embedded MIDI will be played again.

For a try, click "Grand Tour" from http://light_wt.tripod.com/index.htm, directly. It will play its theme song.

I guess there might be another work around. I hope there is a way to use only one html after the "Friends and Families" button. From this Friends and Families, I can embed its theme song. Also, I can tell the right arrow to change the image (where the red X currently located) to the next image in a list of images. Is there an example of how to add this logic to the right and left button? Perhaps this may be easier, save even more space, and have faster rendering. :) Your music page is truly inspiring.

Hum… Does it mean I am trying to create a style sheet with javascript? I think, I can even scrape the frame portion all together. If so, is there a pointer how to create this single html so a list of image will be loaded based on the left or right arrow? I am a newbie; a step by step will on creating this html will be great. :)

BTW, these images will be stored in a CD. So, there isn’t really a web host to provide server-side logic for the final output.

Jona
04-02-2003, 04:37 PM
OK, across pages you should either just loop it on each page, or use a seperate very small frame that plays the MIDI over and over.

light_wt
04-02-2003, 04:47 PM
"OK, across pages you should either just loop it on each page,"

We are getting really close to the problem. I updated across the pages with loop=1 on htmls after the "Friends and Familes". As soon as I click the left or right buttons, the music reload and start from zero.

It doesn't get to play continuoulsy. If I use frame, it is what I've got. The problem with it is when the up arrow is clicked, it plays the music from the frame http://light_wt.tripod.com/ff/ff.music.htm. :(

Thanks again.