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 71147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:50:32+00:00 2026-05-10T19:50:32+00:00

My code works great in IE8, Firefox and Safari. But it doesn’t work properly

  • 0

My code works great in IE8, Firefox and Safari. But it doesn’t work properly in Opera. What happens is that the DIV is hidden but the space occupied by the DIV remains to appear in my web-page.

<div  style=' z-index:-1;height :380; width:760; position:relative; text-align:center' id='new-add'>     <object id='banner-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'      codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'          width='769' height='382' top='0'>      <param name='movie'  value='exp.swf' />      <param name='quality' value='high' />      <param name='bgcolor' value='#ffffff' />      <param name='wmode' value='transparent' />     <embed src='exp.swf' wmode='transparent' quality='high' bgcolor='#ffffff' width='780' height='382'  name='mymoviename' align='' type='application/x-shockwave-flash'      pluginspage='http://www.macromedia.com/go/getflashplayer'>      </embed>      </object>  </div>  <div  id='fechar-link' style=' font-family: Verdana,Arial,Helvetica,sans-serif; font-style: normal;      font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none;      font-stretch: normal; text-decoration: none; text-align:center' >     <a href='#' onclick='         document.getElementById('new-add').style.height =0;         document.getElementById('banner-flash').style.height =0;         document.getElementById('fechar-link').style.height  = 0;          document.getElementById('new-add').style.visibility ='hidden';         document.getElementById('banner-flash').style.visibility ='hidden';         document.getElementById('fechar-link').style.visibility ='hidden';  '  >Close</a>         </div> 

What do I need to do, so the space occupied by the DIV disappears?

Thanks

  • 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. 2026-05-10T19:50:32+00:00Added an answer on May 10, 2026 at 7:50 pm

    You might try the style.display property:

    Hide

    document.getElementById(‘YourElem’).style.display = ‘none’;

    Show

    document.getElementById(‘YourElem’).style.display = ”;

    EDIT: Took PorneL comment into acocunt in this answer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to code below - works great in IE and Opera, but does
I have the following code that works great for row click, but I want
I have some very basic semaphore code that works great on Linux, but cannot
This code works fine in IE8/7 and Firefox... But in Google Chrome i got
The following code works great in IE, but not in FF or Safari. I
This code works great for generating thumbnails, but when given a very large (100MB+)
The following bit of code works great in everything but IE. In IE, the
The code below works great. I have a MySQL database that contains book titles
I have code that works great for adding a button to the toolbar: NSArray*
I'm using such code which works great on IE and Firefox: .tytulmalykom { color:#666666;

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.