Article:
  Build a Simple MP3 Player for Your Site
Subject:   images
Date:   2006-02-25 16:41:13
From:   wavvemedia
I like this method of playing mp3's a ton! I am not the most knowledgable of javascript, but I would like to add an image to my .js file that will display in the player above the timestrip.


Can someone help me with this?

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • David Battino photo images
    2006-02-27 11:22:27  David Battino | O'Reilly Blogger [View]

    If you want to use the same image for all MP3s, you might try adding it to the body tag as a background image, as another reader did here:

    http://www.thepiratesofthemississippi.com

    Note that the image will tile, though, so another option would be to use an img tag right below the <body> line:

    winContent += "<img src='myimage.jpg' width='300' height='42'>";


    If you want to use a custom image for each MP3, see my follow-up article "Build an Enhanced MP3 Player for Your Site":

    http://digitalmedia.oreilly.com/2005/10/05/enhanced-web-mp3-player.html
    • images
      2006-02-28 17:17:33  wavvemedia [View]

      Thank you for your help. That worked exactly the way I wanted it to.
    • David Battino photo images
      2006-02-27 11:23:30  David Battino | O'Reilly Blogger [View]

      FYI, the height and width measurements are up to you.