Dropdown menu "stuck"
Hi guys!, First off- I'm new to the forums, and much of my coding experience is self taught so my terminology may be off. I've had Adobe suite on and off through college and now I'm using it for work. I'm working on a drop-down menu for the front page of my company's new website. I have built drop-down menus before (using Dreamweaver's "drop-down button" feature), but since I need this drop down menu to be image based, I've built it using some of my own code/Dreamweaver's drop down content feature.
The short of what is going on- is that my drop-down menu acts like it is "stuck". My coworker and I have both tried to fix this to no avail, and we need it working ASAP. I built the menu in a separate document, then used Illustrator's "Save for Web" feature to copy its' code- which I then pasted in the "Drop down content" div. The menu appeared, and just stays there. When you open the document, it is just "there."
I'm a bit of a visual person, so forgive me if my wording is off!
--I'll paste my code below! (My image links will be broken, I know. Thanks for any help!)--
<!doctype html>
<html>
<head>
<title>Albion Front Page Redesign222</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown:hover .dropdown-content {
display: block;
}
.desc {
padding: 15px;
text-align: center;
}
</style>
</style>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('AlbionFrontPageHistoryInYourHandRollyRolled2_06.gif','AlbionFrontPageHistoryInYourHandRollyRolled2_07.gif','AlbionFrontPageHistoryInYourHandRollyRolled2_08.gif','AlbionFrontPageHistoryInYourHandRollyRolled2_02.gif','AlbionFrontPageHistoryInYourHandRollyRolled2_03.gif')'ProductDropdownMenuRollyRolled_03.gif','ProductDropdownMenuRollyRolled_06.gif','ProductDropdownMenuRollyRolled_09.gif','ProductDropdownMenuRollyRolled_11.gif','ProductDropdownMenuRollyRolled_14.gif','ProductDropdownMenuRollyRolled_16.gif','ProductDropdownMenuRollyRolled_18.gif')">
<div style="position:absolute; left:0px; top:0px; width:3840px; height:2160px;">
<div style="position:absolute; left:0px; top:0px; width:3192px; height:98px;" title=""><img src="AlbionFrontPageHistoryInYourHandRollyRolled2_01.gif" width="3192" height="98" alt=""/>
</div>
<div style="position:absolute; left:3192px; top:0px; width:78px; height:98px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('FacebookRolly','','AlbionFrontPageHistoryInYourHandRollyRolled2_02.gif',1)"><img src="AlbionFrontPageRollyUnrolled_02.gif" alt="" width="78" height="98" id="FacebookRolly"></a>
</div>
<div style="position:absolute; left:3270px; top:0px; width:76px; height:98px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TwitterRolly','','AlbionFrontPageHistoryInYourHandRollyRolled2_03.gif',1)"><img src="AlbionFrontPageRollyUnrolled_03.gif" alt="" width="76" height="98" id="TwitterRolly"></a>
</div>
<div style="position:absolute; left:3346px; top:0px; width:494px; height:2160px;" title=""><img src="AlbionFrontPageRollyUnrolled_04.gif" width="494" height="2160" alt=""/>
</div>
<div style="position:absolute; left:0px; top:98px; width:1896px; height:2062px;" title=""><img src="AlbionFrontPageHistoryInYourHandRollyRolled2_05.gif" width="1896" height="2062" alt=""/>
</div>
<div class="dropdown" style="position:absolute; left:1896px; top:98px; width:502px; height:76px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ProductRolly','','AlbionFrontPageHistoryInYourHandRollyRolled2_06.gif',1)"><img src="AlbionFrontPageRollyUnrolled_06.gif" width="502" height="76" id="ProductRolly"></a>
<div style="position:absolute; left:0px; top:70px; width:434px; height:994px;">
<div style="position:absolute; left:0px; top:0px; width:434px; height:38px;" title=""><img src="ProductDropdownMenuRollyRolled_01.gif" width="434" height="38" alt=""/>
</div>
<div style="position:absolute; left:0px; top:38px; width:26px; height:956px;" title=""><img src="ProductDropdownMenuRollyRolled_02.gif" width="26" height="956" alt=""/>
</div>
<div style="position:absolute; left:26px; top:38px; width:238px; height:40px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SwordlistRolly','','ProductDropdownMenuRollyRolled_03.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_03.gif" alt="" width="238" height="40" id="SwordlistRolly"></a>
</div>
<div style="position:absolute; left:264px; top:38px; width:170px; height:116px;" title=""><img src="ProductDropdownMenuRollyRolled_04.gif" width="170" height="116" alt=""/>
</div>
<div style="position:absolute; left:26px; top:78px; width:238px; height:76px;" title=""><img src="ProductDropdownMenuRollyRolled_05.gif" width="238" height="76" alt=""/> </div>
<div style="position:absolute; left:26px; top:154px; width:340px; height:40px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ScabbardRolly','','ProductDropdownMenuRollyRolled_06.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_06.gif" alt="" width="340" height="40" id="ScabbardRolly"></a>
</div>
<div style="position:absolute; left:366px; top:154px; width:68px; height:460px;" title=""><img src="ProductDropdownMenuRollyRolled_07.gif" width="68" height="460" alt=""/>
</div>
<div style="position:absolute; left:26px; top:194px; width:340px; height:70px;" title=""><img src="ProductDropdownMenuRollyRolled_08.gif" width="340" height="70" alt=""/>
</div>
<div style="position:absolute; left:26px; top:264px; width:340px; height:44px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('BareBladesRolly','','ProductDropdownMenuRollyRolled_09.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_09.gif" alt="" width="340" height="44" id="BareBladesRolly"></a>
</div>
<div style="position:absolute; left:26px; top:308px; width:340px; height:76px;" title=""><img src="ProductDropdownMenuRollyRolled_10.gif" width="340" height="76" alt=""/>
</div>
<div style="position:absolute; left:26px; top:384px; width:252px; height:38px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ArmourRolly','','ProductDropdownMenuRollyRolled_11.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_11.gif" alt="" width="252" height="38" id="ArmourRolly"></a>
</div>
<div style="position:absolute; left:278px; top:384px; width:88px; height:230px;" title=""><img src="ProductDropdownMenuRollyRolled_12.gif" width="88" height="230" alt=""/>
</div>
<div style="position:absolute; left:26px; top:422px; width:252px; height:74px;" title=""><img src="ProductDropdownMenuRollyRolled_13.gif" width="252" height="74" alt=""/>
</div>
<div style="position:absolute; left:26px; top:496px; width:252px; height:42px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('DisplayRolly','','ProductDropdownMenuRollyRolled_14.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_14.gif" alt="" width="252" height="42" id="DisplayRolly"></a>
</div>
<div style="position:absolute; left:26px; top:538px; width:252px; height:76px;" title=""><img src="ProductDropdownMenuRollyRolled_15.gif" width="252" height="76" alt=""/>
</div>
<div style="position:absolute; left:26px; top:614px; width:408px; height:38px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('AlbionGearRolly','','ProductDropdownMenuRollyRolled_16.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_16.gif" alt="" width="408" height="38" id="AlbionGearRolly"></a>
</div>
<div style="position:absolute; left:26px; top:652px; width:408px; height:76px;" title=""><img src="ProductDropdownMenuRollyRolled_17.gif" width="408" height="76" alt=""/>
</div>
<div style="position:absolute; left:26px; top:728px; width:296px; height:44px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('MoatSaleRolly','','ProductDropdownMenuRollyRolled_18.gif',1)"><img src="ProductDropdownMenuRollyUnrolled_18.gif" alt="" width="296" height="44" id="MoatSaleRolly"></a>
</div>
<div style="position:absolute; left:322px; top:728px; width:112px; height:266px;" title=""><img src="ProductDropdownMenuRollyRolled_19.gif" width="112" height="266" alt=""/>
</div>
<div style="position:absolute; left:26px; top:772px; width:296px; height:222px;" title=""><img src="ProductDropdownMenuRollyRolled_20.gif" width="296" height="222" alt=""/>
</div>
</div>
</div>
<div style="position:absolute; left:2398px; top:98px; width:364px; height:76px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('NewsRolly','','AlbionFrontPageHistoryInYourHandRollyRolled2_07.gif',1)"><img src="AlbionFrontPageRollyUnrolled_07.gif" alt="" width="364" height="76" id="NewsRolly"></a>
</div>
<div style="position:absolute; left:2762px; top:98px; width:470px; height:76px;" title=""><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('AboutRolly','','AlbionFrontPageHistoryInYourHandRollyRolled2_08.gif',1)"><img src="AlbionFrontPageRollyUnrolled_08.gif" alt="" width="470" height="76" id="AboutRolly"></a>
</div>
<div style="position:absolute; left:3232px; top:98px; width:114px; height:2062px;" title=""><img src="AlbionFrontPageRollyUnrolled_09.gif" width="114" height="2062" alt=""/> </div>
<div style="position:absolute; left:1896px; top:174px; width:1336px; height:1986px; z-index: -1
" title=""><img src="AlbionFrontPageRollyUnrolled_10.gif" width="1336" height="1986" alt=""/>
</div>
</div>
</body>
</html>
