We've expanded our news coverage and improved our search! Visit news.oreilly.com for the latest or search for all things across O'Reilly!
advertisement

Article:
  Build a Simple MP3 Player for Your Site
Subject:   Just a stop button
Date:   2007-05-04 10:25:41
From:   songsteev
I'm doing the simple thing of having an mp3 start on load of a page. I don't really want a media player to appear, but I would like to have just a stop button on my page, saying "Stop Music". Ideas?
thanx
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • David Battino photo Just a stop button
    2007-05-28 13:11:10  David Battino [Reply | View]

    Try embedding the player in a DIV and then setting the Stop link to remove the DIV. (Google "toggle DIV visibility" for the code.)

    Playing a sound automatically can be mighty intrusive, though.