Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » add flash with swfobject

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2235 Views
  • ojalà
    Avatar
    Community Member
    87 Posts

    add flash with swfobject Link to this post

    HI!
    I read some post about add flash. Here http://code.google.com/p/swfobject/wiki/documentation tell to use swfobject. so I download the package but where I put that? Then how can I use it?The guide say to add flash in this way:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" lang="en">
    <head>
    <title>SWFObject 2.0 - passo 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>

    <script type="text/javascript">
    swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
    </script>

    </head>
    <body>
    <div>

    <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">

    <param name="movie" value="myContent.swf" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
    <!--<![endif]-->
    <p>Contenuto alternativo</p>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </html>

    but in forum I foun also this code row:
    <div id="HeaderZdjecia">
    </div>
    <script type="text/javascript">
    var so = new SWFObject("header.swf", "mymovie", "950", "400", "9", "#ffffff");
    so.addParam("wmode", "transparent");
    so.addVariable("xmladress", "menurel.xml");
    so.addVariable("id", "2");
    so.addVariable("fv", "2");
    so.write("HeaderZdjecia");
    </script>
    So what I must do?

  • ojalà
    Avatar
    Community Member
    87 Posts

    Re: add flash with swfobject Link to this post

    I use first solution but I see nothing, only a withe space

    2235 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.