[SWFObject] SWFObject in Tables

Chris Hahn chris at kimosabe.net
Mon May 1 22:59:44 PDT 2006


Ahhh, I figured it out. You are correct in nesting the DIV tag in the table,
but in order for it to stay there, you have to modify the layer in the CSS
section so that it's static instead of absolute:

 

#intro {

            position:static;

            left:443px;

            top:26px;

            width:500px;

            height:410px;

            z-index:2;

 

and then it stays put.

 

Thanks!

 

Chris Hahn

  _____  

From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Aran Rhee
Sent: Monday, May 01, 2006 9:52 PM
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] SWFObject in Tables

 

Chris.

 

It is my understanding that swfObject needs a div tag to overwrite flash
content to. You can just place a div inside your table cell like the below:

 

<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">
    <tr>
      <td align="center" valign="middle">
    <div id="flashcontent">
     If you don't have the required Flash Player Version, you will see this
text as alternative content
    </div>
 
    <script language="JavaScript" type="text/javascript">
     // <![CDATA[
      var fo = new FlashObject("a.swf", "swf", "968", "576", "8.0.0",
"#ffffff");
      fo.write("flashcontent");
     // ]]>
    </script>
   </td>
    </tr>
  </table>

 

Cheers,

 

Aran

 


  _____  


From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Chris Hahn
Sent: Tuesday, 2 May 2006 2:29 PM
To: swfobject at lists.deconcept.com
Subject: [SWFObject] SWFObject in Tables

Has anyone got SWFObject working with tables at all? I'm working on an
elastic layout where the tables layout keeps itself centered as you resize
the browser, but SWFObject is looking for Div tags and those are gone when I
convert all of the DW layers to tables. Clues anyone?

 

::chris::

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060501/195ebea9/attachment-0005.htm>


More information about the Swfobject mailing list