File:  [mozdev] / bbecontainer / www / menu.htm
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Nov 3 13:21:51 2009 UTC (8 years, 1 month ago) by moonwalker
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <link rel="STYLESHEET" href="styles.css" type="text/css">
  <script type="text/javascript" src="menu.js"></script>
  <title>BBEcontainer</title>
<script>
function Init()
{ 
	  var parseStyleAttr=function(prop) {
		return parseInt( /([\d]+)px/.exec(prop) )
	}
	var content=document.body //document.getElementById('content_frame')
	//content.style.paddingTop=0;
	var style=window.getComputedStyle(content,null);
	var h=( parseStyleAttr(style.marginBottom)+parseStyleAttr(style.marginTop) );
	content.style.height= (
			window.innerHeight-
			//content.offsetParent.clientHeight-  content.offsetTop-  content.offsetParent.scrollTop  -
				h
			)+'px';
	//alert(content.style.height)
	//frame
	content=document.getElementById('content_frame')
	style=window.getComputedStyle(content,null);
	h=( parseStyleAttr(style.marginBottom)+parseStyleAttr(style.marginTop)+
	parseStyleAttr(style.borderBottomWidth)+parseStyleAttr(style.borderTopWidth) );
		content.style.height= (
			window.innerHeight-  content.offsetTop-
				h
			)+'px';
}
</script>
<!-- ************************** -->
</head>
<body style="margin-bottom:0;background-color:red;" onload="Init()">
<div style="padding: 10px 0px;height:10%; line-height:90%;font-size: 30px; background-color: rgb(0, 208, 0);"
 align="center"> BBEcontainer </div>
<!-- MENU ********************************************************* -->
<div class="main_menu" id="menu_element">
<a class="main_menu_item" href="home.html" target="content_frame" onmouseover="show_submenu(this,'dummy');">home</a>
<a class="submenu_title" href="#" onmouseover="show_submenu(this,'config');">configure</a>
<a class="main_menu_item" target="content_frame" href="adapt_editor.html" onmouseover="show_submenu(this,'dummy');">adjust editor</a>
<a class="main_menu_item" target="content_frame" href="use.html" onmouseover="show_submenu(this,'dummy');">use</a>
<div class="submenu" id="dummy_submenu" style="display: block;">
&nbsp;
</div>
<div class="submenu" id="config_submenu" style="display: none;">
<a class="main_menu_item" target="content_frame" href="config_guide.html">guide</a>
<a class="main_menu_item" target="content_frame" href="config.html">config dialog reference</a>
</div>

</div>
<br clear="all">
<!-- ************************************************************** -->
<iframe id="content_frame" name="content_frame"  src="home.html"
	style="background-color:white;border:2px solid;width:100%;height:70%;margin-bottom:0px;"></iframe>
</body>
</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>