justme75025
Newbie
Posts: 1
Registered: 6/9/2005
Location: Texas
Member Is Offline
|
| posted on 6/9/2005 at 02:25 PM |
|
|
Wrapper Problems
I have added the following wrapper to the drop down in my menu to change the bg color for each individual drop down list. It works perfectly in
Netscape. It is choking in IE. Since the majority of end users are on IE, this is a real problem. Any ideas?
Function - add to menu.js:
function wrap(text, bg_color, fg_color) {
return('<table cellpadding="0" cellspacing="0" border="0" bgcolor="'+ bg_color + '" width="100%"><tr><td style="padding:
2px; font-family: tahoma, verdana, arial; font-size: 13px; font-weight: bold; color:'+ fg_color + '">' + text +
'</td></tr></table>');
}
Call for function added to menu_items.js:
var MENU_ITEMS = [
['List of items', null, null,
[wrap('item1','#009966', '#ffffff'), 'http://www.google.com'],
[wrap('item2,'#009966','#ffffff'), 'http://www.google.com'],
[wrap('item3','#009966','#ffffff'), 'http://www.google.com'],
[wrap('item4','#009966','#ffffff'), 'http://www.google.com'],
],
];
|
|
|
|