/    Sign up×
Community /Pin to ProfileBookmark

Background Music

I have a site with several pages and I want to add-in some background music. I don’t want it to restart when you click to a new page within the site though. Is there a way to make it play even though another page is navigated to? Maybe through an iframe with width=0 height=0? Any suggestions are helpful.

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@The_Little_GuyNov 17.2005 — what if you placed it inside a popup window? You could place all the controls in there, and if you have flash, you could have a really nice one.
Copy linkTweet thisAlerts:
@JAPersonNov 17.2005 — A large number or surfers do not like background music because often they are already listening to music of their own. So you should give the viewer the option to hear the background music or not.

If all you are concerned with is just playing the music with no control panel or anything like that, a hidden iframe may be an alternative way.

The biggest problem however is getting code to play music on all operating systems, on all browsers and keep it w3c standard so it validates. Notice all the other threads on the same topic? Yet none of them has solve this problem yet.
Copy linkTweet thisAlerts:
@kiathauNov 17.2005 — Use <object> tag to include sound in web page.

Please refer http://www.w3.org/TR/REC-html40/struct/objects.html

If you want the music to play while navigating thru pages, then u should use iframe for the content pages. i.e. when user click to navigate to other page, the page changes in an iframe.

You shouldn't place the music in an iframe.

Kiat Hau,

http://webidiot.blogspot.com, Let's build your web site
Copy linkTweet thisAlerts:
@JAPersonNov 17.2005 — Use <object> tag to include sound in web page.

Please refer http://www.w3.org/TR/REC-html40/struct/objects.html[/QUOTE]


Sorry to be such a pain, but our answer is not there either. That page deals with images, text and applets. No music! I tried substituting references to my midi file in some of them, but no luck. ?
×

Success!

Help @bluflamez09 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...