Homepage Music Player Help Needed Please

Discussion in 'Graphics & Multimedia' started by geekazoid, Jun 8, 2006.

  1. #1
    Ok on the homepage of my website i would like music to be automatically played as soon as the page is loaded ok. But i know how annoying that can be when you come to the site often so what i would like is for it to play automatically on the first visit and if the visitor turns it off then it wont play automatically on there next visit unless they turn it on again.

    Did everyone get that, My explaining may not have been too clear.
    Thankyou in advance xx
     
    geekazoid, Jun 8, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need a button saying "turn off music". When a user clicks the button use javascript to set a permanant cookie to say that music is not required.

    Before playing music you can then check for this cookie and either play the file or not.
     
    mad4, Jun 8, 2006 IP
  3. geekazoid

    geekazoid Peon

    Messages:
    208
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im sorry im not very hot on flash can anyone point me in the direction of a tutorial or explain to me how to do this ?
     
    geekazoid, Jun 8, 2006 IP
  4. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello, geekazoid.

    > You need a button saying "turn off music". When a user clicks the
    > button use javascript to set a permanant cookie to say that music is
    > not required.

    > Before playing music you can then check for this cookie and either
    > play the file or not.

    A JavaScript cookie is the way to go if you don't want your users to
    be annoyed by the music. You can dispose of the button and just send
    them the cookie the first time they load your page. You can find an
    introduction to cookies here:

    http://www.great-web-info.com/pe580.html
     
    TechnoGeek, Jun 11, 2006 IP
  5. 26global

    26global Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm all for music but having sound start playing even on the first visit usually makes it my last visit.

    I would suggest giving visitors the option to play your music if they want to. Don't force it on them. And if your site isn't a band website I would suggest leaving the music out altogether. I hope that doesn't break your heart.

    If you are looking for a real sweet mp3 player then visit http://www.wimpyplayer.com/ - I have used this on a few websites and it works great. Oh and I never have the music automatically start playing. And yes it was for bands sites.

    Good luck.
     
    26global, Jun 11, 2006 IP