The menu structure of our site is
A
A1
A11..
An
B
B1..
Both A and B are images; each image has two status. fg: A.out.img, A.over.img. If any page under category A is the current page, A should show A.over.img (highlighting A);
How to do this? using pageimage or anything else? Is there an example I can study with?
pageimage or anything else? highlight current category
I tried pagematch as follow, which doesn't work
Code: Select all
aI("url=/A/a.html;image=/images/A.out.gif;imageover=/images/A.over.gif;showmenu=menu a");
..
with(milonic=new menuame("menu a")){
aI("text=item a1;url=/A/a1.html;pagematch=/A/;");
aI("text=item a2;url=/A2/a2.html;pagematch=/A2/;");
aI("text=item a3;url=/A/a2.html;pagematch=/A/");
..
}
Because you are using a different image in different items for the page matching, to have pagematch work, you need to specify the image in the aI string that you are matching for it. For example:
Then in the B section you'd put the same thing and whatever image is to match the item has to be listed in the item.
As an aside, the code for what you list as imageover is overimage=
Ruth
Code: Select all
with(milonic=new menuame("menu a")){
aI("text=item a1;url=/A/a1.html;pagematch=/A/;pageimage=a_out.gif image;");
aI("text=item a2;url=/A/a2.html;pagematch=/A2/;pageimage=a_out.gif image;");
...}
As an aside, the code for what you list as imageover is overimage=
Ruth