| Sign In/My Account | View Cart |
| Article: |
Build a Simple MP3 Player for Your Site | |
| Subject: | Stop When Next Song Played? | |
| Date: | 2007-05-26 10:06:21 | |
| From: | vernaflypaper | |
| I'm using this in a "jukebox" type thing ... people are clicking on another song before the first is finished and sometimes have 3 songs playing at the same time. Is there any way to have the currently-playing song stop when a new link is clicked? Is there any other way around this? | ||
Showing messages 1 through 2 of 2.
Stop When Next Song Played?
Yes. Set all pop-up windows to the same ID. That will cause each new pop-up to replace the last. The newer version of this script (see link at beginning of article) does that. You can do it here by removing the following line:
UniqueID = UniqueID + 1