MattyMarce
02-17-2004, 03:30 PM
I am designing drop down menus for my sites using a var that is an array. the code looks as follows:
var MENU_ITEMS_MULTIPLE1 =
[
{"pos":[10,10], "itemoff":[0,109], "leveloff":[21,0],
"style":STYLE, "size":[22,110]},
{code:"Home", url:"/default.aspx"},
{code:"Calendar", url:"/calendar.aspx"},
{code:"School Tools",
sub:[
{"itemoff":[21,0]},
---- Rest of submenu here ---------
Where "pos" is the upper left corner of the menu. My question is: Is there anyway that I can code this so that I cna use percentage instead of pixels determining where to draw the menus so that the menu will not slide around on different browsers with different configurations? Thanks
var MENU_ITEMS_MULTIPLE1 =
[
{"pos":[10,10], "itemoff":[0,109], "leveloff":[21,0],
"style":STYLE, "size":[22,110]},
{code:"Home", url:"/default.aspx"},
{code:"Calendar", url:"/calendar.aspx"},
{code:"School Tools",
sub:[
{"itemoff":[21,0]},
---- Rest of submenu here ---------
Where "pos" is the upper left corner of the menu. My question is: Is there anyway that I can code this so that I cna use percentage instead of pixels determining where to draw the menus so that the menu will not slide around on different browsers with different configurations? Thanks