Hej, har et problem med en dropdown menu med css og javascript. Menuen skal benyttes i et projekt, hvorfor der skal være både css og javascript med, men kan ikke få selve menuen til at folde sig ud når jeg "hover" henover. Benytter notepad++ til redigering - ved ikke om det kan være problemet, men tror det ikke - men ville blive meget glad om nogen herinde kan se hvad der skal gøres for at menuen vil kunne folde sig ud. Har indsat koderne herunder - først javascript koden og dernæst css koden.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>JavaScript Dropdown Menu</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<ul class="menu" id="menu">
<li>
<a href="#" class="menulink">Dropdown Menu 1</a>
<ul>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 1</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 2</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 3</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 4</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 5</a></li>
</ul>
</li>
<li>
<a href="#" class="menulink">Dropdown Menu 2</a>
<ul>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 1</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 2</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 3</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 4</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 5</a></li>
</ul>
</li>
<li>
<a href="#" class="menulink">Dropdown Menu 3</a>
<ul>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 1</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 2</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 3</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 4</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 5</a></li>
</ul>
</li>
<li>
<a href="#" class="menulink">Dropdown Menu 4</a>
<ul>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 1</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 2</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 3</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 4</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 5</a></li>
</ul>
</li>
<li>
<a href="#" class="menulink">Dropdown Menu 5</a>
<ul>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 1</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 2</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 3</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 4</a></li>
<li><a href="http://www.google.com" class="sub">Dropdown Menu 5</a></li>
</ul>
<div id="text" style="float:left; clear:left; width:650px; margin-top:10px">
</div>
<script type="text/javascript">
var menu=new menu.dd("menu");
menu.init("menu","menuhover");
</script>
</body>
</html>
body {margin:25px; font:11px Verdana,Arial; background:#eee}
ul.menu {list-style:none; margin:0; padding:0}
ul.menu * {margin:0; padding:0}
ul.menu a {display:block; color:#000; text-decoration:none}
ul.menu li {position:relative; float:left; margin-right:2px}
ul.menu ul {position:absolute; top:26px; left:0; background:#d1d1d1; display:none; opacity:0; list-style:none}
ul.menu ul li {position:relative; border:1px solid #aaa; border-top:none; width:148px; margin:0}
ul.menu ul li a {display:block; padding:3px 7px 5px; background-color:#d1d1d1}
ul.menu ul li a:hover {background-color:#c5c5c5}
ul.menu ul ul {left:148px; top:-1px}
ul.menu .menulink {border:1px solid #aaa; padding:5px 7px 7px; font-weight:bold; background:url(images/header.gif); width:134px}
ul.menu .menulink:hover, ul.menu .menuhover {background:url(images/header_over.gif)}
ul.menu .sub {background:#d1d1d1 url(images/arrow.gif) 136px 8px no-repeat}
ul.menu .topline {border-top:1px solid #aaa}