46 users online (1 members and 45 guests)  


  Results 1 to 3 of 3

Related

  1. Embed Windows Media Player w/Preview    Forum: HTML Forum
    Replies: 2
  2. Replies: 6
  3. Media player coding help    Forum: HTML Forum
    Replies: 2
  4. Media Player Embed Code    Forum: CSS Forum
    Replies: 1
  5. Media Player choices for visitors    Forum: HTML Forum
    Replies: 6
  1. #1
    imperial29's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    1

    Question EMBED Media Player Question

    Is there a way to get it to pic a media file at random from that directory? Like if i had like 5 Mp3's in one directory it would randomly pic one. I really hope this is possible. If i can do it using this the media player embed code, is there another way? Thanks

    Imp

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    I dont think EMBED can do this. probably your best bet would to use a server-side langauge like PHP or ASP to read the files from the directory and pick one at random.

    I do something similar here for a random signature -

    http://www.quietdean.com/random.php?mode=showme

    Its in PHP.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Enigma's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Nov 2000
    Posts
    426
    Some of the Javascript that I use here to play a random midi on mouseover might be useful:

    http://badgirlz.net/wizzf.html

    Warning: the page may take a long time to load.



Tags for this Thread