advertisement

Article:
  Build a Simple MP3 Player for Your Site
Subject:   onLoad for mp3 player
Date:   2006-12-27 04:31:07
From:   jim7002
I've tried several different methods to open the player using the onLoad (instead of onclick) prompt but can't get it to work...any ideas?


This is nice mp3 plyaer I might add as well.


Thanks

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • David Battino photo onLoad for mp3 player
    2006-12-27 05:08:38  David Battino | O'Reilly Blogger [Reply | View]

    Jim: Two common errors people make include omitting the link to the external JavaScript file and not "escaping" apostrophes in song titles. (Raw apostrophes will break the script, so you need to precede them with backslashes. See the demo file in the download.)

    Popping up the player automatically when the page loads could annoy visitors, but it should be possible. I used a similar technique at BambooSoul.com to play a random clip from the artist's CD every time someone visits.