Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN - Enhanced CSS Navigation Menu PropertyDNN - Enhanced CSS Navigation Menu Property
Previous
 
Next
New Post
8/16/2007 7:04 AM
 

Hi dear DNN devs and users! 

I have a very special problem with a navigation menu. I use the "CSS Friendly Adapter" solution for my navigation menus. All works very well and I am happy with it, but with my newest menu design I came in a very special situation - I am not sure if I can solve it with CSS only or if I have to go the programatical way (code behind). My problem is, that I want to change several menu items images when I click or hover over a menu item. This case results because I made a menu design which has distance shadows and all these shadows should change for all items when I place my mouse pointer over one menu item. In short words, I want that something happens with "all" menu items when I hover or click on one of them. The other possibility could be, that a background image change for the whole menu, kinda as if all menu items were transparent and a background image for the whole menu change. 

Here are two images of this menu design, for a better understanding:


topmenu0 

topmenu4

(Image 1: menu item 1 is activated), (Image 2: menu item 5 is activated) 

As you can see the shadows are different for all items, not only the current item changes, all other items too and that is my problem, the other items change the shadow percentual, depending on how far away they are from the active item. All navigation menu tutorials and solutions I found have allways only the aspect that only the current item changes, not the other items.

Can someone help me, is there a CSS solution for such a case or must I really make it programaticaly with a special 'code behind' solution? What is the best solution, I won't use any menu design tools, I would prefer a clean CSS solution, if its possible?



Thanks
Miss Arzu Bazman
 


Arzu Bazman msbazman -
 
New Post
8/16/2007 7:31 AM
 

Well this is a challanging setup. I am not familiar with css friendly adapter (sounds interesting though).

I think you need to have separate (background?) images for each menu item (including mouse over images of course). The challange is to position the pagename text in the right box. Maybe you can count the number of list items in the menu (if it is an unordered list) using javascript and than calculate the left side padding or abs position and add a class based on the calculated number.

Just a wild guess,

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
8/16/2007 8:18 AM
 

Hi dear DNN devs and users! 

@ schotman
Thank you very much for your answer. Sounds not bad, I hope I could find a sample or tutorial for such a case. Here is the link to this "Microsoft ASP.NET 2.0 CSS Friendly Control Adapters 1.0", if you like to look at it once. I find it very good, its a very clean and flexible way to control the design and look of many different objects. 

http://www.asp.net/cssadapters/WhitePaper.aspx

I am not sure if it is allowed to place this link, I hope it is okay.


Thanks
Miss Arzu Bazman
 


Arzu Bazman msbazman -
 
New Post
8/16/2007 5:54 PM
 

If every tab in the suggested menu design is a different page (or section) of the site than you could just make a dedicated skin for each page (section). Those skins should only be different in their menu background - draw them in a way as if the selected menu item casts shadows on others (if I understood the concept correctly).

I suppose it can be done more easily than anything else.


 
New Post
8/17/2007 4:24 AM
 

Hi dear DNN devs and users! 

@ Exiton
Thanks for your answer. Yes, the menu items are links to different pages, ..."but" the menu is in a Masterpage and that means all other pages have no menu navigation, their menu exist in this Masterpage only. Yes, if I would have such menu in every page this problem wouldn't exist, in such case it were really very easy to solve it
.


Thanks
Miss Arzu Bazman
 


Arzu Bazman msbazman -
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN - Enhanced CSS Navigation Menu PropertyDNN - Enhanced CSS Navigation Menu Property


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out