That is actually the AnyLink CSS Menu, a slightly more advanced version of the AnyLink Drop Down Menu.
1 ) From the top of the "anylink.js" file:
Code:
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
Change the 0 to 1.
2 ) The style of the menu is controled by the css in the "anylink.css" file (hence its name), where you will find:
Code:
.anylinkcss{
position:absolute;
visibility: hidden;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height: 18px;
z-index: 100;
background-color: #E9FECB;
width: 205px;
}
.anylinkcss a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: bold;
text-indent: 5px;
}
.anylinkcss a:hover{ /*hover background color*/
background-color: black;
color: white;
}
}
The highlighted block is where you control the style for the drop down links (though some of the styles are inherited from the first block), you can also add style blocks for:
.anylinkcss a:link
.anylinkcss a:visited
.anylinkcss a:active
if you like, .anylinkcss a:hover is already there. The anchor links follow whatever the default link style for the page is set to. This can be changed in any of the usual manners. For example:
Code:
<a class="anyanchor" href="http://www.dynamicdrive.com" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, 'anylinkmenu1')">Anchor Link</a>
Then you can style that class in the anylink.css stylesheet file, ex:
Code:
.anyanchor {
color:red;
background-color:lightblue;
}
.anyanchor:hover {
background-color:pink;
}
Bookmarks