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

    Join Date
    Jan 2012
    Rep Power

    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;


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

    <script type="text/javascript">

    var flashvars = {};


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

    var attributes = {};

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




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

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

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



    ...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
    Legion of Dynamic Discord
    Rep Power
    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