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: Can't add an image?

Posts: 1
Registered: 4/27/2005
Member Is Offline
posted on 5/13/2005 at 07:03 AM Reply With Quote
Can't add an image?

My menu works fine before I try to add an image using the
"wrap_child" function. Code shown below.
But when I add the wrapper code the menu does not show on the web page. I guess because of a script error. Any ideas why?
If I use this code without the wrapper stuff it works fine.

var states = ['mout', 'mover', 'mdown'];

var MENU_ITEMS0 = [
['Computers', null, null,[wrap_child('Software', 'images/smallbullet.gif'), null, null], ['Hardware', null, null,['Games', null, null]]]
function wrap_child (text, icon) {
var res = new Array;
for (var i=0; i<states.length; i++)
res = '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%">
<table cellpadding="3" cellspacing="1" border="0" width="100%" height="24">
<td style="padding: 3px valign="middle">
&nbsp;' + (icon != null ? '<img src="icon" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 12px;">' + text + '</span></font>
return res;
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Alignment & Multimenus
Unlimited Depth
Item sizing and positioning
Inner HTML
Frames, Targeting
Static Positioning
Free Download Menu Builders
Online Builder
Product Documentation Documentation
Documenation Page
Tigra Menu PRO FAQ
Change Log
Menus Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart

Go To Top

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