PDA

View Full Version : Background Sound


cmschool
11-7-02, 10:29 AM
I am wanting to put some music in the background. I know how to do the <bgsound src="blah"> but I was wondering if this would allow the song to continue to play even though pages are being changed. I want it to be site based not page specific or start the song over every time a new link is clicked.

Any help given would be me much appreciated. Thanks.

Ddr
11-7-02, 04:46 PM
This might not be the most elegant way to do it. I cant think of a way (with my limited knowledge) to have the background music tied to anything but a single web page. Perhaps someone else can help you with some site-wide solution through a CSS file or something. I am not sure.

But, I am clever. The way I would do it is create a popunder window that has the code for the background music in it. Your options are broad, then. The popunder window can have controls for the music or not. It can be visible or not. Make it 1 pixel by 1 pixel and no one will see it except for the notation on the bottom of their screen with the other open windows.

Hope that gets you where you wanted to go.

Dale

Bad Hair Day
11-7-02, 05:10 PM
Originally posted by cmschool
I am wanting to put some music in the background.
It's a fairly well known recipe for preventing people staying at your site.........

Not everyone likes what you like.

I would recommend that you at least give them a console, so that they may chose whether to listen to your offerings, or not.

BHD

el2ik
11-8-02, 11:30 AM
If you don't care, you could make your menu the main page with an <iframe name=content width=x height=x> over for the content, and the links <a href="link.html" target=content">

This'll keep the menu from loading every page, so you could put the music on it and it won't reload

Patrish
11-19-02, 08:27 PM
I'm afraid I must agree with BHD. I don't stick around web sites that thrust their music on me, no matter how otherwise attractive that website may be.

98% of my computer time is spent listening to CDs. I enjoy the music I choose and I resent anything that interferes with my selections.

I hope you will re-think your options.

Patrish

Patricia Blackstock
Visit Myrtle Beach!
http://www.funbeaches.com


:cool:

Panecea
11-24-02, 08:19 AM
One way to do this would be to make a 1 px high frame (or any size frame) anywhere on your site on the margins (top, bottom, right, left) and embed your sound there. Iframe wouldn't work because you would have to write the code for the frame into each page on your site and the sound would start all over again when you load a new page w/ an iframe. My site makes heavy use of iframes and I use two regular frames: one for "nav" and one for "content" because I don't want my users to have to scroll their outer windows vertically or horizontally. The only thing they scroll is the iframe. You could also embed your sound into your nav bar frame if you are using one. Don't have to worry about an iframe here.

The others who responded are correct though. Best way to get potentials to leave your site is to not give them the option of turning the music off. They could already be listening to music or they just might not like it.

However, if losing serfers is not important to you, then by all means embed it in a frame. I have a song embedded into my site's member's page because I don't give a S$%$ about the happen stance serfer who stumbles onto my site. It's really specialized and so it doesn't matter very much.

You can chk out what I have done if you want. Some of the site is being revamped right now though. WFU Clan (http://www.wfuclan.net)

If you need anything else, let me know.

TTFN,

Panecea

TourGuide
12-1-02, 06:36 PM
wow, the thought never occured to me that music would make people leave a website...that's good to know. all the rest of that stuff was over my head tho.