W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re: How to acheive a nav bar without tables.

From: Ben Freedman <liamB@redrival.net>
Date: Sun, 14 Oct 2001 23:50:06 -0700 (PDT)
To: www-style@w3.org
Message-Id: <20011015065006.762443ECC@sitemail.everyone.net>


--- John Snelson <john.snelson@wadh.ox.ac.uk>
> wrote:
>Ok, so I've got my nav bar up and working on both mozilla and netscape,
>but there's just one teeny problem. When netscape refreshes the window,
>all the content apart from my nav bar dissappears. And even the nav bar
>isn't formatted as it was before...
>
>I'm not liking netscape one bit right now.
>
>John

I'm suspecting that what you mean is that you have an external style sheet and that you lose your CSS when you resize the window in Netscape.  This is an extreme nuisance and, as far as I know, can only be dealt with by the inclusion of a little JavaScript in the head of your file, something like the following:

<script language="JavaScript" type="text/javascript">
<!--

var isNav;

if (parseInt(navigator.appVersion) == 4) {
	if(navigator.appName == "Netscape") {
		isNav = true;
	}
}

function handleResize() {
        location.reload();
        return false;
}

if(isNav) {
        window.captureEvents(Event.RESIZE);
        window.onresize = handleResize;
}

//-->
</script>



Ben Freedman, BFA, MA
http://hce.freeshell.org

_____________________________________________________________
Get email for your site ---> http://www.everyone.net
Received on Monday, 15 October 2001 02:50:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:11 GMT