|
|
 |
RE: FN-FORUM help with divs
date posted 26th September 2002 17:12
hmmnnn...... you could use javascript to find the centre of the screen by
grabbing height/width, dividing by 2 and then subtract an offset value to
position the menu?
quick and (very) dirty to offset by width/height of layer:
function layerSetup() {
cLayer = new layerObject('menu',
available_width/2-350,available_height/2-200);
}
onLoad="if(is.ns4 ||is.ns6) {
available_width=innerWidth;
available_height=innerHeight;
layerSetup();
} else if(is.ie4 || is.ie5) {
available_width=document.body.clientWidth;
available_height=document.body.clientHeight;
layerSetup();
}"
cheers
neil.
---------------------------------------------------------
Hello,
I'm building a drop menu system with divs using the visibility:
hidden/visible styles but...
I'm using relative positioned divs for the menu and they're stretching my
menu height, anyway I can stop this. I can't use absolute positioned divs as
the design calls for a central area (or can I?)
you can have a look at:
http://www.denial.pwp.blueyonder.co.uk/e-essentials/default.asp
hover over the demo link to see the menu. Only does it in IE by the way!!
Thanks!
Mike
|
 |
|