keep image based menus "on" while sub links viewed [solved]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

keep image based menus "on" while sub links viewed [solved]

Post by nwilcox »

got another issue for you on the same site"

http://clients2.serverside.net/image-technology/

If I click on any of the submenu items the main parent button is not staying "on". The sub-items are staying fine. I know this is possible as I did it with my last implementation of Milonic but I can't see what is wrong.

Can you please help?

Thanks!
Last edited by nwilcox on Fri Aug 21, 2009 8:13 pm, edited 1 time in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

In your main menu you are using images and you have image=whatever;overimage=whatever; but you don't have pageimage=whatever; If you want the pageimage to be the overimage, you'd need to add that.

Code: Select all

aI("title=Services;status=Services;
image=btn_services_up.gif;overimage=btn_services_over.gif;
pageimage=btn_services_over.gif;
showmenu=SubNavigation;");
I think that should fix it.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

awesome...that did it Ruth

why did I need to have pageImage set on the main menu images when I didn't need them on previous implementations of Milonic?

Has something changed in the newest version I just downloaded off the website?

I used the menu on 2 other sites with image based main menus and it does the "highlight" automatically

http://www.indental.org and http://www.rs2tech.com

I did not have to set pageimage in either menu

Thanks!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I have no idea why it is showing the overimage when you are on a page as if that is the pageimage. As far as I know it shouldn't do that. Perhaps something in the menu program code got its wires crossed in that version between overimage and pageimage when pagebgcolor was set? Hmmm, maybe that would be a nice 'option' to be able to set the overimage as the pageimage. Save some coding.... though I guess that could be done with a function.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

so for future reference I should always set "pageImage" on the parent menu if I want it to stay "higlighted" when the sub item is selected?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes, you should use pageimage on menus that use images. There are a number of active page style properties: pagebgcolor, pagebgimage, pageborder, pageclass, pagecolor, pageimage, pageseparatorimage, and pagesubimage. That gives you a range of things to use when you are considering style of the menu.

Ruth
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Post by nwilcox »

ok.. I'm really confused that my other 2 sites would have worked without those attributes set

:?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

There were some glitches in versions 5.23 to 5.27 and a number of odd things were taking place, setting the overimage as if it were the pageimage on an active page was one of them. That didn't happen in versions before 5.23 and nor after 5.26.

Any versions other than the .23, .24, .25, .26 will need the pageimage.

Ruth
Post Reply