Play Music on Click

B

brelade

I have inserted the following code to allow visitors to have the option to
play music if they wish.
However, i brings up media player, which covers the whole page, to view the
page you have to minimis it to get rid of it and it remains playing when i
navigate away from my photo gallery page.

Is there a way to have a link to play music, which only plays while on that
page, & dosent bring up the media player programme.
I have tried this code, which works with problems above, also i have used a
normal hyperlink, both bring up the media player,

<a target="_blank"
href="http://www.breladecockerspaniels.co.uk/music/jamesblunt.mp3">Click here
to play music</a>

Cheers
 
M

Mike Koewler

Brelade,

I'm not sure you will have to worry too much - even on Broadband it's
going to take three minutes or longer to download.

You could consider using a slightly different way. Create a file called
music.m3u or something (just make sure it ends in .m3u or maybe .m4u)
Place one line of text:
http://www.yourwebsite.com/filename.mp3
substituting where appropriate. Then, use this as your hyperlink. When
clicked on, the visitor will still get a box asking what to do with it
but the music will start playing in just a couple of seconds.

Mike
 
B

brelade

Mike.
I tried your suggestion, Many thanks for your reply, but it still brings up
Window Media Player.
Every way i have tried brings up the above.
No worries mate, it was just a nice to have anyway.
Cheers
 
M

MIchaeldane

Try something like this, it should make the player invisible.

<a href="yourmusicfile.mid" width=â€2†heightâ€0â€>Play background music</a>
 

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

Top