/    Sign up×
Community /Pin to ProfileBookmark

adding background music

how do i add a playlist of background music to my site? i don’t want the same song to play over and over, i want it to go through a playlist.

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyJul 23.2005 — well this would really annoy me unless i had some method of turning it off. I would do it as a swf file with the options to stop play and skip the songs.
Copy linkTweet thisAlerts:
@blueandconfusedauthorJul 23.2005 — it wouldnt annoy you if you were a hardcore music fan
Copy linkTweet thisAlerts:
@bathurst_guyJul 23.2005 — yes it would, i want to listen to music when i want to listen to music not when some web site plays it for me, no matter what the genre
Copy linkTweet thisAlerts:
@blueandconfusedauthorJul 23.2005 — a hardcore music fan listens to music ALL DAY LONG!
Copy linkTweet thisAlerts:
@bathurst_guyJul 23.2005 — well the stop button was only a suggestion,

you could at least thank me for letting you know how your question could be achieved.
Copy linkTweet thisAlerts:
@herodote92Jul 23.2005 — It's something like that, at the beginning of the body:

<i>
</i>&lt;bgsound src="MyNoise.RMI" loop = "true"&gt;


but apparently, it works only with IE.
Copy linkTweet thisAlerts:
@Jonny_LangJul 23.2005 — I won't change anything I do, or how I do it, not for anyone, not now, not ever. If you don't like my code, ...
Copy linkTweet thisAlerts:
@neewahJul 23.2005 — And perhaps you could get even more advanced and use PHP and JavaScript to allow users to create their own playlist on your site!!
Copy linkTweet thisAlerts:
@BeachSideJul 30.2005 — [CODE]<HTML>
<Head>
</Head>
<Body>
<Embed Src="media/PlayList.wax" Width=70 Height=40 Loop=1></Embed>
<!-- Loop=1 means loop forever -->
</Body>
</HTML>[/CODE]

[/QUOTE]

You need to format your code properly... you should have double quotes around your attribute values

Also loop="-1" is the attribute to loop infinitely not loop="1" that will play it once just like loop="0" will

One more thing the embed tag is not a standard complient tag you should think about using something else such as the object tag

::Edit::

Oh and I almost forgot you should actually use playcount in an embed and true or false for loop not a number
Copy linkTweet thisAlerts:
@webstaJul 30.2005 — I recommend the open source (free) flash-based player at [URL=http://musicplayer.sourceforge.net]http://musicplayer.sourceforge.net[/URL].

They have three versions: full-sized player, slim version (just the current track), and a on/off button version (customizable colors). It looks professional, really clean design -- much better than many paid versions I've seen for sale.

I have used the on/off button version for a site at [URL=http://barjetranch.com]http://barjetranch.com[/URL]. The client wanted a western feel to the site. Users seem to love it.

Can you imagine a movie, TV show or commercial without background music? It really helps convey an emotional context for a site.

Usability studies have found improved completion of computer-based tasks with orchestral music playing (vs. no music)(and "punk" -- whatever they meant by that :rolleyes: ).

But don't get me started on midi files :mad: . And, yes, IMO, an off button is essential (especially for users at work!)

Good luck! Be sure to post your URL so we can check out the results of whatever you do!
×

Success!

Help @blueandconfused 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.20,
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,
)...