/    Sign up×
Community /Pin to ProfileBookmark

Please help on! Sound control cannot work on ff.

I wan to create a webpage with a background sound. And will have a stop & play button for it.

[CODE]<head >
<script type=”text/javascript”>
function stop() {
document.getElementById(“sound”).src = “”;
}

</script>

</head>

<body >
<EMBED SRC=”robot2.mp3″ height=”30″ AUTOSTART=”true” hidden=”true” id=”sound” loop=”true”
>

<input type=”button” onclick=”stop();” value=”Stop music” />
<input type=”button” onclick=”location.reload(true);” value=”Start music” />

</body>[/CODE]

I get some code from forum. It work well on ff, but when come to IE the stop button failed to work.

Could somebody help to edit it so that it can work on both browser…thanks~~

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@Major_PayneJun 19.2010 — Which is it: "Sound control cannot work on ff" or "It work well on ff, but when come to IE the stop button failed to work"?
Copy linkTweet thisAlerts:
@mikikoauthorJun 19.2010 — Major Payne's

sorry is typing mistake...

what i wan to mean is "It work well on ff, but when come to IE the stop button failed to work"

do u have any solution for this?
Copy linkTweet thisAlerts:
@mikikoauthorJun 21.2010 — thank for ur helps

But how about if i wan the player with my own design??
Copy linkTweet thisAlerts:
@criterion9Jun 21.2010 — thank for ur helps

But how about if i wan the player with my own design??[/QUOTE]


Usually to use your own design you'll need to use a plugin (like Flash, Java, Silverlight, etc). Next steps or suggestions would depend on your choice of plugins, your experience level, and/or budget.
×

Success!

Help @mikiko 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.2,
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,
)...