dj1mitch
03-21-2010, 09:29 AM
I am attempting to created a drop down menu. I cannot get the dropdown to work. It appears the js.file is not being called, but not sure why.
<div id="glowmenu" class="glowingtabs">
<ul>
<li><a href="index.php" title="Home"><span>HOME</span></a></li>
<li><a href="about.php" title="About Us"><span>ABOUT US</span></a></li>
<li><a href="contact.php" title="Contact Us"><span>CONTACT US</span></a></li>
<li><a href="testimonials.php" title="Testimonials"><span>TESTIMONIALS</span></a></li>
<li><a href="products.php" title="Products" rel="product"><span>PRODUCTS</span></a>
</li>
</ul>
</div>
<br style="clear: left;" />
<br class="IEonlybr" />
<!--Product drop down menu -->
<div id="product" class="dropmenudiv">
<a href="washer.php">Washer</a>
<a href="dryer.php">Dryers</a>
<a href="refrigerator.php">Refrigerator</a>
<a href="dishwasher.php">Dishwasher</a>
<a href="wdcombos.php">Washer/Dryer Combo</a>
</div>
<script type="text/javascript">
tabdropdown.init("glowmenu" "auto")
</script>
CSS
.glowingtabs ul{
list-style-type: none;
margin:0;
margin-left: 5px; /*Left offset of entire tab menu relative to page*/
padding:0;
}
.glowingtabs li{
display:inline;
margin:0;
padding:0;
}
.glowingtabs a{
float:left;
background: url(../images/nav_images/glowtab-left.gif) no-repeat left top;
margin:0;
margin-right: 5px; /*spacing between each tab*/
padding:0 0 0 9px;
text-decoration:none;
}
.glowingtabs a span{
float:left;
display:block;
background: url(../images/nav_images/glowtab.gif) no-repeat right top;
padding: 4px 12px 2px 3px;
font-weight:bold;
color:#3B3B3B;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
.glowingtabs a span {float:none;}
/* End IE5-Mac hack */
.glowingtabs a:hover span {
color: black;
}
.glowingtabs li.selected a{ /*Selected Tab style*/
background-position:0 -82px; /*Shift background image up to start of 2nd tab image*/
}
.glowingtabs li.selected a span{ /*Selected Tab style*/
background-position:100% -82px; /*Shift background image up to start of 2nd tab image*/
color: black;
}
.glowingtabs a:hover, .glowingtabs li.selected a:hover{ /*onMouseover style*/
background-position:0% -82px; /*Shift background image up to start of 2nd tab image*/
}
.glowingtabs a:hover span, .glowingtabs li.selected a:hover span{ /*onMouseover style*/
background-position:100% -82px; /*Shift background image up to start of 2nd tab image*/
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #dcc208; /*THEME CHANGE HERE*/
border-width: 0 1px;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 5px;
border: 0 solid #dcc208; /*THEME CHANGE HERE*/
border-bottom-width: 1px;
padding: 2px 0;
text-decoration: none;
color: black;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #fef8c8;
}
<div id="glowmenu" class="glowingtabs">
<ul>
<li><a href="index.php" title="Home"><span>HOME</span></a></li>
<li><a href="about.php" title="About Us"><span>ABOUT US</span></a></li>
<li><a href="contact.php" title="Contact Us"><span>CONTACT US</span></a></li>
<li><a href="testimonials.php" title="Testimonials"><span>TESTIMONIALS</span></a></li>
<li><a href="products.php" title="Products" rel="product"><span>PRODUCTS</span></a>
</li>
</ul>
</div>
<br style="clear: left;" />
<br class="IEonlybr" />
<!--Product drop down menu -->
<div id="product" class="dropmenudiv">
<a href="washer.php">Washer</a>
<a href="dryer.php">Dryers</a>
<a href="refrigerator.php">Refrigerator</a>
<a href="dishwasher.php">Dishwasher</a>
<a href="wdcombos.php">Washer/Dryer Combo</a>
</div>
<script type="text/javascript">
tabdropdown.init("glowmenu" "auto")
</script>
CSS
.glowingtabs ul{
list-style-type: none;
margin:0;
margin-left: 5px; /*Left offset of entire tab menu relative to page*/
padding:0;
}
.glowingtabs li{
display:inline;
margin:0;
padding:0;
}
.glowingtabs a{
float:left;
background: url(../images/nav_images/glowtab-left.gif) no-repeat left top;
margin:0;
margin-right: 5px; /*spacing between each tab*/
padding:0 0 0 9px;
text-decoration:none;
}
.glowingtabs a span{
float:left;
display:block;
background: url(../images/nav_images/glowtab.gif) no-repeat right top;
padding: 4px 12px 2px 3px;
font-weight:bold;
color:#3B3B3B;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
.glowingtabs a span {float:none;}
/* End IE5-Mac hack */
.glowingtabs a:hover span {
color: black;
}
.glowingtabs li.selected a{ /*Selected Tab style*/
background-position:0 -82px; /*Shift background image up to start of 2nd tab image*/
}
.glowingtabs li.selected a span{ /*Selected Tab style*/
background-position:100% -82px; /*Shift background image up to start of 2nd tab image*/
color: black;
}
.glowingtabs a:hover, .glowingtabs li.selected a:hover{ /*onMouseover style*/
background-position:0% -82px; /*Shift background image up to start of 2nd tab image*/
}
.glowingtabs a:hover span, .glowingtabs li.selected a:hover span{ /*onMouseover style*/
background-position:100% -82px; /*Shift background image up to start of 2nd tab image*/
}
/* ######### Style for Drop Down Menu ######### */
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #dcc208; /*THEME CHANGE HERE*/
border-width: 0 1px;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
}
.dropmenudiv a{
width: auto;
display: block;
text-indent: 5px;
border: 0 solid #dcc208; /*THEME CHANGE HERE*/
border-bottom-width: 1px;
padding: 2px 0;
text-decoration: none;
color: black;
}
* html .dropmenudiv a{ /*IE only hack*/
width: 100%;
}
.dropmenudiv a:hover{ /*THEME CHANGE HERE*/
background-color: #fef8c8;
}