Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6101183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:28:16+00:00 2026-05-23T13:28:16+00:00

I don’t know if this exact question has been asked, if so I am

  • 0

I don’t know if this exact question has been asked, if so I am sorry. I can say in my defense that i’ve checked up about 10 question with a familiar title.

The problem is this:

<div id= "">
<object>
   <embed>
      <img src="" />
   </embed>
</object>
</div>

One of the containers object or embed are positioned absolutely in the body tag. Depending on which browser. For IE 6 7 8 embed is potioned absolutely. For others the object.

Trial and error brought me to this solution and it works very good in all browsers thank god.

Now i am adding a button, which is represented by IMG tag, and i also want to position it absolutely (that is relativly of my movie). In all browsers (except IE 6 7 8 ) this works with the following CSS:

#closeButton
{
    position:absolute;
    right: 10px;
    top: 10px;
    z-index:400;
    /*background: none;*/
    /*display:none;*/
}

Since my object is hidden until some point, the button is also hidden in it/ with it.

Not in IE as you may guess. There, not only the button is visible, but relative of the WINDOW!
Meaning miles away from the movie.

I added a sort of a hack an use JS to hide/show the button the CSS now is:

#closeButton
{
    position:absolute;
    right: 10px;
    bottom:55px;
    z-index:400;
    background: none;
    display:none;
}

And it took the right place and hides and shows with the movie. Guess what BUT, it gets tricky to click it=) Because whenever i put the mouse over the button, movie triggers an event onRollOut and they both dissapear =) hilarious

QUESTION: Why does my button position relative of the window? Or maybe the problem is hiding some place else?

PS I am using relative/absolute positioning to emulate crossbrowser fixed positioning so i can’t give it up. But the button’s behabiour is unacceptable=) And it will be tricky to place it directly inside the movie, i hope it could be done without it. Although it’s an easier way. but more work for every movie.

I’ll repeat the problem is IE-only, in all other browser the button behaves.

The whole code

http://pastebin.com/fZvWyVsF

http://pastebin.com/zJBhNeVB

Update:

I tried following advice about positioning the wrapper, with some modification. Now I have this code

<div  id="bigBanner">
        <OBJECT width="100%" height="90"> 
        <PARAM NAME="quality" VALUE="high">
        <PARAM NAME="wmode" VALUE="opaque" >
        <PARAM name="AllowScriptAccess" VALUE="always" >
        <EMBED  src="big.swf" width="100%" height="90" wmode="opaque" quality="high" AllowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
        </EMBED>
        <noembed></noembed>
        </OBJECT>
        <div id="closeButton"><img src="close-box.jpg"  onClick = "HideAll();" title="Закрыть"/></div>
    </div>

Having those styles:

http://pastebin.com/dCULjHva

It shows the button really well. But again it (button) keeps “running away in IE”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:28:16+00:00Added an answer on May 23, 2026 at 1:28 pm

    Instead of absolutely positioning the object/embed, place it in a wrapper and absolutely position said wrapper. I’d also place the button in the wrapper so you can position it relatively, but still benefit from the absolute positioning of the outer container.

    <div id= "wrapper">
    <object>
       <embed>
          <img src="" />
       </embed>
    </object>
    <div id="button">foo</a>
    </div>
    
    #wrapper{position: absolute;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know if this has been asked before, so point me to another question
I don't know if this has been asked before, but what i'd like to
Don't know if this has been answered before. Have custom routes to users. If
Don't know if anyone can help me with this or if it's even possible.
I don't know if this question is trivial or not. But after a couple
Don't know why but I can't find a solution to this. I have 3
Don't know if there is a better way to do this, so that is
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,
Don't know if I worded the question right, but basically what I want to
(Don't know if this is strictly on-topic, but I don't see any better Stack

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.