#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Can someone confirm this is correct?


    Trying to embed an mp3 player but it's been doing my head in.

    Can you confirm that the following is sound and correct;



    <head>

    <script src="http:/ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" type="text/javascript">

    <script type="text/javascript">

    var flashvars = {};


    flashvars.folderPath = "ABSOLUTEPATHTOWHEREMP3FOLDERISHOSTED/";

    var params = { scale:'noScale', salign:'tl', allowFullScreen:'true' };

    var attributes = {};

    swfobject.embedSWF("ABSOLUTEPATHTOWHEREMP3.SWFISHOSTED", "mp3", "768", "120", "8.0.0", false, flashvars, params, attributes);

    </script>

    </head>



    <body>

    <div id="mp3" align="bottom">

    <object data="mp3.swf" type="application/x-shockwave-flash" width="500" height="300">

    <param name="movie" value="mp3.swf">

    </div>

    </body>



    ...Assuming that the mp3 folder has been uploaded and hosted with all files in exactly the same place when they were local?
  2. #2
  3. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3164
    Hi, you wouldn't have the inner object tag, swfobject does that for you:

    <div id="mp3" align="bottom"></div>

    You haven't actually said what the problem is.
    Quis custodiet ipsos custodes?

IMN logo majestic logo threadwatch logo seochat tools logo