Well, there are other ways but, I like this one. First, you will need a DOCTYPE. Almost any will do, this one shouldn't cause many, if any problems with your average page:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
It is shown in red, placed just above the opening <html> tag for the page, which is where it belongs. Next, use this style section:
Code:
<style type="text/css">
* html {
overflow: hidden;
}
* html body {
margin: 0;
padding: 0;
height:100%;
height:expression(document.documentElement.clientHeight+'px');
width:expression(document.documentElement.clientWidth+'px');
overflow: auto;
}
* html #container {
margin:15px 10px;
}
#slidemenubar, #slidemenubar2{
position:fixed!important;
position:absolute;
border:1.5px solid black;
line-height:20px;
}
</style>
Substitute it for the one that comes with the script. Finally, add these two comment blocks, the first one right after the script:
Code:
</script>
<!--[if IE]>
<div id="container">
<![endif]-->
The second one, right before the closing </body> tag (after all of the rest of your page's content):
Code:
<!--[if IE]>
</div>
<![endif]-->
</body>
Bookmarks