sidebars, too. Had to change nav menu to an id instead of class
to make this work.
If you see formatting problems the next day or two, hard reload
the page to pull fresh stylesheets. Sorry for this, but had to
fix the bug.
deryck
git-svn-id: file:///home/svn/samba-web/trunk@747
44aeb9d7-1cd8-0310-b257-
a505e0beeac2
<h4>Opening Windows to a Wider World</h4>
</div>
-<div class="nav">
+<div id="nav">
<img src="/samba/images/think.png" alt="think samba" />
<ul>
<h4>Opening Windows to a Wider World</h4>
</div>
-<div class="nav">
+<div id="nav">
<img src="/samba/images/think.png" alt="think samba" />
<ul>
<div id="left_border">
- <div class="nav">
+ <div id="nav">
<img src="/samba/images/release.png" alt="release samba" />
<ul>
<li><a href="/samba/index.html">Samba-Web Home</a></li>
window.onload = function init()
{
- // Set the center column length when its shorter than
- // the sidebars, Currently, only happens on support
- // and 3-column pages.
- if (document.getElementById('links') || document.getElementById('countries')) {
- setContentLen();
- }
+ // Set center column length longer than sidebars
+ setContentLen();
// Always load the "Choose a Mirror" option bu default
document.mirrorForm.mirrorLocation.selectedIndex=0
sidebar = document.getElementById('links');
} else if (document.getElementById('countries')) {
sidebar = document.getElementById('countries');
+ } else if (document.getElementById('nav')) {
+ sidebar = document.getElementById('nav');
}
// Get the sidebar height as integer
}
// Allow for the extra top margin value
- if (document.getElementById('links')) {
+ if (document.getElementById('links') ||
+ document.getElementById('nav')) {
sidebarY = sidebarY + 115;
} else if (document.getElementById('countries')) {
sidebarY = sidebarY + 240;
/* Nav menu
***********************************************************/
-.nav {
+#nav {
position:absolute;
top:152px;
left:20px;
margin:0;
z-index:1;
}
-.nav ul {
+#nav ul {
list-style-type:none;
text-align:center;
padding:0;
margin:0;
}
-.nav a,
-.nav a:link,
-.nav a:visited {
+#nav a,
+#nav a:link,
+#nav a:visited {
display:block;
height:20px;
font-size:small;
color:#2B5C9F;
}
-.nav a:hover {
+#nav a:hover {
color:#FFF;
background-color:#3878CD;
}
-.nav a:active {
+#nav a:active {
color:#FFFF64;
background-color:#3878CD;
font-size:14px;
}
-.nav img {
+#nav img {
padding:0;
margin:0;
width:180px;
</div>
-<div class="nav">
+<div id="nav">
<img src="/samba/images/help.png" alt="get help with samba" />
<ul>