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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:18

Highligting a page issue :)


Poster: imran1malik
Dated: Wednesday July 21 2004 - 10:57:07 BST

hi to all,

Guyes i have posted a task week ago , on which i have a very good response. and with your help i have solved my problem.

but now we have purchases the milonic menu, and all working fine but highligting creates problem sometimes..

well i simple cases, the higligting is working fine.. mean that i have a menu and the url to which this page is linking .

But i have some different senario.like i tell you,
i have a page which is highligting in the menu, but when this page calls some other page, the source of the page changes, and i m not getting it right. Now the url changes and it doesn't recognize the men u are page name to highlight as because it does not in the menu it self.


i have write a custom script that gets the url of the each page which is requested, and then i pass that page to the pagematch property of the menu, so it highlights the page which i m requesting.

so ny body have ny kind of solution , please tell .

take care

bye

Imran


Poster: Maz
Dated: Wednesday July 21 2004 - 15:18:49 BST

Hi,

You can use pagematch= ; in the menu item with something that would match the url's.

maz

menu reply


Poster: imran1malik
Dated: Thursday July 22 2004 - 6:12:15 BST

hi,
thankx 4 help but that is not the solution .

My problem is not that simple.

i want to highlight my pages but the pagematch property of Milonic menu is works only with the url property..

mean that you have a menu and a link, the page match property matches the exact page name as in the url . but i have some different pages in the url n that don't contains sub menu's ..

so if n y body getts my point plz reply


Poster: Ruth
Dated: Thursday July 22 2004 - 8:52:51 BST

You can match pages even if they are not in the menu. It will depend on your structure. For example, you could put pagematch in the particular url of the page you do have a link to and use it for matching a folder. It does not have to match an 'exact' url as in having a page name and extension in it, it can match folders, which means any page that is opened from a link in that folder will show as a match to that category.
Code:
aI("text=news about us;url=http://www.etc/aboutus/news/index.html;pagematch=/aboutus/news/;");
Any link on the index.html page that goes into the aboutus/news/ folder will keep the pagebgcolor and pagecolor as if it were in the menu.

Here is a working example of this Click on the link at the left to Archive That link is NOT in the menu, but you'll see the pagebgcolor still works, both for the main About Us heading and if you open the submenu the one for the News & Events sub category is highlighted also.

Also, there is a function here, but I'm not really sure this is what you need, and it is beyond my knowledge as to how it works or is used. Dynamically change url

Ruth


Poster: bling69
Dated: Friday July 23 2004 - 16:16:01 BST

I think I had a similar problem on this thread.
Bling

http://www.milonic.com/forum/viewtopic.php?t=4591


Poster: Ruth
Dated: Friday July 23 2004 - 17:48:23 BST

What you have is beyond me, and is perhaps the solution that imran needs. I do know that if you go to a page through the menu, and the page has a number of links on it, if those pages are in the same folder, then you can use pagematch as shown above and in the example from the link I posted because you can pagematch to the folder rather than a particular page. I do not know if you can pagematch a folder that is not a subfolder of the originally called page. It might be that any links on that page have to have that page's folder as their 'root' or starting folder? Also if the links go to different folders, then using pagematch in this way will not work, and your posted code would be what is needed.

Ruth

reply


Poster: imran1malik
Dated: Saturday July 24 2004 - 4:49:36 BST

hi to all,

thnakx ruth,
your idea is very much clear, but my folder which contains the pages are subdivided in three or four sub menus.

mean that i have different slidings menus and which share the same folder , so i can't just match the folder it can select three or four menus.

so tell me how can i do this.

i have one solution in my mind that is , u know all the pages in a menu and just check the url if this page(u make a list of pages to check) is in the url then u can highlight this menu.

Is this is the appropiate solution, or u suggests some thing else.

thankx

bye

another solution


Poster: imran1malik
Dated: Saturday July 24 2004 - 8:04:20 BST

hi,
i forgot to add one thing which is that is it poosible that we have a global function which we pass the main menu or submenu name and this function highlight that menu.

or any near thing like i need..

ok


Poster: Maz
Dated: Saturday July 24 2004 - 9:13:20 BST

I thought about this, but it doesn't really fit what you are doing.

I remember one kind a pagematch some time back, do a search and try the last pagematch.

Few of us really know js.

maz

imran


Poster: imran1malik
Dated: Saturday July 24 2004 - 9:49:47 BST

hi,

maz i try what u said ealier , but this is not fit in my situation.

but thankx in ny way