PDA

View Full Version : music jukebox help


adrianvincent
07-10-2003, 01:24 AM
ive been trying to look around the web for a good background music jukebox that would go through my songs, which are in .wma.

ive been trying to change around this code so i can use the 'next' button but i cant seem to get it to work.

<script language="JavaScript"><!--
var soundFile = "love.wma, realove.wma";if (soundFile.indexOf(",") > 0) {var sounds = soundFile.split(",");soundFile = sounds[Math.floor(Math.random()*sounds.length)];}if(navigator.plugins.length>0){
if (navigator.mimeTypes["wma"] && navigator.mimeTypes["wma"].enabledPlugin) document.write('<embed src="'+soundFile+'" autostart="true" loop="true" controls="LargeConsole" width=145 height=35></embed>');}
else {
document.write('<embed src="'+soundFile+'" autostart="true" loop="true" width=285 height=25></embed>');}

//-->
</script>
<noscript><embed src="love.wma" autostart="true" loop="true"></embed></noscript>
<noembed><bgsound src="love.wma" loop=true></noembed>

is there another script out there that can help me?

Mr J
07-10-2003, 05:21 PM
On my site I have a playlist that plays a randomly selected file when the site is first loaded.

If the visitor remains long enough more files are then played in sequence out of 87 tracks

The files I use are only midi :(


Take a look here

www.huntingground.freeserve.co.uk

and navigate to the following section

Javascripts, then Sound & Music


This section contains 3 playlist versions

One of these might do you

PS

I don't know if these will work in any other browser other than IE

zoobie
07-12-2003, 07:34 AM
Next button? I'll assume it's on the Media Player although I don't remember it...
As a sidenote, RealOne formerly RealAudio formerly RealPlayer formerly Real...well, you get the idea...has once again changed it's codec/format for the 3rd time in 3 years...so, stay far away.
Try Hotscripts.com for more jukeboxes. :D

Mhtml
07-14-2003, 02:52 AM
Firstly search on google.
Secondly search on this site.
Thirdly this is mainly javascript!!! This is the HTML category, you do the math!

:rolleyes: