|
|
 |
RE: FN-FORUM help with divs
date posted 26th September 2002 18:57
Thanks Neil, won't be needing it this time around but I might hang on to it
for reference!
Mike
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] Behalf Of
[EMAIL REMOVED]
Sent: 26 September 2002 17:06
To: [EMAIL REMOVED]
Subject: RE: FN-FORUM help with divs
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
============================================================
= Advanced web hosting solutions from Saffas. =
= Unix, PHP, mySQL, SSL, Perl, Control Panel, 24/7 access. =
= Why pay more for less? http://www.saffas.com =
============================================================
Sponsor the forum for as little as £1 at:
http://www.freelancers.net/cgi/sponsor.cgi?action=show
Advertise with Freelancers.net +Additions+
http://www.freelancers.net/advert.php
Freelancers and Freelance Jobs:
http://www.freelancers.net
Forum FAQs:
http://freelancers.netrickery.com
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
|
 |
|