View Full Version : any way to embed music, that will continue from page to page

Mar 29th, 2007, 07:58 PM
Is there any way to embed a music file, so that it continues from page to page, and does not restart from the beginning? Or would this have to be done in Flash (and if so, does the entire site need to be in Flash? Or can I just put a small flash box that plays music on each page?). Any help is appreciated. Thanks!

Mar 29th, 2007, 08:00 PM
the only way i can think of would be to use frames.

Mar 29th, 2007, 08:10 PM
the only way i can think of would be to use frames.
or a popup.

Mar 29th, 2007, 09:44 PM
Thanks guys.

Question on your response Shadowfox: I have a site already built, is there any way to create some type of frame container that takes no or minimal amount of room on the page? in other words, I have a site thats 10 pages, and now that I want music, can I make an invisible frame that holds those 10 pages, or do I have to recreate these 10 pages with frames? Thanks!

Mar 29th, 2007, 09:51 PM
I prefer an option to click to start music, which would launch the popup. That way those people who actually want to hear music could opt in, as opposed to driving people away who don't want to hear the music. That being said, if you're married to the idea of frames, just take the unchanging page in your frames and have an onload that plays the music.

Mar 29th, 2007, 09:54 PM
I agree with marylin. I personally do not like sites with music so I always turn them off or hope that sites do not have music.

display: none; would hide the frame but I still think you could hear the music

Mar 29th, 2007, 11:00 PM
Thanks Marylin - I will try that with the frames. I also agree with the music button, but I'm just helping out a friend that insists to have the music play automatically to all. THanks again

Apr 28th, 2007, 05:43 AM
no. the nice thing with frames is you can target certain frames to load on clicked links. let me give you an example this is a frameset i have uploaded to a free hosting server, if you click the names on the bottom. there's only one frame it targets and it will loud the files you all ready have made in that frame
/edit here's a simple example with actual music on the framset
The link on the left for the code is as followed- a href="http://shadowfox.1111mb.com/NewPage.htm" target="mainFrame"

you have to have the target, other wise it will loud in the same frame that the link is in. unless that is what you want.
personally i like to have a site map on the left that stays so the users can get back to pages easily.

if you want some text doc's with the actual code just e-mail me at the link below.
put "Regarding Frames in HTML" in subject so i don't just delete it.

mr e
Apr 28th, 2007, 08:07 AM
There's always the AJAX approach too, albeit that would be a lot of work to rewrite your site for AJAX, but an option nevertheless

Apr 30th, 2007, 01:44 AM
or a popup.

pop ups are nice sometimes, but what if the people have a pop up blocker installed?

Apr 30th, 2007, 03:09 AM
This would be what the code would look like for the main frameset >>

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<frameset rows="*" cols="187,*" framespacing="0" frameborder="NO" border="0">
<frame src="Menu.htm" name="leftFrame" scrolling="NO" noresize>
<frameset rows="*,80" frameborder="NO" border="0" framespacing="0">
<frame src="Main.htm" name="mainFrame">
<frame src="Music.htm" name="bottomFrame" scrolling="NO" noresize>


when you name the frame

<frame src="nameOfFile.htm" name="nameOfFrame">
when you target the frame in a link you have to target the frame your code should look like this

<a href="http://locationOfFile.htmOrhtml" target="nameOfFrame">Link</a>