Dako97669
06-02-2006, 07:08 PM
I have been fighting with this menu problem for the past 2 days (little sleep too) and really need help. I am trying to make a page for my art teacher, and I have added a drop down menu. I am aware that :hover does not work in IE. I have used "Suckerfish"'s javascript fix to fix the problem, except now the problem is that the words appearing on the menu tab appear way to the right and the drop down menu will only appear once each time the page is loaded. Please take a look any help is appreciated.
Site is Here (https://home.comcast.net/~tim.steele)
Page 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" />
<meta name="generator" content="Adobe GoLive" />
<title>AlGotliebGallery.com</title>
<link href="css/basic2.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript" type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("dropdown").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="head">
<div id="title">
Al Gotlieb Gallery.com
</div>
</div>
<div id="menu1">
<div class="option">
<a href="index.html">Home</a>
</div>
</div>
<div id="menu2">
<div class="option">
Press Release
</div>
</div>
<div id="menu3">
<div class="option">
Price List
</div>
</div>
<div id="menu4">
<div class="option">
<a href="mailto:algotlieb@comcast.net">Contact Me</a>
</div>
</div>
<div id="menu5">
<div id="dropdown">
<ul id="nav">
<li id="gallery">Galleries
<ul>
<li id="portfolio"><a href="">Portfolio Galleries</a>
<ul>
<li>
<a href="gallery1.html">Gallery 1</a>
</li>
</ul>
</li>
<li id="evolution"><a href="">Evolution of an Image Galleries</a>
<ul>
<li>
<a href="gallery10.html">Gallery 1</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="content">
<table id="main" width="750" cellspacing="0" cellpadding="10">
<tr>
<td colspan="3" width="750" height="15" class="optionbar">
Portfolio Galleries
</td>
</tr>
<tr>
<td width="250" class="menupic">
<a href="gallery1.html"><img src="images/A/thumbnails/1.jpg" border="0"></a>
</td>
<td width="250" class="menupic">
<img src="images/B/thumbnails/11.jpg" border="0">
</td>
<td width="250" class="menupic">
<img src="images/C/thumbnails/21.jpg" border="0">
</td>
</tr>
<tr>
<td class="menuoption">
<a href="gallery1.html">Gallery 1</a>
</td>
<td class="menuoption">
Gallery 2
</td>
<td class="menuoption">
Gallery 3
</td>
</tr>
<tr>
<td colspan="3" width="750" height="15" class="optionbar">
Evolution of an Image Gallaries
</td>
</tr>
<tr>
<td class="menupic" width="250">
<img src="images/Witchdoctor/thumbnails/1.jpg" border="0">
</td>
<td class="menupic" width="250"></td>
<td class="menupic" width="250"></td>
</tr>
<tr>
<td class="menuoption" width="250">
<a href="gallery10.html">Gallery 1</a>
</td>
<td class="menuoption" width="250"></td>
<td class="menuoption" width="250"></td>
</tr>
</table>
</div>
</body>
</html>
CSS code
body { background-color: #000; text-align: left; margin-top: 0; margin-left: 0; padding-top: 15px; padding-left: 15px; }
.option { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
.option a:link { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
.option a:hover { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: underline; text-align: center; padding-top: 10px; }
.option a:visited { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
a:link { color: white; font-size: 12px; text-decoration: none; }
a:visited { color: white; font-size: 12px; text-decoration: none; }
a:hover { color: #fff; font-size: 12px; text-decoration: underline; }
#head { color: #fff; font-size: 30px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-image: url(../images/header.jpg); background-repeat: no-repeat; text-decoration: none; text-align: left; width: 1000px; height: 200px; margin-left: 50px; padding-left: 50px; }
#main { position: absolute; left: 50px; padding-top: 50px; }
.menuoption { color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; padding-top: 6px; padding-bottom: 12px; }
.menupic { color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; padding-top: 30px; padding-bottom: 6px; }
.optionbar { background-color: #00c; color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; margin: 0; padding: 0; }
#title { position: absolute; top: 75px; left: 250px; }
.menu { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #00c; text-decoration: none; text-align: center; vertical-align: middle; width: 100px; height: 30px; }
#gallery { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; position: absolute; width: 100px; height: 29px; margin: 0; padding-top: 10px; padding-bottom: 0; }
#menubar { position: absolute; top: 150px; left: 205px; }
#menu1 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; vertical-align: bottom; position: absolute; top: 142px; left: 205px; width: 100px; height: 29px; }
#menu2 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 310px; width: 100px; height: 29px; vertical-align: bottom; }
#menu3 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 415px; width: 100px; height: 29px; vertical-align: bottom; }
#frame { left: 50px; }
#menu4 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 520px; width: 100px; height: 29px; vertical-align: bottom; }
#menu5 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 625px; width: 100px; height: 29px; vertical-align: bottom; list-style-type: none; }
#dropdown { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; vertical-align: middle; position: absolute; width: 100px; height: 20px; float: left; }
#dropdown ul { width: 100px; float: left; margin: 0; padding: 0; list-style-type: none; }
#dropdown a { color: #fff; font-size: 10px; font-weight: bold; background-color: #00c; text-decoration: none; text-align: center; vertical-align: middle; margin: 0; padding-top: 6px; padding-bottom: 6px; border: solid 1px #000; display: block; }
#dropdown a:hover { background-color: #000; }
#dropdown li { position: relative; }
#dropdown ul ul { position: absolute; top: 29px; z-index: 500; }
#dropdown ul ul ul { position: absolute; top: 0; left: 100%; }
div#dropdown ul ul { display: none; }
div#dropdown ul li:hover ul ul, div#dropdown ul li.sfhover ul ul { display: none; }
div#dropdown ul ul li:hover ul ul, div#dropdown ul ul li.sfhover ul ul { display: none; }
div#dropdown ul li:hover ul, div#dropdown ul li.sfhover ul { display: block; }
div#dropdown ul ul li:hover ul, div#dropdown ul ul li.sfhover ul { display: block; }
div#dropdown ul ul ul li:hover ul, div#dropdown ul ul ul li.sfhover ul { display: block; }
#mainframe { color: #fff; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; margin: 0; padding: 0; }
Thank you. Please Help!
Site is Here (https://home.comcast.net/~tim.steele)
Page 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" />
<meta name="generator" content="Adobe GoLive" />
<title>AlGotliebGallery.com</title>
<link href="css/basic2.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript" type="text/javascript">
sfHover = function() {
var sfEls = document.getElementById("dropdown").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="head">
<div id="title">
Al Gotlieb Gallery.com
</div>
</div>
<div id="menu1">
<div class="option">
<a href="index.html">Home</a>
</div>
</div>
<div id="menu2">
<div class="option">
Press Release
</div>
</div>
<div id="menu3">
<div class="option">
Price List
</div>
</div>
<div id="menu4">
<div class="option">
<a href="mailto:algotlieb@comcast.net">Contact Me</a>
</div>
</div>
<div id="menu5">
<div id="dropdown">
<ul id="nav">
<li id="gallery">Galleries
<ul>
<li id="portfolio"><a href="">Portfolio Galleries</a>
<ul>
<li>
<a href="gallery1.html">Gallery 1</a>
</li>
</ul>
</li>
<li id="evolution"><a href="">Evolution of an Image Galleries</a>
<ul>
<li>
<a href="gallery10.html">Gallery 1</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="content">
<table id="main" width="750" cellspacing="0" cellpadding="10">
<tr>
<td colspan="3" width="750" height="15" class="optionbar">
Portfolio Galleries
</td>
</tr>
<tr>
<td width="250" class="menupic">
<a href="gallery1.html"><img src="images/A/thumbnails/1.jpg" border="0"></a>
</td>
<td width="250" class="menupic">
<img src="images/B/thumbnails/11.jpg" border="0">
</td>
<td width="250" class="menupic">
<img src="images/C/thumbnails/21.jpg" border="0">
</td>
</tr>
<tr>
<td class="menuoption">
<a href="gallery1.html">Gallery 1</a>
</td>
<td class="menuoption">
Gallery 2
</td>
<td class="menuoption">
Gallery 3
</td>
</tr>
<tr>
<td colspan="3" width="750" height="15" class="optionbar">
Evolution of an Image Gallaries
</td>
</tr>
<tr>
<td class="menupic" width="250">
<img src="images/Witchdoctor/thumbnails/1.jpg" border="0">
</td>
<td class="menupic" width="250"></td>
<td class="menupic" width="250"></td>
</tr>
<tr>
<td class="menuoption" width="250">
<a href="gallery10.html">Gallery 1</a>
</td>
<td class="menuoption" width="250"></td>
<td class="menuoption" width="250"></td>
</tr>
</table>
</div>
</body>
</html>
CSS code
body { background-color: #000; text-align: left; margin-top: 0; margin-left: 0; padding-top: 15px; padding-left: 15px; }
.option { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
.option a:link { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
.option a:hover { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: underline; text-align: center; padding-top: 10px; }
.option a:visited { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; text-align: center; padding-top: 10px; }
a:link { color: white; font-size: 12px; text-decoration: none; }
a:visited { color: white; font-size: 12px; text-decoration: none; }
a:hover { color: #fff; font-size: 12px; text-decoration: underline; }
#head { color: #fff; font-size: 30px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-image: url(../images/header.jpg); background-repeat: no-repeat; text-decoration: none; text-align: left; width: 1000px; height: 200px; margin-left: 50px; padding-left: 50px; }
#main { position: absolute; left: 50px; padding-top: 50px; }
.menuoption { color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; padding-top: 6px; padding-bottom: 12px; }
.menupic { color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; padding-top: 30px; padding-bottom: 6px; }
.optionbar { background-color: #00c; color: white; font-size: 12px; font-weight: bold; text-decoration: none; text-align: center; margin: 0; padding: 0; }
#title { position: absolute; top: 75px; left: 250px; }
.menu { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #00c; text-decoration: none; text-align: center; vertical-align: middle; width: 100px; height: 30px; }
#gallery { color: white; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; position: absolute; width: 100px; height: 29px; margin: 0; padding-top: 10px; padding-bottom: 0; }
#menubar { position: absolute; top: 150px; left: 205px; }
#menu1 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; vertical-align: bottom; position: absolute; top: 142px; left: 205px; width: 100px; height: 29px; }
#menu2 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 310px; width: 100px; height: 29px; vertical-align: bottom; }
#menu3 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 415px; width: 100px; height: 29px; vertical-align: bottom; }
#frame { left: 50px; }
#menu4 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 520px; width: 100px; height: 29px; vertical-align: bottom; }
#menu5 { background-image: url(../images/menu.jpg); background-repeat: no-repeat; text-align: center; position: absolute; top: 142px; left: 625px; width: 100px; height: 29px; vertical-align: bottom; list-style-type: none; }
#dropdown { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; text-decoration: none; vertical-align: middle; position: absolute; width: 100px; height: 20px; float: left; }
#dropdown ul { width: 100px; float: left; margin: 0; padding: 0; list-style-type: none; }
#dropdown a { color: #fff; font-size: 10px; font-weight: bold; background-color: #00c; text-decoration: none; text-align: center; vertical-align: middle; margin: 0; padding-top: 6px; padding-bottom: 6px; border: solid 1px #000; display: block; }
#dropdown a:hover { background-color: #000; }
#dropdown li { position: relative; }
#dropdown ul ul { position: absolute; top: 29px; z-index: 500; }
#dropdown ul ul ul { position: absolute; top: 0; left: 100%; }
div#dropdown ul ul { display: none; }
div#dropdown ul li:hover ul ul, div#dropdown ul li.sfhover ul ul { display: none; }
div#dropdown ul ul li:hover ul ul, div#dropdown ul ul li.sfhover ul ul { display: none; }
div#dropdown ul li:hover ul, div#dropdown ul li.sfhover ul { display: block; }
div#dropdown ul ul li:hover ul, div#dropdown ul ul li.sfhover ul { display: block; }
div#dropdown ul ul ul li:hover ul, div#dropdown ul ul ul li.sfhover ul { display: block; }
#mainframe { color: #fff; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; margin: 0; padding: 0; }
Thank you. Please Help!