Results 1 to 4 of 4

Thread: Div Above OBJECT

  1. #1
    Join Date
    Jan 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Div Above OBJECT

    Hi,

    Is there a way to place a div on top of OBJECT Type elements?
    I have an active X grid control in OBJECT Tag, I want to display a div on top of this grid. Z-Index didnt work.

    Thanks

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <div>my div tag. hi.</div>
    <embed>
    Also, it would help if you posted the code you're trying to use.
    - Mike

  3. #3
    Join Date
    Jan 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think I was not clear, the following is what I'm trying to do.

    In my aspx page I have a reference to a js file, which has the following code.
    var gridStr = '<OBJECT classid=clsid:some value></OBJECT>'
    document.write(gridStr);

    This will display a grid (active x) in the browser. I have multiple buttons on the page, when a user clicks on any button I want to display a progress bar image on top layer above this grid (i placed the image in div).

    Whatever Z-Index I give for the div, it always display either above the grid or below the grid, not on top as a layer.

    Let me know if this is not clear, I'll try to post a screen shot

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you using either absolute or relative positioning for the div? If not, I would thing you may have to or, at the very least, get creative with its margins. Also, the object must be capable of supporting elements being viewed as obscuring it. In flash, this is accomplished by setting the wmode to transparent. With other types of objects, there may or may not be a way to do this or there may be no need for anything special for it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •