PDA

View Full Version : Displaying sub menu after page load



spaniland
03-27-2008, 09:55 PM
1) Script Title: Chrome CSS Drop Down

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chrome/

3) Describe problem: I would like the selected submenu visible after selecting and loading. The problem is NOT locating wich submenu to display (using IF/Else in asp), but how to make it visible in the correct place. The class is wich should display the submenu is named "dropmenudiv2".

When I try to dynamically set visibility as default on on submeny, it shows but not in right place. Link http://www.holedesign.com/asp/produkter-undergruppe.asp?HovedGruppe=8&UnderGruppe=19 As you see the menu "møbler" are active, and corresponding submenu should be displayed in correct place, not in top left corner.



Here is the css file:


.dropmenudiv{
position:absolute;
top: 0;
border: 0px solid #BBB;
border-bottom-width: 0;
font:normal 12px/normal Arial, Helvetica, sans-serif;
z-index:100;
background-color: white;
width: auto!important;
visibility: hidden;
text-align: center;
background-position: center;
display: inline;

}

.dropmenudiv2 {

position:absolute;
top: 0;
border: 0px solid #BBB;
border-bottom-width: 0;
font:normal 12px/normal Arial, Helvetica, sans-serif;
z-index:100;
background-color: white;
width: auto!important;
visibility: visible;
text-align: center;
background-position: center;
}


.dropmenudiv a{
.dropmenudiv a{
width: auto;
display: inline;
text-indent: 3px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
}


.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #F0F0F0;
}


Any ideas how to fix this? Thanks.... REALLY thanks...

Br
Håvard Spaniland