File:  [mozdev] / bbecontainer / www / menu.js
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Nov 18 16:21:59 2009 UTC (9 years, 4 months ago) by moonwalker
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

var current_submenu=false;
function show_submenu(self,parent)
{
	if(!current_submenu) {
		current_submenu=document.getElementById('dummy_submenu');		
	}
	current_submenu.style.display='none';
	current_submenu=document.getElementById(parent+'_submenu');
	current_submenu.style.display='block';
}
function init_menu()
{
	var src=document.getElementById('menu_src');
	var dest=document.getElementById("menu_element");
	//alert(src.document.body.innerHTML);
	dest.innerHTML=( (src.contentDocument)?src.contentDocument:src.document ).body.innerHTML;
}

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