开发者

How to Highlight dynamically loaded menu item in ASP.Net?

开发者 https://www.devze.com 2022-12-17 02:46 出处:网络
i am facing some problem with Menu item highlighting on user selection. I am loading all menu items from database, I used

i am facing some problem with Menu item highlighting on user selection.

I am loading all menu items from database, I used

StaticMenuItemStyle CssClass="Item"

StaticSelectedStyle CssClass="ItemSelected"

StaticHoverStyle CssClass="ItemHover"

and

DynamicSelectedStyle CssClass="ItemSelected"

But it is not working for me.

Is there suggestions or 开发者_如何学编程any ideas please share with me.

Thanks in Advance.


if your menu having <li>...<a>..</a></li> structure apply the highlighting on the "li" and add these attributes also: <li onmouseout="unselect(this)" onmouseover="select(this)"> which is handling the mouse events using javascript. hope that's will help!

0

精彩评论

暂无评论...
验证码 换一张
取 消