Embedded object (flash) and zindex.

Last post 12-15-2009 11:58 AM by airic82. 4 replies.

Sort Posts:

  • Embedded object (flash) and zindex.

    09-04-2008, 12:03 AM

    I'm trying to get a div to be displayed over a flash movie.


     

                                <div style="display: block; height: 50px; margin-bottom: -50px; z-index: 100; background-color: Red;">
    Test<br />
    Test2<br />
    </div>
    <div style="z-index: -1; display: block;">
    <object width="776" height="248" style="z-index: -1;">
    <param name="movie" value='<%= Page.ResolveUrl("~/Themes/ChubNelson/Flash/header.swf") %>'>
    <param name="wmode" value="transparent">
    <embed src='<%= Page.ResolveUrl("~/Themes/ChubNelson/Flash/header.swf") %>' width="776"
    height="248" />
    </object>
    </div>
     
     
    Adept Web Studios - Blog and Services
  • Re: Embedded object (flash) and zindex.

    09-05-2008, 8:04 AM
    Answer
    • Participant
      1,663 point Participant
    • x-format
    • Member since 08-26-2008, 9:59 PM
    • Posts 266

    change this:

    theonlylawislove:
    <div style="display: block; height: 50px; margin-bottom: -50px; z-index: 100; background-color: Red;">
    Test<br />
    Test2<br />
    </div>
     

    with:

    <div style="display: block; height: 50px; margin-bottom: -50px; z-index: 100; background-color: Red; position: absolute; width: 250px;">
    Test<br />
    Test2<br />
    </div>
     

    of course, you'd have to change the width to accommodate to your design requirements.

     

  • Re: Embedded object (flash) and zindex.

    09-05-2008, 10:21 AM

     Thanks! That worked!

    Adept Web Studios - Blog and Services
  • Re: Embedded object (flash) and zindex.

    07-17-2009, 6:48 AM

     Thank you, most helpful.  Ie8 requires the width parameter to be set for standards mode.  Would never have thought of that by myself.

  • Re: Embedded object (flash) and zindex.

    12-15-2009, 11:58 AM
    • Member
      2 point Member
    • airic82
    • Member since 07-06-2008, 10:27 PM
    • Posts 60

    Is there any way to do this without absolute positioning? I'm using relative positioning so that the flash object is centered on the screen?

    Thanks,
    Eric 

Page 1 of 1 (5 items)