Javascript/jquery--menu doesn't show up

I’m trying to get the menu to show up and it won’t.

Here is the HTML code:<
head>
<link rel=“shortcut icon” type=“image/x-icon” href=“favicon.ico” />
<link rel=“icon” type=“image/x-icon” href=“favicon.ico” />
<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” />

&lt;title&gt;Alaska Fur Gallery&lt;/title&gt;

&lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;

&lt;script language="JavaScript" src="js.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="activemenu.css" /&gt;
&lt;script src="jquery-activemenu.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="fancybox/jquery.fancybox-1.3.1.js"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.1.css" media="screen" /&gt;

&lt;script type="text/javascript"&gt;
	$(document).ready(function() {
		$("a#fancybox").fancybox({
			'titleShow'		: false,
			type:'image'
		});
	
		//show the footer
		$("#footer").css("visibility","visible");
		
		//initialize activeMenu
		initMenu();   
	 });

&lt;/script&gt;

</head>
<body>

<div id=“container”>

&lt;div id="header"&gt;
	&lt;a href="index.html"&gt;&lt;div id="logolink"&gt;Alaska Fur Gallery&lt;/div&gt;&lt;/a&gt;
	&lt;div id="answer"&gt;We're Here to Answer Your Questions.  Call Us Today at 334-277-7610&lt;/div&gt;
	&lt;div id="underlinemenu" class="ulmhead"&gt;
		&lt;ul&gt;
			&lt;li&gt;&lt;a href="index.html" style="border:0;"&gt;Home&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="content2e96.html?id=431503"&gt;About&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="content9bf1.html?id=431504"&gt;Services&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="find_location.html"&gt;Locations&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="ct.html"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
			
		&lt;/ul&gt;
	&lt;/div&gt; 
	&lt;div class="clear"&gt;&lt;/div&gt;
	&lt;div id="topmenu"&gt;
		&lt;ul id="activeMenu"&gt;
			&lt;li style="top: 0; left:0px"&gt;&lt;a href="shopa146.html?action=cat&amp;catID=20529" id="furs"&gt;Furs&lt;/a&gt;&lt;/li&gt;
			&lt;li style="top: 0; left:66px"&gt;&lt;a href="shop52df.html?action=cat&amp;catID=20541" id="leather"&gt;Leather & Fur&lt;/a&gt;&lt;/li&gt;
			&lt;li style="top: 0; left:210px"&gt;&lt;a href="shop9e9f.html?action=cat&amp;catID=20575" id="cashmere"&gt;Cashmere & Fur&lt;/a&gt;&lt;/li&gt;
			&lt;li style="top: 0; left:374px"&gt;&lt;a href="shop80c4.html?action=cat&amp;catID=21239" id="outerwear"&gt;Outerwear&lt;/a&gt;&lt;/li&gt;
			&lt;li style="top: 0; left:493px"&gt;&lt;a href="shop0376.html?action=cat&amp;catID=20544" id="plus"&gt;Plus Sizes&lt;/a&gt;&lt;/li&gt;
			&lt;li style="top: 0; left:604px"&gt;&lt;a href="shop2060.html?action=cat&amp;catID=20580" id="accessories"&gt;Accessories&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;&lt;!-- topmenu --&gt;
&lt;/div&gt;&lt;!-- header --&gt;

&lt;!--submenu divs--&gt;
	&lt;div id="furs_submenu"&gt;		
		&lt;ul class="dropdown" style="width:130px; float:left; margin:0 30px 0 0;"&gt;
			&lt;span&gt;Women's Furs&lt;/span&gt;
			&lt;li&gt;&lt;a href="shopde5e.html?action=cat&amp;catID=20572"&gt;Mink&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop2705.html?action=cat&amp;catID=20574"&gt;Sable&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop5c0d.html?action=cat&amp;catID=20570"&gt;Chinchilla&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopdfa7.html?action=cat&amp;catID=20568"&gt;Beaver&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop04fa.html?action=cat&amp;catID=20571"&gt;Lynx&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop65dc.html?action=cat&amp;catID=20569"&gt;Bobcat&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopc9fc.html?action=cat&amp;catID=20622"&gt;Coyote&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop65f8.html?action=cat&amp;catID=20539"&gt;Fox&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop3276.html?action=cat&amp;catID=20573"&gt;Rabbit&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
		&lt;ul class="dropdown" style="width:140px; float:left;"&gt;
			&lt;span&gt;Men's Furs&lt;/span&gt;
			&lt;li&gt;&lt;a href="shop2ef6.html?action=cat&amp;catID=20531"&gt;Mink&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20532"&gt;Sable&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20533"&gt;Chinchilla&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20534"&gt;Beaver&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20535"&gt;Lynx&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20536"&gt;Bobcat&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopfc5b.html?action=cat&amp;catID=20618"&gt;Coyote&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop88e4.html?action=cat&amp;catID=20537"&gt;Fox&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="errorfe10.html?action=cat&amp;catID=20540"&gt;Rabbit&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
	&lt;/div&gt;
	
	&lt;div id="leather_submenu"&gt;
		&lt;ul class="dropdown"&gt;
			&lt;li&gt;&lt;a href="shop973d.html?action=cat&amp;catID=20542"&gt;Women's Leather & Fur&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop4cc6.html?action=cat&amp;catID=20543" style="border:0;"&gt;Men's Leather & Fur&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
	&lt;/div&gt;
	
	&lt;div id="cashmere_submenu"&gt;
		&lt;ul class="dropdown"&gt;
			&lt;li&gt;&lt;a href="shop3f01.html?action=cat&amp;catID=20576"&gt;Coats&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopd4d8.html?action=cat&amp;catID=20577"&gt;Strollers&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop7899.html?action=cat&amp;catID=20578"&gt;Jackets&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopcba4.html?action=cat&amp;catID=20579" style="border:0;"&gt;Capes&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
	&lt;/div&gt;
	
	&lt;div id="plus_submenu"&gt;
		&lt;ul class="dropdown" style="width:130px; float:left; margin:0 30px 16px 0;"&gt;
			&lt;span&gt;Women's Furs&lt;/span&gt;
			&lt;li&gt;&lt;a href="shop2530.html?action=cat&amp;catID=20564"&gt;Mink&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop807e.html?action=cat&amp;catID=20566"&gt;Sable&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopbc8f.html?action=cat&amp;catID=20557"&gt;Chinchilla&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopcb16.html?action=cat&amp;catID=20553"&gt;Beaver&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop3cb8.html?action=cat&amp;catID=20561"&gt;Lynx&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopb6e3.html?action=cat&amp;catID=20555"&gt;Bobcat&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop1e6c.html?action=cat&amp;catID=20621"&gt;Coyote&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopc08b.html?action=cat&amp;catID=20559"&gt;Fox&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop0495.html?action=cat&amp;catID=20562"&gt;Rabbit&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
		&lt;ul class="dropdown" style="width:140px; float:left;"&gt;
			&lt;span&gt;Men's Furs&lt;/span&gt;
			&lt;li&gt;&lt;a href="shop9b23.html?action=cat&amp;catID=20565"&gt;Mink&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop10dc.html?action=cat&amp;catID=20567"&gt;Sable&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop8154.html?action=cat&amp;catID=20556"&gt;Chinchilla&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop0b63.html?action=cat&amp;catID=20551"&gt;Beaver&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopa40f.html?action=cat&amp;catID=20560"&gt;Lynx&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopd843.html?action=cat&amp;catID=20554"&gt;Bobcat&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopa2c0.html?action=cat&amp;catID=20620"&gt;Coyote&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopb0b2.html?action=cat&amp;catID=20558"&gt;Fox&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopd3b0.html?action=cat&amp;catID=20563"&gt;Rabbit&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
		 &lt;div class="clear"&gt;&lt;/div&gt;
		 &lt;ul class="dropdown" style="width:130px; float:left; margin:0 30px 10px 0;"&gt;
		 	&lt;span&gt;Leather & Fur&lt;/span&gt;
			&lt;li&gt;&lt;a href="shop91d6.html?action=cat&amp;catID=20549"&gt;Women's Leather & Fur&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop8605.html?action=cat&amp;catID=20548"&gt;Men's Leather & Fur&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
		&lt;ul class="dropdown" style="width:140px; float:left; margin:-6px 0 0 0;"&gt;
			&lt;li&gt;&lt;a href="shope478.html?action=cat&amp;catID=20550" style="border:0;"&gt;&lt;strong&gt;Cashmere & Fur&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
	&lt;/div&gt;
	
	&lt;div id="accessories_submenu"&gt;
		&lt;ul class="dropdown"&gt;
			&lt;li&gt;&lt;a href="shop2f26.html?action=cat&amp;catID=20581"&gt;Fur Hats&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop9989.html?action=cat&amp;catID=20582"&gt;Fur Headbands&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop935f.html?action=cat&amp;catID=20583"&gt;Fur Earmuffs&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shopd2bf.html?action=cat&amp;catID=20584"&gt;Gloves with Fur&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop2c08.html?action=cat&amp;catID=20585"&gt;Fur Boot Toppers&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop9f4f.html?action=cat&amp;catID=20586"&gt;Fur Scarves & Flings&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop3d06.html?action=cat&amp;catID=20587"&gt;Fur Blankets&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop4bf4.html?action=cat&amp;catID=20588"&gt;Fur Handbags&lt;/a&gt;&lt;/li&gt;
			&lt;li&gt;&lt;a href="shop611a.html?action=cat&amp;catID=20589" style="border:0;"&gt;Mink Teddy Bears&lt;/a&gt;&lt;/li&gt;
		 &lt;/ul&gt;
	&lt;/div&gt;

Here is the javascript:
/*
jQuery ActiveMenu v1.0
Author: Miguel Sanchez
12/2009
*/

var timeouts = ; //for hiding the menu purposes

function initMenu(){
var offclass;
var menuAnchor;
$(“#activeMenu”).find(“li”).each(function() {

	//get a reference to the anchor inside the li
	menuAnchor = $(this).children(":first");
	
	//get the name of the offclass
	offclass = $(menuAnchor).attr("id")+"_off";
	
	//assign off class to item
	$(menuAnchor).addClass(offclass);
	
	//assign hover event handler to main menu
	$(menuAnchor).hover(
	  function (event) {
	    submenu_show(event.target);
	  },
	  function (event) {
	   	submenu_hide(event.target);
	  }
	);		
	
});

//assign hover events to submenu
$("div [id$=_submenu]").hover(
  function (event) {		  	
    submenu_over(event.target);
  },
  function (event) {
   submenu_out(event.target);
  }
);

}

function submenu_show(caller){
//hide all the submenus
$(“div [id$=_submenu]”).hide();

//get the id of the main menu item
var mainMenuItemId = $(caller).attr("id")

//get the "on" class name	
var onclass = mainMenuItemId+"_on";
//get the "off" class name	
var offclass = mainMenuItemId+"_off";

//remove off class to item
$(caller).removeClass(offclass);

//assign on class to item
$(caller).addClass(onclass);

// get the id of the submenu
var targetSubMenuId = mainMenuItemId+"_submenu";
//show the submenu
$("#"+targetSubMenuId).slideDown("fast");

}

function submenu_hide(caller){

//get the id of the main menu item
var mainMenuItemId = $(caller).attr("id");

//get the "on" class name	
var onclass = mainMenuItemId+"_on";
//get the "off" class name	
var offclass = mainMenuItemId+"_off";

//remove on class to item
$(caller).removeClass(onclass);

//assign off class to item
$(caller).addClass(offclass);

timeouts[mainMenuItemId] = setTimeout(function() {
    $("#"+mainMenuItemId+"_submenu").slideUp("fast");
}, 200);

}

function submenu_over(caller){

//get a reference to the containing div
var subMenuDiv = $(caller).closest("div");
//show the div
$(subMenuDiv).show();

//get the id of the main menu
var mainMenuItemId = $(subMenuDiv).attr("id");
mainMenuItemId = mainMenuItemId.replace("_submenu","");

clearTimeout(timeouts[mainMenuItemId]);


//remove the "off" class
$("#"+mainMenuItemId).removeClass(mainMenuItemId+"_off");
//add the "on" class
$("#"+mainMenuItemId).addClass(mainMenuItemId+"_on");	

}

function submenu_out(caller){
//get a reference to the containing div
var subMenuDiv = $(caller).closest(“div”);
$(subMenuDiv).hide();
//get the id of the main menu
var menuAnchorId = $(subMenuDiv).attr(“id”);
menuAnchorId = menuAnchorId.replace(“_submenu”,“”);

//remove the "on" class
$("#"+menuAnchorId).removeClass(menuAnchorId+"_on");

//add the "off class
$("#"+menuAnchorId).addClass(menuAnchorId+"_off");	

}

