As far as I can tell, my coding is identical to that of their example: http://htmldog.com/articles/suckerfish/dro...ple/bones2.html - however... it won't work right.
What am I doing wrong here?
XHTML:
<!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=ISO-8859-1" />
<title>Title</title>
<link rel="stylesheet" type="text/css" href="../test/test1.css" />
<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>
<body>
<div id="container">
<!--Banner-->
<div id="banner">
<h1>Banner</h1>
</div>
<!--Navigation Bar-->
<div id="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<ul>
<li><a href="#">More</a></li>
<li><a href="#">EvenMore</a></li></ul>
<li><a href="#">Products</a></li>
<ul>
<li><a href="#">All Products</a></li>
<li><a href="#">Audio Courses</a></li>
<li><a href="#">Books</a></li>
<li><a href="#">DVDs</a></li>
<li><a href="#">E-Books</a></li>
<li><a href="#">Other</a></li></ul>
<li><a href="#">Resources</a></li>
<ul>
<li><a href="#">Downloads</a></li>
<li><a href="#">Reading Lists</a></li>
<ul>
<li><a href="#">B</a></li>
<li><a href="#">M</a></li>
<li><a href="#">S</a></li></ul>
</ul>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Book</a></li>
</ul>
</div>
<div id="clearDiv"></div>
<!--Left Sidebar-->
<div id="sidebarL">
<p></p>
</div>
<!--Main Content-->
<div id="main">
<h2>Title</h2>
<p></p>
</div>
<!--Right Sidebar-->
<div id="sidebarR">
<p></p>
</div>
<!--Footer-->
<div id="footer">
</div>
</div>
</body>
</html>
CSS:
body {
padding: 0;
margin: 0;
text-align: center;
background-color: black;
}
/*Layout*/
#container {
width: 940px;
margin-top: 10px;
margin-right: auto;
margin-bottom: 10px;
margin-left: auto;
padding: 0;
text-align: left;
}
#banner {
margin: 0;
padding: 0;
height: 125px;
background-color: #ffffff;
}
#nav {
width: 940px;
height: 25px;
margin: 0;
padding: 0;
font-color: #ffffff;
background-color: red;
}
/*Drop-down Menu*/
#nav, #nav ul {
padding: 0;
margin: 0;
list-style: none;
line-height: 1;
}
#nav a {
display: block;
width: 10em;
text-decoration: none;
}
#nav li {
float: left;
width: 10em;
}
#nav li ul {
position: absolute;
background: red;
width: 10em;
left: -999em;
}
#nav li ul ul {
margin-top: -1em 0 0 10em;
}
#nav li:hover ul ul, #nav li.sfhover ul ul {
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul {
left: auto;
}
#clearDiv {
clear: left;
}
#sidebarL {
width: 160px;
float: left;
margin: 0;
padding: 10px;
background-color: blue;
}
#main {
width: 560px;
float: left;
margin: 0;
padding: 10px;
background-color: #ffffff
}
#sidebarR {
width: 160px;
float: right;
margin: 0;
padding: 10px;
background-color: blue;
}
#footer {
width: 940px;
height: 25px;
clear: both;
margin: 0;
padding: 0;
text-align: center;
background-color: red;
}
I'm thinking I may just stop messing with the fanshy-shmanshy shtuff.
Thank you for all your help ahead of time!! Don't know what we scripters would be without eachother
Mr. Just ok.