View Full Version : position of menu

08-04-2005, 04:38 PM
I'm trying to center a menu, got it to work (thanks to some help) in Netscape and Firefox, but it still won't center itself in IE or Opera.
link to the 'uncentered' menu (menu visible in all browsers):
link to 'centered' menu (menu is not visible in IE, Opera or Konqueror):

Code that was added to menu2.htm:
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") { winW = window.innerWidth;
winH = window.innerHeight;
if (navigator.appName.indexOf("Microsoft")!=-1) {
winW=document.body.offsetWidth; winH = document.body.offsetHeight;
} }
var jsxO=parseInt((winW-800)/2)
menu[0][0] = new Menu(false, '', jsxO, 0, 17, '#ffffff', '#ffffff', '', 'itemText');

Anyone have any ideas?
MBergen - JavaScript Newbie