Aerden
09-09-2007, 12:30 AM
Well I wanted to have an advanced sliding drop down menu on my page but I can't get it in the position I want. I want it to be centered on the page taking up the width of the main div. Each link should take up the same percentage of the width of the main div and should be centered in that area. (Sorry for my horrible explanation.
Because I know little to nothing about JS I had to use someone else's script.
Here is the HTML doc.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="Formats/Drop Down Menu.js"></script>
<link type="text/css" rel="stylesheet" href="Formats/Drop Down Menu.css">
<style type="text/css">
body {
margin: 10px;
text-align: center;
font: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background: #000000 url(Formats/Background%20v2.jpg) no-repeat top center;
}
#container {
margin-left: auto;
margin-right: auto;
height: 800px;
width: 814px;
}
qm0 {
margin-left: auto;
margin-right: auto;
}
#main {
float: left;
height: 100%;
width: 800px;
border-left: 1px solid #666666;
border-right: 1px solid #666666;
background: #EEEEEE;
}
</style>
</head>
<body>
<div id="qm0" class="qmmc">
<a href="javascript:void(0)">Main</a>
<a href="javascript:void(0)">Members</a>
<div>
<a href="javascript:void(0)">Leader</a>
<div>
<a href="javascript:void(0)">Quetzal</a>
</div>
<a href="javascript:void(0)">Sackholders</a>
<a href="javascript:void(0)">Members</a>
</div>
<a href="javascript:void(0)">Who We Are</a>
<div>
<a href="javascript:void(0)">Management</a>
<a href="javascript:void(0)">Global Sites</a>
<div>
<a href="javascript:void(0)">Asia</a>
<a href="javascript:void(0)">South America</a>
<a href="javascript:void(0)">Australia</a>
<a href="javascript:void(0)">North America</a>
<a href="javascript:void(0)">Europe</a>
<a href="javascript:void(0)">Africa</a>
</div>
<a href="javascript:void(0)">Investors</a>
<div>
<a href="javascript:void(0)">Asia</a>
<a href="javascript:void(0)">South America</a>
<a href="javascript:void(0)">Australia</a>
<a href="javascript:void(0)">North America</a>
<a href="javascript:void(0)">Europe</a>
<a href="javascript:void(0)">Africa</a>
</div>
<a href="javascript:void(0)">Worldwide</a>
<a href="javascript:void(0)">Product Overview</a>
<a href="javascript:void(0)">Publicity</a>
</div>
<a href="javascript:void(0)">Our Investors</a>
<div>
<a href="javascript:void(0)">Annual Meetings</a>
<a href="javascript:void(0)">Financial Reports</a>
<a href="javascript:void(0)">Nasdaq Quoting</a>
<a href="javascript:void(0)">Dividend Information</a>
<a href="javascript:void(0)">Future Outlook</a>
<a href="javascript:void(0)">CEO Announcements</a>
</div>
<a href="javascript:void(0)">Our Commitment</a>
<div>
<a href="javascript:void(0)">Satisfaction</a>
<a href="javascript:void(0)">Our Goals</a>
<a href="javascript:void(0)">Product Warranty</a>
<a href="javascript:void(0)">Future Outlook</a>
<a href="javascript:void(0)">Product Quality</a>
<a href="javascript:void(0)">Continued Support</a>
</div>
<span class="qmclear"> </span>
</div>
<div id="container>.... etc. Main div and trims to the main div are here
</div>
<!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click, Right to Left, Horizontal Subs, Flush Left) -->
<script type="text/javascript">qm_create(0,false,0,250,false,false,false,false);</script>
</body>
</html>
Because I know little to nothing about JS I had to use someone else's script.
Here is the HTML doc.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="Formats/Drop Down Menu.js"></script>
<link type="text/css" rel="stylesheet" href="Formats/Drop Down Menu.css">
<style type="text/css">
body {
margin: 10px;
text-align: center;
font: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
background: #000000 url(Formats/Background%20v2.jpg) no-repeat top center;
}
#container {
margin-left: auto;
margin-right: auto;
height: 800px;
width: 814px;
}
qm0 {
margin-left: auto;
margin-right: auto;
}
#main {
float: left;
height: 100%;
width: 800px;
border-left: 1px solid #666666;
border-right: 1px solid #666666;
background: #EEEEEE;
}
</style>
</head>
<body>
<div id="qm0" class="qmmc">
<a href="javascript:void(0)">Main</a>
<a href="javascript:void(0)">Members</a>
<div>
<a href="javascript:void(0)">Leader</a>
<div>
<a href="javascript:void(0)">Quetzal</a>
</div>
<a href="javascript:void(0)">Sackholders</a>
<a href="javascript:void(0)">Members</a>
</div>
<a href="javascript:void(0)">Who We Are</a>
<div>
<a href="javascript:void(0)">Management</a>
<a href="javascript:void(0)">Global Sites</a>
<div>
<a href="javascript:void(0)">Asia</a>
<a href="javascript:void(0)">South America</a>
<a href="javascript:void(0)">Australia</a>
<a href="javascript:void(0)">North America</a>
<a href="javascript:void(0)">Europe</a>
<a href="javascript:void(0)">Africa</a>
</div>
<a href="javascript:void(0)">Investors</a>
<div>
<a href="javascript:void(0)">Asia</a>
<a href="javascript:void(0)">South America</a>
<a href="javascript:void(0)">Australia</a>
<a href="javascript:void(0)">North America</a>
<a href="javascript:void(0)">Europe</a>
<a href="javascript:void(0)">Africa</a>
</div>
<a href="javascript:void(0)">Worldwide</a>
<a href="javascript:void(0)">Product Overview</a>
<a href="javascript:void(0)">Publicity</a>
</div>
<a href="javascript:void(0)">Our Investors</a>
<div>
<a href="javascript:void(0)">Annual Meetings</a>
<a href="javascript:void(0)">Financial Reports</a>
<a href="javascript:void(0)">Nasdaq Quoting</a>
<a href="javascript:void(0)">Dividend Information</a>
<a href="javascript:void(0)">Future Outlook</a>
<a href="javascript:void(0)">CEO Announcements</a>
</div>
<a href="javascript:void(0)">Our Commitment</a>
<div>
<a href="javascript:void(0)">Satisfaction</a>
<a href="javascript:void(0)">Our Goals</a>
<a href="javascript:void(0)">Product Warranty</a>
<a href="javascript:void(0)">Future Outlook</a>
<a href="javascript:void(0)">Product Quality</a>
<a href="javascript:void(0)">Continued Support</a>
</div>
<span class="qmclear"> </span>
</div>
<div id="container>.... etc. Main div and trims to the main div are here
</div>
<!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click, Right to Left, Horizontal Subs, Flush Left) -->
<script type="text/javascript">qm_create(0,false,0,250,false,false,false,false);</script>
</body>
</html>