Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Wrapper Problems
justme75025
Newbie

Posts: 1
Registered: 6/9/2005
Location: Texas
Member Is Offline
posted on 6/9/2005 at 02:25 PM Reply With Quote
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'],
],
];
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Tigra Menu
Product Demonstrations Live Demos:
Traditional Blue
White Steps
Inner HTML
All Together
Frames Targeting
Free Download Free Download
Free Download Menu Builders
Online Builder
Builder for Windows
Product Documentation Documentation:
Documenation Page
Change Log
Menus Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004