Images for menu

Jul 18, 2010 at 6:52 PM

Hi all.

I would like the have the following functionality for the menu:

each menu item has an "off" image, hover image and selected image (which can be the same as the "off" image). Is it possible to acheive with site map, if so how ?

Coordinator
Jul 20, 2010 at 6:38 AM

Can you give it a css class or something and achieve this by abusing jQuery?

Jul 20, 2010 at 11:35 AM
I can do it with jquery, I just thought that I could acheive it with the sitemap the way I do it with webforms sitemaps: by adding custom attributes to the sitemap node, and then reading these attributes. I'm pretty sure you can do it with MvcSiteMapProvider too (right?), but don't know how ...
Coordinator
Jul 20, 2010 at 11:56 AM

That can be done exactly the same, only make sure that these attributes are listed in the Web.config's "attributesToIgnore" attribute.