View Full Version : How to highlight popup menu item of current page?

07-31-2002, 04:13 AM
I've added a popup menu for each page of my site. The popup menu has several menu items which are linked to other pages of the same site.

Can I have the menu item for current page to be highlighted?:confused:


08-02-2002, 04:24 PM
I had to use a redirect script in one of my pages. I think you might be able to do something similar to highlight the link.

if (top.location.toString().indexOf("YourPage.html")>= 0){//checks what page your on by looking at the address bar.

//here write a script that changes the color of the link or menu


I hope tis helps I know it isn't the exact script but it is an idea that might help. Have Fun :thumbsup:

08-05-2002, 09:00 PM
Thanks, MikoLone. You idea does work. It is a nice way to do that!

But I still have a problem. Attached is the .js file I use for this popup menu. The problem is that: there is one more "undefined" item at the top of the popup menu. I guess it means I haven't define the menu items. But I do define them and they appear right after "undefined".

This is the URL for one of the pages contains this popup menu.

Do you have any idea of this problem?Thank you!