search for: winheight

Displaying 2 results from an estimated 2 matches for "winheight".

2007 Mar 13
3
Prototype question invalid error in IE6
...based on the height of the screen. I''m also using script.aculo.us to make the element move negatively off the left of the window to create a scrolling effect. It works fine in Firefox, but I keep getting an Invalid argument error in IE6. Here my margin code in the header: var winWidth, winHeight, d=document; if (typeof window.innerWidth!=''undefined'') { winWidth = window.innerWidth; winHeight = window.innerHeight; } else { if (d.documentElement && typeof d.documentElement.clientWidth!=''undefined'' && d.documentElement.clientWidth!=0...
2006 Feb 03
0
Contribute: Center extension to Prototype''s Position object
...absolute'', zIndex: options.zIndex }); element._centered = true; } var dims = Element.getDimensions(element); Position.prepare(); var winWidth = self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth || 0; var winHeight = self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || 0; var offLeft = (Position.deltaX + Math.floor((winWidth-dims.width )/2)); var offTop = (Position.deltaY + Math.floor((winHeight-dims.height )/2)); element.style.top = ((offTop != nu...