Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Switching objects

    This is my page:

    http://charlesnewmanpubl.com/catalog.html

    Because of an issue I seem to be having with Google Reader mp3 player in Safari, I decided I needed to try another player.

    So here goes. This is my current object:

    Code:
    <object style="border: 0pt none ; float:left;margin-left:215px;display: none; width: 400px; height: 27px;" id="mp3Holder" data="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://cha rlesnewmanpubl.com/audio/mp3s/cd1/Sweethearts_On_Parade_LA1.mp3&amp;autoPlay=tru e"></object>
    This is the new object:

    Code:
    <object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_multi.swf" width="250" height="55">
        <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_multi.swf" />
        <param name="bgcolor" value="#710305" />
        <param name="FlashVars" value="mp3=http%3A//flash-mp3-player.net/medias/another_world.mp3&amp;width=250&amp;he ight=55&amp;showvolume=1" />
    </object>
    And this is my js:

    Code:
    function doButtons(picimage, mp3file, dlURL) {
         var playerSrc = 'http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=';
         var autoPlaySrc = '&autoPlay=true';
              document.getElementById('mp3Holder').style.display = "inline-block";
              document.getElementById('mp3Holder').data = playerSrc + mp3file + autoPlaySrc;
         }
    Can someone tell me how to adjust this to work with the new object?

    Thanks.
    Last edited by rlinsurf; 07-26-2009 at 01:32 AM.

  • #2
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can see that I need to have this filled with the var:

    Code:
    param name="FlashVars" value=
    I just don't know how. I can do a

    Code:
    document.getElementById('mp3Holder').value = playerSrc + mp3file + autoPlaySrc;
    But how do I specify the value for that param?


  •  

    Posting Permissions

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