Here is the CSS styling:/* graphical menu codes */

#topmenu ul {
list-style: none;
width: 738px;
height:52px;
padding:0;
margin: 0px;
position: absolute;
top:94px;
right:0;
overflow: hidden;

}

#topmenu li {
display: inline;
position: absolute;
}

#topmenu li a{
float: left;
font-size:11px;
line-height: 14px;
white-space: nowrap;
text-transform: uppercase;
text-align:center;
padding: 0 0 0 0;
text-indent:777px;
overflow:hidden;
height:52px;
}

#topmenu li a:hover {
color: #bceffa;
}
a.on {
color: #bceffa;
}

#topmenu a {
color: #ffffff;
text-decoration: none;

}
#topmenu a:hover {
color: #bceffa;
text-decoration: none;
}

.furs_off {
background: url(“graphics/topmenu2.gif”) 0 0 no-repeat;
width:66px;
}

.furs_on {
background: url(“graphics/topmenu2.gif”) 0 -52px no-repeat;
}

.leather_off {
background: url(“graphics/topmenu2.gif”) -66px 0 no-repeat;
width:144px;
}

.leather_on{
background: url(“graphics/topmenu2.gif”) -66px -52px no-repeat;
}

.cashmere_off {
background: url(“graphics/topmenu2.gif”) -210px 0 no-repeat;
width:165px;
}

.cashmere_on{
background: url(“graphics/topmenu2.gif”) -210px -52px no-repeat;
}

.outerwear_off {
background: url(“graphics/topmenu2.gif”) -374px 0 no-repeat;
width:119px;
}

.outerwear_on{
background: url(“graphics/topmenu2.gif”) -374px -52px no-repeat;
}

.plus_off {
background: url(“graphics/topmenu2.gif”) -493px 0 no-repeat;
width:111px;
}

.plus_on{
background: url(“graphics/topmenu2.gif”) -493px -52px no-repeat;
}

.accessories_off {
background: url(“graphics/topmenu2.gif”) -604px 0 no-repeat;
width:133px;
}

.accessories_on{
background: url(“graphics/topmenu2.gif”) -604px -52px no-repeat;
}

ul.dropdown {
list-style: none;
margin: 0;
padding: 0;
border: none;
z-index:10000;
position:relative;
}

ul.dropdown li span {
display: block;
_display:inline-block;
text-decoration: none;
}
ul.dropdown li a {
display: block;
position: relative;
_display:inline-block; /* so IE doesn’t add space between elements /
_width: 83%; /
makes block fill width in IE */
padding: 6px 10px 6px 10px;
font-size: 13px;
color: #ffffff;
text-decoration: none;
border-bottom:1px solid #b78833;

}

ul.dropdown li a:hover{
color: #ffffff;
background: #e3a73a;
text-decoration: none;
}

.dropdown span{
font-weight:bold;
color:#64450f;
margin:0 0 0 10px;
}

#furs_submenu {
width:300px;
padding: 5px 0;
background: #c8912f;
position: absolute;
top: 146px;
left: 260px;
display: none;
z-index:1000;
}

#leather_submenu {
width:166px;
padding: 5px 0;
background: #c8912f;
position: absolute;
top: 146px;
left: 325px;
display: none;
z-index:1000;
}

#cashmere_submenu {
width:192px;
padding: 5px 0;
background: #c8912f;
position: absolute;
top: 146px;
left: 470px;
display: none;
z-index:1000;
}

#plus_submenu {
width:300px;
padding: 5px 0;
background: #c8912f;
position: absolute;
top: 146px;
left: 698px;
display: none;
z-index:1000;
}

#accessories_submenu {
width:158px;
padding: 5px 0;
background: #c8912f;
position: absolute;
top: 146px;
left: 840px;
display: none;
z-index:1000;
}

I am probably missing something drastically obvious, but where is jQuery itself included in your code?

i think it’s on line 9 of html. i’m new to this

<script src=“jquery-activemenu.js” type=“text/javascript”></script>

I don’t think that’s jQuery itself - I think it’s a jQuery plugin. Try adding this to your head element:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>

That will link you to jQuery 1.4 on Google’s CDN.

thank yo so much. I actually deleted that line because I though it was for google analytics

Glad I could help. I have been through the jQuery-not-properly-included dance myself :slight_smile: