Hi,
I've made an Accordion menu. Everything works fine in firefox but when i try to look at the menu with IE it won't work like its supposed to. the menu doesn't open like it should it just stays stationary. Can someone please look at my code and tell me what i have done wrong? i have looked at this code for a while now and am just at a loss. I have the style sheet linked in the file i just posted it this way so everyone could see it.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="stylesheet.css" rel="stylesheet" type="text/css" media="screen"/>
<title>Accordion Menu Using jQuery</title>
<script type="text/javascript" language="javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked
$("#firstpane p.menu_head").click(function()
{
$(this) .next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
});
//slides the element with class "menu_body" when mouse is over the paragraph
$("#secondpane p.menu_head").mouseover(function()
{
$(this) .next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
});
});
</script>
Bookmarks