mp3 - click, play but not change page - how?

J

Just Allan

Hi folks... I want to code some ebay CD auctions. I'd like to list
the songs that link to 15-20 second samples. The buyer clicks on song
#1 and it opens their mp3 player and plays it. But, I don't want it
to shift from the auction page (so they don't have to keep hitting the
back button).

I've been searching for how to do this, but I just can't get the
search terms limited enough and am getting thousands of sites without
the info I need.

Can anyone help?

Allan.
 
M

Mitja

Just Allan said:
Hi folks... I want to code some ebay CD auctions. I'd like to list
the songs that link to 15-20 second samples. The buyer clicks on song
#1 and it opens their mp3 player and plays it. But, I don't want it
to shift from the auction page (so they don't have to keep hitting the
back button).

You can't force it. It's THEIR computer, it depends on their settings. You
can do two things:
1) Link to mp3 files and instruct users how to set their browsers in order
to get the songs played directly. (suggested)
2) Embed a Windows media player in your page and use JaavScript to play the
selected songs. This is _much_ less portable and user-friendly.
 
A

Amos E Wolfe

Just Allan said:
Hi folks... I want to code some ebay CD auctions. I'd like to list
the songs that link to 15-20 second samples. The buyer clicks on song
#1 and it opens their mp3 player and plays it. But, I don't want it
to shift from the auction page (so they don't have to keep hitting the
back button).

Create a link to a file with the extension .m3u - this file is a plain text
file containing only the full URL of the mp3 file, i.e.
http://www.mydomain.com/filename.mp3 and nothing else.

When the link is clicked (assuming the user has software) the mp3 player
software, Winamp, Windows Media Player, etc will open the mp3 file,
streaming it - i.e. playing as it downloads.

For an example see: http://www.doctorbusker.com/frames/testmp3.html

-=# Amos E Wolfe #=-
 
J

Just Allan

Hi folks... I want to code some ebay CD auctions. I'd like to list
the songs that link to 15-20 second samples. The buyer clicks on song
#1 and it opens their mp3 player and plays it. But, I don't want it
to shift from the auction page (so they don't have to keep hitting the
back button).

I've been searching for how to do this, but I just can't get the
search terms limited enough and am getting thousands of sites without
the info I need.

Can anyone help?

Allan.

Much thanks to both!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top