From: Dj Psycho on
Well i got a embed list to embe wmp in my site one thing i want it to shuffle
the playlist like everytime when someon comes on my site my mediaplayer must
randomize the playlist. its about 200 songs so its gonna be boring if someon
hear the same numbers everytime they wanna listen music
someon know the command or Param of it??

From: (_seb_) on
Dj Psycho wrote:
> Well i got a embed list to embe wmp in my site one thing i want it to shuffle
> the playlist like everytime when someon comes on my site my mediaplayer must
> randomize the playlist. its about 200 songs so its gonna be boring if someon
> hear the same numbers everytime they wanna listen music
> someon know the command or Param of it??
>

You would have to use javascript to generate the wmp embed code, so that each time the page loads, a
new target song is written within the embed code.
The basic method would be to create a javascript array with all the songs, then a javacsript
function that randomly picks one, then a javsacript function that generates the embed code with the
choosen song.
Don't know javascript enough to give you a code example, but you can Google that, or else, wait for
some javascript guru to answer.


--
seb ( ---@webtrans1.com)
http://webtrans1.com | high-end web design
Downloads: Slide Show, Directory Browser, Mailing List
From: (_seb_) on
(_seb_) wrote:
> Dj Psycho wrote:
>
>> Well i got a embed list to embe wmp in my site one thing i want it to
>> shuffle the playlist like everytime when someon comes on my site my
>> mediaplayer must randomize the playlist. its about 200 songs so its
>> gonna be boring if someon hear the same numbers everytime they wanna
>> listen music
>> someon know the command or Param of it??
>>
>
> You would have to use javascript to generate the wmp embed code, so that
> each time the page loads, a new target song is written within the embed
> code.
> The basic method would be to create a javascript array with all the
> songs, then a javacsript function that randomly picks one, then a
> javsacript function that generates the embed code with the choosen song.
> Don't know javascript enough to give you a code example, but you can
> Google that, or else, wait for some javascript guru to answer.
>
>

you can also use any server-side language, following the same method. The advantage of a server side
language will be that you won't need to manually write down the array containing all the songs,
server-side code can automatically go look into your folder containing all the songs and create an
array from all the files inside it. So you could add songs or remove songs from the folder and the
array will always be accurate.
If you can use PHP I can give you a code example of how that would be done...

--
seb ( ---@webtrans1.com)
http://webtrans1.com | high-end web design
Downloads: Slide Show, Directory Browser, Mailing List
From: Dj Psycho on
well i dont know what you mean with the java script.. and PHP pff i dont know how it works.. i already searched for java scripts and bulshit diddent find a shuffle playlit param with it..
From: (_seb_) on
Dj Psycho wrote:
> well i dont know what you mean with the java script.. and PHP pff i dont know how it works.. i already searched for java scripts and bulshit diddent find a shuffle playlit param with it..

no, you probably won't find a "javascript playlist shuffle" on Google...
But you can find what a "javascript array" is, and how to pick a "random value in the array", and
how to write the embed code... These are the 3 functionalities you need.

You're trying to do something that requires a little research, maybe a lot if you know nothing about
javascript.

As for PHP, all you need to know, is whether your host supports it or not, and if it does, I could
then help you concretely with some code examples (I don't know javascript that well, but I know PHP).

See if your host supports PHP, and come back here with an answer.

--
seb ( ---@webtrans1.com)
http://webtrans1.com | high-end web design
Downloads: Slide Show, Directory Browser, Mailing List
 |  Next  |  Last
Pages: 1 2 3 4
Prev: RecordsetFind.htm error. Please help
Next: Error