That's because there are some mistakes in the code. Here is a fixed version that validates as well:
HTML Code:
<!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=UTF-8" />
<title>Untitled Document</title>
<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
//--><!]]></script>
<style type="text/css">
#nav ul {
display:inline;
}
#nav {
width:744px;
display:inline;
background-color:#000000;
overflow:hidden;
}
#nav a {
color:#FFFFFF;
padding: 3px;
display: block;
font:bold 12px Arial Narrow, Verdana, Arial, sans-serif;
background: #000000;
text-decoration:none;
border-right: 1px solid #778;
}
#nav a:hover {
text-decoration:underline;
color:#000000;
background:#FFFFFF;
}
#nav li li a {
/*can set a width here*/
}
#nav li li a:hover {
/*can set a width here*/
}
#nav li ul li a:hover {
/*can set a width here*/
}
#nav li {
list-style:none;
float: left;
position: relative;
cursor: default;
}
#nav li ul {
display: none;
position: absolute;
top: 100%;
left: 0;
font-weight: normal;
}
#nav li>ul {
top: auto;
left: auto;
}
#nav li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}
#nav li:hover ul, #nav li.over ul {
display: block;
border:1px #000000 solid;
}
</style>
</head>
<body>
<div id="myslidemenu" class="jqueryslidemenu">
<ul id="nav">
<li id="first"><a href="index.htm">HOME</a></li>
<li><a href="history.htm">HISTORY</a>
<ul>
<li><a href="introductionderrydioceseparishes.htm">AN INTRODUCTION TO THE PARISHES OF THE DERRY DIOCESE</a></li>
<li><a href="ourstory.htm">OUR STORY</a></li>
<li><a href="parishpriests.htm">PARISH PRIESTS AND CURATES</a></li>
</ul>
</li>
<li><a href="newsandevents.htm">NEWS AND EVENTS</a>
<ul>
<li><a href="#">Sub Item 1.2</a></li>
<li><a href="#">Sub Item 1.3</a></li>
<li><a href="#">Sub Item 1.4</a></li>
</ul>
</li>
<li><a href="events.htm">EVENTS 2008</a></li>
<li><a href="ministrygroups.htm">MINISTRY GROUP</a></li>
<li><a href="newsandevents.htm">NEWS AND EVENTS</a>
<ul>
<li><a href="#">Sub Item 1.2</a></li>
<li><a href="#">Sub Item 1.3</a></li>
<li><a href="#">Sub Item 1.4</a></li>
</ul>
</li>
<li><a href="youngpeople.htm">YOUNG PEOPLE</a></li>
<li><a href="school.htm">SCHOOL</a></li>
<li><a href="guestbook.php">GUESTBOOK</a></li>
<li><a href="links.htm">LINKS</a></li>
<li id="last"><a href="contactus.htm">LINKS</a></li>
</ul>
</div>
</body>
</html>
Bookmarks