Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33
keep image based menus "on" while sub links viewed [solved]
Poster: nwilcox
Dated: Wednesday August 31 2005 - 22:19:27 BST
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!
Poster: Ruth
Dated: Wednesday August 31 2005 - 22:53:01 BST
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:
aI("title=Services;status=Services;
image=btn_services_up.gif;overimage=btn_services_over.gif;
pageimage=btn_services_over.gif;
showmenu=SubNavigation;");
image=btn_services_up.gif;overimage=btn_services_over.gif;
pageimage=btn_services_over.gif;
showmenu=SubNavigation;");
I think that should fix it.
Ruth
Poster: nwilcox
Dated: Thursday September 1 2005 - 6:57:12 BST
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!
Poster: Ruth
Dated: Thursday September 1 2005 - 7:57:47 BST
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
Poster: nwilcox
Dated: Thursday September 1 2005 - 15:19:37 BST
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?
Poster: Ruth
Dated: Thursday September 1 2005 - 15:32:47 BST
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
Poster: nwilcox
Dated: Thursday September 1 2005 - 20:37:20 BST
ok.. I'm really confused that my other 2 sites would have worked without those attributes set
Poster: Ruth
Dated: Thursday September 1 2005 - 21:50:16 BST
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