Forum Moderators: open

Message Too Old, No Replies

swf files for background music in Dreamweaver

         

PerlJamZ10

4:22 am on Dec 21, 2006 (gmt 0)

10+ Year Member



I figured out how to make a swf file to embed in a dreamweaver site to autoplay as background music...however, I was wondering if there was a way to link the playing of the music to all of the pages on my website so that I wouldn't have to embed the swf file within each page and have the song reset everytime the page is changed. Basically I want the song to continuously flow as the background music no matter where you are on my site.

vsgill

7:34 am on Dec 21, 2006 (gmt 0)

10+ Year Member



hi PerlJamZ10

you can do this by adding frames to you page.
you can have a parent page which will contain the flash object. this page can then have a frame which loads all the content (other html pages)...
this way you can keep loading the pages in a frame without refreshing the main parent page which will allow your flash object to play without starting over when a new page is loaded..

Setek

5:43 am on Dec 21, 2006 (gmt 0)

10+ Year Member



I'm nearly 100% sure this can't be done in CSS. You can link other CSS files, background images, and present your content for different media, but embed sound?

The only ways I can think of that this can be done, is by having the rest of the website in flash, so all clicks are within the flash presentation anyway, or!

Having framesets, and embedding the music file in the navigation frame, since it would be the constant one while the content frame updates.

This... is a really bad idea, as you should know :)

[edited by: encyclo at 10:38 am (utc) on Dec. 21, 2006]
[edit reason] spliced from duplicate thread [/edit]

alias

7:33 am on Dec 21, 2006 (gmt 0)

10+ Year Member



there is no way CSS would be able to accomplish this task. the only solution is using frames, as said in the previous post. but for the holy web's sake, please, don't do it to your website! ;)

PerlJamZ10

9:21 pm on Dec 21, 2006 (gmt 0)

10+ Year Member



hahaha yeah I know what you mean by "for holy web's sake, don't do that to your website" because it can get annoying. However, my website is for a specific purpose and I think the song would really enhance the overall experience (I'm not just tossing it in for no apparent reason because I think it's "cool"). But yeah, I figured the only way to make the song play consistently is have it correspond with a flash file within a single page, so that the page doesn't have to constantly reload. To do this to my site I would have to re-do the entire site in flash (other than the background which would be the dreamweaver portion of the site) so that everything is contained within one webpage and not 12...and I have no desire to do this lol. Therefore, I will consider what I was asking, given the current state of my site, impractical.

*Unless you could somehow have the song in some media format on the server and the CSS can somehow read the song seperately from the webpages themselves so that it indeed does play constantly...just streaming from the server itself* But that's probably very unlikely.

[edited by: PerlJamZ10 at 9:24 pm (utc) on Dec. 21, 2006]