This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft Publisher > February 2007 > Play Music on Click





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Play Music on Click
brelade

2007-02-19, 6:17 pm

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
--
brelade
Mike Koewler

2007-02-19, 6:17 pm

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

brelade wrote:

> 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

brelade

2007-02-19, 6:17 pm

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
--
brelade


"Mike Koewler" wrote:

> 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
>
> brelade wrote:
>
>

MIchaeldane

2007-02-19, 6:17 pm

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

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

"brelade" wrote:
[color=darkred]
> 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
> --
> brelade
>
>
> "Mike Koewler" wrote:
>
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews