OK. I should be called mother Theresa, cause this was a labor of love....
this is going to be a long one....
[ol]
[li]
lets try to make the code a little more standard and add the </li> closing tag to all your <li>.
[/li]
[li]
Get rid of all your CSS definitions for #navbox[1-3] and #navbox_line[1-3]. just delete them.
replace those 6 lines with the following.
Code:
.navbox_reg {
BORDER-RIGHT: #b0a590 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #b0a590 1px solid; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 10px 0px; BORDER-LEFT: #b0a590 1px solid; WIDTH: 100%; PADDING-TOP: 0px; BORDER-BOTTOM: #b0a590 1px solid;
}
.navbox_dark {
BORDER: #000000 1px solid; PADDING-RIGHT: 0px 0px 0px 0px; DISPLAY: block;WIDTH: 100%; MARGIN: 10px 0px;
}
.navbox_line_reg {
PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: bold; BACKGROUND: #b0a590; PADDING-BOTTOM: 1px; COLOR: #f1e9da; PADDING-TOP: 1px;
}
.navbox_line_dark {
PADDING-RIGHT: 5px; DISPLAY: block; PADDING-LEFT: 5px; FONT-WEIGHT: bold; BACKGROUND: #000000; PADDING-BOTTOM: 1px; COLOR: #f1e9da; PADDING-TOP: 1px;
}
[/li]
[ul]
[li]if you are not using specific styles for each one of the borders I suggest you use the 'global' notation for all 4 borders. THIS--->>
border: #000000 1px solid; is more manageable than 4 separate declarations defining the same style.
[/li]
[/ul]
[li]
change your javascript to the following.
Code:
<SCRIPT language=JavaScript>
function change(objSrc){
document.getElementById(objSrc).className = "navbox_dark";
document.getElementById(objSrc + "_line").className = "navbox_line_dark";
}
function change_back(objSrc){
document.getElementById(objSrc).className = "navbox_reg";
document.getElementById(objSrc + "_line").className = "navbox_line_reg";
}
</SCRIPT>
[/li]
[li]
Add a class name to all your navbox divs and navbox_line spans.
You should have something like
Code:
<DIV id=navbox1 [b]class="navbox_reg"[/b] onmouseover="change('navbox1')" onmouseout="change_back('navbox1')">
<SPAN id=navbox1_line [b]class="navbox_line_reg"[/b]>Archive</SPAN>
on all of them. Use the same class name with no trailing numbers for all three sections Archive,Links and CSS › Code
[/li]
[li] I suggest you minimize your CSS definition as much as possible and move it out of the HTML file and just link it.
If you are going to have the same style definition on every page it will be hell to manage it once you need to change something. BEsides having all the Style code on every page will increase download time. If you have all the style in a different file it will load once and then go to cache, making your contents load faster.
[/li]
[/ol]
wooow that was a long one... but it works I tested and there's no flickering anymore.
hope that helps. post back if you have questions.
grtfercho çB^]\..
"Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------