www.webdeveloper.com
Results 1 to 3 of 3

Thread: Owerflow: visible problem in IE

  1. #1
    Join Date
    Jan 2010
    Posts
    3

    Unhappy Owerflow: visible problem in IE

    Hello!

    I need som serious help with our old beloved friend Internet Explorer.

    I have this css popup and when it pops up on a button click I want the scroll function to disapear, and I understand this is done most easily with owerflow.

    So when it pops up I want to disable the scroll function, but when you close the popup I want it to allow scrolling again, and I've done this woth this code:

    Code:
    function closeAd() {
    document.body.style.overflow =  'visible';
    document.getElementById("popad").style.display="none"; 
    }
    function openAd() {
    document.getElementById("popad").style.display="block"; 
    document.body.style.overflow =  'hidden';
    }
    So that works well in FF (of course) but in IE the scroll won't come back

    Any ideas?

    Thnx!

    //Tovedal

  2. #2
    Join Date
    Jul 2005
    Location
    USA
    Posts
    909
    change

    document.body.style.overflow = 'visible';

    to

    document.body.style.overflow = 'auto';
    Bitter web veteran

  3. #3
    Join Date
    Jan 2010
    Posts
    3
    Magical, thank you sir!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles