struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Dollin <Ed...@BLUE-MOOSE.NET>
Subject RE: StrutsMenu Coolmenu4 images
Date Wed, 19 Mar 2003 15:21:21 GMT
I would start by looking at the generated HTML.  

One other thing to check is if your pages have any path information, i.e.
struts modules or general application context then the images need either
absolute images references or leading slashes to resolve correctly.

Edgar

> -----Original Message-----
> From: Jack Zakarian [mailto:jzakarian@welchpartners.com] 
> Sent: Wednesday, March 19, 2003 8:12 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: StrutsMenu Coolmenu4 images
> 
> 
> Hi,
> 
>  
> 
> I'm trying to use images with coolmenu4. I've added 
> image="images/save.gif" to 
> 
> <Menu> and to <Item> lines but it doesn't load.  I checked 
> the CoolMenuDisplayer4.java
> 
> code and it contains the following;
> 
>  
> 
>     private static final String TOP_IMAGE = "cmTopMenuImage";
> 
>     private static final String SUB_IMAGE = "cmSubMenuImage";
> 
>  
> 
> cmTopMenuImage and cmSubMenuImage are found in the coolmenu4-config.js
> 
> i.e. 
> 
>  
> 
> // Struts Menu specific javascript variables
> 
>  
> 
> // menu arrows
> 
> cmTopMenuImage='&nbsp;&nbsp;&nbsp;<img 
> src="images/Rarrow.gif" class="menuArrows" />'
> 
> cmSubMenuImage='&nbsp;&nbsp;&nbsp;<img 
> src="images/Rarrow.gif" class="menuArrows" />'
> 
>  
> 
> Also CoolMenuDisplayer4.java only loads the following arguments
> 
>  
> 
>     protected String[] getArgs(MenuComponent menu) {
> 
>         String[] args = new String[8];
> 
>         args[0] = menu.getName();
> 
>         args[1] = getParentName(menu);
> 
>         args[2] = getTitle(menu);
> 
>         args[3] = (menu.getLocation() == 
> null)?EMPTY:menu.getLocation();
> 
>         args[4] = getTarget(menu); 
> 
>         args[5] = (menu.getOnClick() == null)?EMPTY:menu.getOnClick();
> 
>         args[6] = (menu.getOnMouseOver() == 
> null)?EMPTY:menu.getOnMouseOver();
> 
>         args[7] = (menu.getOnMouseOut() ==
> null)?EMPTY:menu.getOnMouseOut();     
> 
>  
> 
>         return args;
> 
>     }
> 
>  
> 
> How can I get images to load for my top and sub menu items?
> 
>  
> 
> Thanks,
> 
>  
> 
> Jack.
> 
>  
> 
>  
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message