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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:36:55+00:00 2026-06-04T00:36:55+00:00

I have a page which uses the jQuery Colorbox plugin. My JS for the

  • 0

I have a page which uses the jQuery Colorbox plugin. My JS for the page is:

<script type="text/javascript">
    $(document).ready(function(){

    $(document).bind('cbox_open', function() {
        $("html").css("overflow", "hidden");
    });
    $(document).bind('cbox_closed', function() {
        $("html").css("overflow", "visible");
    });

        $(".iframe").colorbox({innerWidth:780, innerHeight:"90%", iframe:true});
     });
</script>

The intent of the first two code pieces is to disable the vertical scroll bar on the parent page behind the colorbox when open. This works without issue. Additionally, when the colorbox is closed, the vertical bars should re-appear. The latter works in all browsers except IE 7.

I know it reaches the code without any errors in code for two reasons:

1 – testing an alert works within “$(document).bind(‘cbox_closed’, function() {“

2 – it works in every other browser and version of IE 8+.

I have changed the overflow value to “scroll” but this adds an unnecessary horizontal scroll to the page as well which is undesired.

Is there a different way to make overflow or vertical scroll appear in ie7 than listed?

  • 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-06-04T00:36:56+00:00Added an answer on June 4, 2026 at 12:36 am

    In my experience, this won’t work in ie7 on the html or body elements. I recommend wrapping your entire document in a <div> and setting it to height:100% and width:100% and controlling overflow with that div instead. Additionally, (and this may be a matter of taste) you should be using removeAttr('style') on the element to return its state rather than changing the css to overflow:visible.

    As a side note, this method resolves the issue for iPad as well, which suffers from the same scrolling problem as ie7

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

Sidebar

Related Questions

Currently I have the below jQuery which uses the colorbox plugin http://colorpowered.com/colorbox/ $(document).ready(function(){ $(.altbgcolor).hover(function()
I have a page which uses jQuery document.ready , to populate the content of
I have a div on my home page which uses a jQuery plugin called
I have a web page, which heavily uses jquery.address plugin. Now I need to
I have a web page which uses in PHP and a jQuery DataTable to
I am new to jQuery / AJAX. I have a page that uses colorbox
I have a site which uses a lot of JavaScript (mainly jQuery) and I
I have created an HTML page which uses simple CSS (no javascript) for menu
I have a page which uses jquery's ajax functions to send some messages. There
I have a page which uses jquery's ajax functions to send some messages. There

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.