Advertisement

06.30.2008 at 12:34PM PDT, ID: 23528073
[x]
Attachment Details

Black Transparent Cover Layer, InnerHeigh problemst IE

Asked by Isisagate in JavaScript, Cascading Style Sheets (CSS), Internet Explorer Web Browser

I am trying to get a black cover layer to work correctly in IE, works fine in FF.  The problem is I am using a 28" monitor with a 1900x1200 resolution.. and the page is only about 600px tall inside the window... In IE the black cover screen is only coming down to the end of the content. I fix the issue in FF by comparing the InnerHeight of the window to the content height and using the bigger number to size the cover layer however in IE I can't find a function that will provide the equivalent to innerHeight...  Anyone got any ideas how to get the DIV to 100% height and width for IE in this scenario.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
function getPageSizeWithScroll(){
 
 
	if (window.innerHeight != undefined && window.scrollMaxY  != undefined) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	}else if(window.innerHeight  && document.body.scrollHeight > document.body.offsetHeight){
		yWithScroll = (window.innerHeight >document.body.scrollHeight)?window.innerHeight:document.body.scrollHeight;
		xWithScroll = (window.innerWidth >document.body.scrollWidth)?window.innerWidth:document.body.scrollWidth;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	return arrayPageSizeWithScroll;
}
[+][-]06.30.2008 at 05:56PM PDT, ID: 21904212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 07:58PM PDT, ID: 21904733

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Cascading Style Sheets (CSS), Internet Explorer Web Browser
Sign Up Now!
Solution Provided By: mreuring
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.01.2008 at 04:49PM PDT, ID: 21912469

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 06:27PM PDT, ID: 21912809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 05:27AM PDT, ID: 21915566

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 05:38AM PDT, ID: 21915663

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 05:48AM PDT, ID: 21915771

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:19AM PDT, ID: 21923787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 09:40AM PDT, ID: 21927103

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628