SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Music to First Page

    For whatever reason I am not able to add music to the index page, and would appreciate some help. Tried the <bgsound src="title.wma"> and nada....

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    Its not necessarily a bad thing that you cant get music on the page

    anyway, try the suggestions on this page: http://www.hypergurl.com/music.html
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes, I have heard this a thousand times. My wife would like it however. Are any of you married?

    The site is www.TheInquisitiveEye.com

  4. #4
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Have a short snippet of bach that I want to play...can someone suggest the code?

  5. #5
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    well the file you are trying to load is a wma and will most likely only play in the Windows Media player. See if you can locate a midi file of the piece.

    This wont work
    Code:
    <META NAME="keywords" content="Fay Stout, french love affair, Nature, Travel, Butterfly, France, Food, Photography">
    <a href="bach.wma">
    </head>
    however
    Code:
    <META NAME="keywords" content="Fay Stout, french love affair, Nature, Travel, Butterfly, France, Food, Photography">
    </head>
    
    <body>
    <embed src="yourmusic.mid"> 
    <noembed> <bgsound src="bach.mid"> </noembed>
    Should work.

    And yes, I am married and yes, I sympathise
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  6. #6
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Didn't work... Why can't I use BGSOUND SRC?

  7. #7
    SitePoint Zealot
    Join Date
    Oct 2008
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Barnum View Post
    For whatever reason I am not able to add music to the index page, and would appreciate some help. Tried the <bgsound src="title.wma"> and nada....

    Barnum, why use music on the website? can you tell me is that can improve the sites quality?

  8. #8
    SitePoint Evangelist Barnum's Avatar
    Join Date
    Oct 2008
    Posts
    418
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You know...

    Just forget it.

  9. #9
    SitePoint Addict
    Join Date
    Feb 2007
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All browsers but Safari (and probably chrome) support <object> for sound. Safari needs <embed>.

    It's a Bad Idea, but if you want to, that should get you started in the right direction.

    <BGSOUND> has never worked in any browser except IE, IIRC. It has *never* been part of the HTML spec.

  10. #10
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would never add music to your page that starts automatically. Nothing creates as much of a bad user experience. A user should have the option of hearing music by choice.
    Download Software - Your place to Download Software
    PPC Management - Premium SEM, PPC Management Service
    Web Design - Award Winning Website Design

  11. #11
    SitePoint Addict SilentBobSC's Avatar
    Join Date
    Mar 2005
    Location
    South Carolina
    Posts
    226
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Knicksfan77 View Post
    I would never add music to your page that starts automatically. Nothing creates as much of a bad user experience. A user should have the option of hearing music by choice.
    Yes, but as he stated, his wife wants it and as married folks know, that's all that matters. Personally, I would opt for the MIDI file, as WMAs will cause issues with people not using WindowsMediaPlayer. Also, keep in mind that if your wife's site is going to be popular / commercial in any way, using copyrighted music is a great way to make some new friends at the legal department of the RIAA . Another option would be to add a flash player for MP3 files, try http://flash-mp3-player.net/ I've used that for several smaller projects with decent results.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •