This worked out well here. First, I made up a class in the stylesheet for the clubhouse menu (note - these styles will get added to the #dropmenudiv a ones, but only for links with the class="clubs"):
Code:
<style type="text/css">
#dropmenudiv{
position:absolute;
border:1px solid black;
border-bottom-width: 0;
font:normal small-caps 10px Agency;
line-height:18px;
z-index:1;
}
#dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid black;
padding: 1px 0;
text-decoration: none;
font-weight: light;
}
#dropmenudiv a.clubs {
width:50%;
float:left;
}
#dropmenudiv a:hover{ /*hover background color*/
background-color: lightgray;
}
.style1 {color: #FFFFFF}
</style>
Next, I inserted the class name for each link in that menu's array:
Code:
var menu3=new Array()
menu3[0]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T10.htm" target="1">Anaheim Angels</a>'
menu3[1]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T25.htm" target="1">Arizona Diamondbacks</a>'
menu3[2]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T14.htm" target="1">Atlanta Braves</a>'
menu3[3]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T0.htm" target="1">Baltimore Orioles</a>'
menu3[4]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T1.htm" target="1">Boston Red Sox</a>'
menu3[5]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T19.htm" target="1">Chicago Cubs</a>'
menu3[6]='<a class="clubs" href="http://ucslhh.com/HHRecord/Results/Page_T5.htm" target="1">Chicago White Sox</a>'
menu3[7]='<a class="clubs" href="http://ucslh . . . etc.
Finally, I edited the call for menu3 to allow it to be wide enough for two columns:
Code:
<a href="default.htm" onClick="return clickreturnvalue()" onMouseOver="dropdownmenu(this, event, menu3, '250px')" onMouseOut="delayhidemenu()"><img src="images/ucsl_10.jpg" alt="" width=85 height=22 border="0"></a>
Notes: The clubs class adds to the #dropmenudiv a styles as I said and actually changes the width to 50%. The float left appears to be required to create the columnar look. However, a float often needs to be later cleared. I didn't do that in this case as, it didn't seem to be necessary.
Bookmarks