Results 1 to 3 of 3

Thread: ie8 does not immediately utilize js

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,137
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default ie8 does not immediately utilize js

    Hi,

    The script is designed with help from this forum to vertically align the scripture verse between the logo and the tabs below.

    Please excuse the posting of a link rather than the specific code involved, but I have the following page http://www.sovgraceopc.org/test2.php that seems to work in the browsers I have on my desktop, but in ie8 the script does not seem to work unless the browser is resized.

    Is there a way to get this to work immediately in ie8 without having to resize the window first?
    To choose the lesser of two evils is still to choose evil. My personal site

  2. #2
    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

    Code:
    <script type="text/javascript">
    onload = onresize = function(){
    	var r = document.getElementById('resizable');
    	r.style.height = r.parentNode.offsetHeight - r.parentNode.getElementsByTagName('div')[0].offsetHeight + 'px';
    };
    </script>
    <!--[if IE]>
    <script type="text/javascript" defer>
    onload();
    </script>
    <![endif]-->
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    james438 (09-01-2011)

  4. #3
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,137
    Thanks
    96
    Thanked 98 Times in 96 Posts

    Default

    Awesome, thanks
    To choose the lesser of two evils is still to choose evil. My personal site

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
  •