/    Sign up×
Community /Pin to ProfileBookmark

website Music Problem

I have a frames website with a <bgsound> file playing in the index.htm page…

[B]I would like the music to change when I enter a certain page
and then revert back to the original music when leaving that page[/B]

Can this be done with the onLoad() and onUnLoad() event handlers? If it can please provide the syntax..

failing that how do I stop the <bgsound> without using buttons?

I can only do it by leaving the website but then again I’m not very bright??

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@iniquity101Jan 27.2004 — [URL=http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Audio_and_Sound/]http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Audio_and_Sound/[/URL] you could try looking through there, although i would not reccomend adding background sound, simply because your imposing your music/sounds on the user.
Copy linkTweet thisAlerts:
@PeOfEoJan 27.2004 — Sites that have music and interfear with my winamp are never visited by the likes of me again.
Copy linkTweet thisAlerts:
@Paul_JrJan 27.2004 — I agree. However, if you wish to have background music, have it off by default, then give the user a method of turning it on if they wish to do so.
Copy linkTweet thisAlerts:
@glenvernauthorJan 28.2004 — Thanx for the replies but they didnt help me with my problem

If you don't like music on a website then help me turn it off with an event handler, script, php or whatever and no buttons..

cheers
×

Success!

Help @glenvern 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.17,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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