Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Menu Images
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:13

pageimage or anything else? highlight current category


Poster: perldev
Dated: Saturday August 28 2004 - 13:34:42 BST

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?


Poster: perldev
Dated: Saturday August 28 2004 - 15:12:31 BST

I tried pagematch as follow, which doesn't work

Code:
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/");
..
}


Poster: Andy
Dated: Tuesday August 31 2004 - 9:19:27 BST

Hi Perldev,

I'm not sure I understand what you are trying to achieve here.

If you can create a sample test page with a little more detail, I'll see what I can do.

Cheers
Andy


Poster: Ruth
Dated: Sunday September 5 2004 - 12:54:10 BST

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:
Code:
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;");

...}

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