NYCPHP Meetup

NYPHP.org

[nycphp-talk] RE:; Include destination url to SWF using SWObject

Mark Armendariz lists at enobrev.com
Fri Mar 16 04:00:36 EDT 2007


On 3/16/07, Aniesh joseph <anieshjoseph at gmail.com> wrote:
> Hello
>
> I download the zip file from  http://blog.deconcept.com. But it do not work.
>
>
>      so.write("flashcontent");
> </script>
>
>
>  <div id="flashcontent">
>   This text is replaced by the Flash movie.
>  </div>
>
>
> Regards
>  Aniesh Joseph
>


haven't used swfobject in quite some time, so I'm not sure of the
internals or usage, but you may have to put the so.write call _after_
the flashcontent div is defined.  You can probably put it right after,
at the bottom of the page or use an onload event of some sorts to run
it after the page has loaded.

Try this:

<html>
    <head>
        <script type="text/javascript" src=" swfobject.js"></script>
        <script type="text/javascript">
            var so = new
SWFObject("images/upload/so_tester?clickTAG='http://www.biokerala.org?id=10'",
"mymovie", "468", "60", "7", "#336699");
            so.useExpressInstall('expressinstall.swf');
        </script>
        <title>Flash</title>
    </head>
    <body>
        <div id="flashcontent">
            This text is replaced by the Flash movie.
        </div>

        <script type="text/javascript">
            so.write("flashcontent");
        </script>
    </body>
</html>

Mark Armendariz



More information about the talk mailing list