/*BETA - Databasewatch menu system version 0.8.4 * written by Andy Woolley * Copyright 2001 Andy Woolley. All Rights Reserved. * * Please feel free to use this code on your own website free of charge. * You can also distribute and modify this source code as long as this * Copyright notice remains intact and you send me notice that you * intend to use this code on your website. I can only support this product * if you let me know. * dbmenu@milonic.com */ font = "MS Pゴシック, Osaka"; fontweight = "bold"; fontsize = 12; menubgcolor = "FFFFFF"; menufgcolor = "000000"; menuonbgcolor = "FFE4E1"; menuonfgcolor = "ff0000"; bordercolor = "FFD1A4"; keepselected = true; timegap = 500; mpadding=5; //var ccc=screen.width/2+25; ccc=window.document.body.clientWidth/2+39; // Syntax //menus[MENU NUMBER] = new Array( //"TOP", "LEFT", "HEIGHT", "WIDTH", "BORDER WIDTH","MENU TITLE" //"MENU TITLE", "URL" //); menu1 = new Array( "9",ccc-421,"17","125","2","2","","","","", "レンタルサーバー","server.html",1, "ASPソフト貸し出し","asp.html",1, "ホームページ例","homepage.html",1 ); menu2 = new Array( "9",ccc-297,"170","140","2","2","","","","", "開発ソフト一覧","soft.html",1, "web受発注ソフト","weborder.html",1 ); menu3 = new Array( "9",ccc-171,"170","140","2","2","","","","", "ブログ(快進撃)","http://www.iii-estate.com/blog/index.html",1, "ASPとはQ&A","q&a.html",1, "ソルーション事例","solution.html",1 ); menu4 = new Array( "9",ccc-44,"170","140","2","2","","","","", "会社概要","whois.html",1, "問い合わせ","toiawase.html",1, "プレスリリース","press.html",1 ); menu5 = new Array( "9",ccc+82,"170","140","2","2","","","","", "募集要項・新卒","boshu_sinsotu.html",1, "募集要項・中途","boshu_chuto.html",1, "採用スケジュール","schedule.html",1, "申し込みフォーム","recruit_form.html",1 ); menu6 = new Array( "58",ccc+208,"170","130","2","2","","","","", "トップページ","index.php",1 ); mdom = (document.getElementById) ? true : false; mie = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; mns6 = (navigator.vendor == ("Netscape6") != -1) ? true : false; NS = (document.layers) ? true : false; mopera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; arraycorrect = 10; timer=0; selmenu = ""; selitem = ""; closestr = ""; openmenus = new Array(); oldcount = 0; function getmenuobj(menutext) { if (document.getElementById) {menui = document.getElementById(menutext).style;} else if (document.all) {menui = document.all[menutext].style;} else if (document.layers) {menui = document.layers.eval(menutext);} return menui; } function closeallmenus() { for (a=0; a < openmenus.length; a++) { menutexta = openmenus[a]; menitema = getmenuobj(menutexta); menitema.visibility = 'hidden'; } } function closemenu() { timer = setTimeout("closeallmenus()",timegap) } function popup(menunum) { clearTimeout(timer); menutext = 'menu' + menunum; menitem = getmenuobj(menutext); closeallmenus(); delete(openmenus); openmenus = new Array(); openmenus[openmenus.length] = menutext; menitem.visibility = 'visible'; } function showel(lyr, el, show, menuname, menustr) { clearTimeout(timer); menutext = 'el' + el; if (document.getElementById) {menitem = document.getElementById(menutext).style;} else if (document.all) {menitem = document.all[menutext].style;} else if (NS) {menitem = document.layers[lyr -1].document.layers[el - 1].document.layers[0];} if (show) { menitem.visibility="visible"; popup(lyr); } else { menitem.visibility="hidden"; closemenu(); } } function dc() { location.href=window.status; } menus = 1; mentext = ""; menarr = ""; while(eval("window.menu" + menus)) { menarr += "menu" + menus + ","; submenus = 1; while(eval("window.menu" + menus + "_" + submenus)) { menarr += "menu" + menus + "_" + submenus + ","; submenus++; } tmenu = eval("menu" + menus); menus++; } menuarray = menarr.split("\,"); menus = menuarray.length; elcount=0; stxt = "
"; document.write(stxt); lh = mpadding + fontsize; for (a=1; a < menus; a++) { mentext = ""; menu = eval(menuarray[a - 1]); if (mie) {divwidth = " style='width:100%;' "; divcol = "";} else if (mdom) {divwidth = "style='width:" + (menu[3] - (mpadding * 2)) + ";'"; divcol = "background-color:" + bordercolor + ";";} if (NS) {mentext += "";} else {mentext += "
";} mentext += "\n"; acount = 0; divwidth=""; if (mie) {divwidth = " style='width:100%;' ";} else if (mdom) { divwidth = "style='width:" + (menu[3] - (mpadding * 2)) + ";'"; } atop = parseInt(menu[4]); for (b=arraycorrect; b < menu.length ; b++) { b = b + 2; borderwidth = parseInt(menu[4]); bw = borderwidth * 2; elcount++; acount++; if (NS) { mentext += "\n\n"; document.write(mentext); mentext = ""; if (NS) { mt = document.layers[a - 1].document.layers[acount - 1].document.layers[0]; atop += mt.clip.height + parseInt(menu[4]); } } if (NS) {mentext += ""} mentext += "
"; mentext += "\n"; mentext += ""; mentext += "
"; mentext += "" + menu[b - 2] + ""; mentext += "
"; mentext += "
"; mentext += "
" + menu[b - 2] + "
"; mentext += "
"; } else if (mopera) { mentext += "
"; mentext += ""; mentext += "
" + menu[b - 2] + "
"; mentext += "
" + menu[b - 2] + "
"; } else { mentext += "
"; mentext += ""; mentext += "
"; mentext += menu[b - 2] + "
"; } mentext += "
"; if (NS) {mentext += ""} else {mentext += "
"} document.write(mentext); if (mopera) { oh = 0; optop = borderwidth; icount = elcount - oldcount; ecount = elcount - icount; for (x=1; x<=icount; x++) { cnt = ecount + x; mi = getmenuobj('el' + cnt) mia = getmenuobj('ophlid' + cnt) mia.top = optop; optop += mi.pixelHeight + borderwidth; } oldcount = elcount; } } if (NS) {document.write("
")} else {document.write("
")}