Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Build an Enhanced MP3 Player for Your Site
Subject:   Presenting audio on web pages
Date:   2005-10-07 20:23:24
From:   mikeh97
I list out the tracks as links; clicking the link opens the mp3 into an iframe on the same page, so there's no window involved.
Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • David Battino photo Presenting audio on web pages
    2005-10-07 21:49:36  David Battino | O'Reilly Blogger [View]

    Sounds like a good idea! Please tell us the URL. Do all links share the same iframe, though? With pop-ups, visitors can compare the MP3s, which is useful for the type of before-and-after examples we do. —David
  • David Battino photo Presenting audio on web pages
    2005-10-07 21:46:35  David Battino | O'Reilly Blogger [View]

    Sounds like a good idea! Please share the URL. —David
    • Presenting audio on web pages
      2005-10-08 19:17:47  mikeh97 [View]

      An example URL:
      http://snowofbutterflies.com/snow/soundbites/sdm/index.html

      • David Battino photo Presenting audio on web pages
        2005-10-08 23:31:08  David Battino | O'Reilly Blogger [View]

        Thanks. That’s very straightforward:


        function play(url) {
        document.getElementById('player').src=url;
        }


        I suppose you could put an iframe after each link if you wanted visitors to be able to compare the audio files. —David