Modifying Hyperlinks Based On Menu Location

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Chris K
Beginner
Beginner
Posts: 4
Joined: Fri Aug 13, 2004 10:56 pm
Contact:

Modifying Hyperlinks Based On Menu Location

Post by Chris K »

I have a page with a set of images which the user can right click and be presented with a set of options (for example, edit and delete). I need to be able to modify the URL that is in the href attribute of each menu hyperlink to correspond the primary key in my database that the image belongs to.

If you have any questions, post them and I'll be glad to clarify.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Chris,

I wrote a js function a while back that let's you dynamically change any property of any menu item. Sounds like it might help you out. It's called mm_changeItemProperty(), and there's a description of how it works here. Should still work the same way.

Hope that helps,

Kevin
Post Reply