YAHOO UI メニュー( 通常横タイプ )


  指定位置、対親幅100%横メニュー





















  ページスタイル




  

<STYLE type="text/css">
* {
	font-family: "MS Pゴシック";
	font-size: 12px;
}
BODY {
	background-color: white;
	color: black;
}

/* メニュー本体 */
#menuunit_1 {
	visibility:hidden;	/* 初期状態 : 元々は ul-li なので非表示にする */
/*	width:700px; */
}

/* トップメニューの色や形状 */
#menuunit_style_1 {

}

/* サブメニューの色や形状 */
.bd {

}

/* メニュー共通 */
.bd A:link	{ color:black; font-weight:bold; }
.bd A:visited	{ color:black; font-weight:bold; }
.bd A:active	{ color:black; font-weight:bold; }
.bd A:hover	{ color:red;   font-weight:bold; }
.bd A {
	font-family: "MS Pゴシック" !important;
	font-size: 12px !important;
	text-align: left;
}

</STYLE>
  

  外部ライブラリ

  

<link rel="stylesheet" type="text/css" href="YUI/menu.css" />
<script type="text/javascript" src="YUI/yahoo-dom-event.js"></script>
<script type="text/javascript" src="YUI/animation-min.js"></script>
<script type="text/javascript" src="YUI/container_core-min.js"></script>
<script type="text/javascript" src="YUI/menu-min.js"></script>
  

↓からダウンロード( BSD ライセンス )
http://lightbox.on.coocan.jp/download/YUI.lzh

  メインユニット

  

<div style='position:relative;width:100%'>
<div class="yui-skin-sam" style='position:absolute;left:0px;top:5px;width:100%'>
<div id="menuunit_1" class="yuimenubar yuimenubarnav" style=''>
<div id="menuunit_style_1" class="bd">
	<ul class="first-of-type">
		<!-- 基本メニューの1 -->
		<li class="yuimenubaritem"><a
			class="yuimenubaritemlabel"
			href="http://hp.vector.co.jp/authors/VA003334/"
			target="_blank"
		>SQLの窓1</a></li>
		<!-- 基本メニューの2 -->
		<li class="yuimenubaritem"><a
			class="yuimenubaritemlabel"
			href="http://winofsql.jp/"
			target="_blank"
		>SQLの窓2</a></li>
		<!-- 基本メニューの3 -->
		<li class="yuimenubaritem"><a
			class="yuimenubaritemlabel"
			href="http://homepage2.nifty.com/lightbox/"
			target="_blank"
		>SQLの窓3</a></li>
	</ul>
</div>
</div>
</div>
</div>
  

  スクリプト

  

<script type="text/javascript">

var oMenu = new YAHOO.widget.MenuBar(
		"menuunit_1", 
		{
			autosubmenudisplay: true,
			hidedelay: 750, 
			lazyload: true
		}
	);


oMenu.beforeRenderEvent.subscribe(function () {

	var oSubmenuData = {
	
	"SQL1": [
	
		{
			text: "楽じゃない空間",
			url: "http://lightbox.on.coocan.jp/",
			target: "_blank"
		},

		{
			text: "RunDLL32.EXE 抜粋",
			url: "http://winofsql.jp/pinpoint/rundll32.htm",
			disabled: true,
			target: "_blank" 
		}
	
	],

	"SQL2": [

		{
			text: "PHP : リコンパイルバージョン",
			url: "http://homepage2.nifty.com/lightbox/php.chm",
			target: "_blank"
		},

		{
			text: " ",
			url: "#",
			disabled: true
		},

		{ text: "IT用語辞典", submenu: { id: "outerlink", itemdata: [

			{
				text: "資料室",
				url: "http://e-words.jp/p/r.html",
				target: "_blank"
			},

			{
				text: "HTMLの特殊文字",
				url: "http://e-words.jp/p/r-htmlentity.html",
				target: "_blank" 
			},

			{ text: "IT用語辞典", submenu: { id: "outerlink2", itemdata: [

				{
					text: "資料室",
					url: "http://e-words.jp/p/r.html",
					target: "_blank"
				},
				{
					text: "HTMLの特殊文字",
					url: "http://e-words.jp/p/r-htmlentity.html",
					target: "_blank" 
				}

			] } }, 

		] } }

	],
	
	"SQL3": [

		{
			text: "ASP と PHP の処理比較",
			url: "http://winofsql.jp/pinpoint/vbscriptphpframe.htm",
			target: "_blank"
		},

		{
			text: "VBScript の真偽比較表",
			url: "http://winofsql.jp/pinpoint/vbscripttruefalse.htm",
			target: "_blank"
		}
	
	]
	
	};

	this.getItem(0).cfg.setProperty("submenu",
		{ id: "SQL1", itemdata: oSubmenuData["SQL1"] });
	this.getItem(1).cfg.setProperty("submenu",
		{ id: "SQL2", itemdata: oSubmenuData["SQL2"] });
	this.getItem(2).cfg.setProperty("submenu",
		{ id: "SQL3", itemdata: oSubmenuData["SQL3"] });

});

oMenu.render();

</script>
  




yahoo  google  MSDN  MSDN(us)  WinFAQ  Win Howto  tohoho  ie_DHTML  vector  wdic  辞書  天気 


[sjscript]
claudebot
24/03/29 22:58:02
InfoBoard Version 1.00 : Language=Perl

1 BatchHelper COMprog CommonSpec Cprog CprogBase CprogSAMPLE CprogSTD CprogSTD2 CprogWinsock Cygwin GameScript HTML HTMLcss InstallShield InstallShieldFunc JScript JScriptSAMPLE Jsfuncs LLINK OldProg OracleGold OracleSilver PRO PRObrowser PROc PROconePOINT PROcontrol PROftpclient PROjscript PROmailer PROperl PROperlCHAT PROphp PROphpLesson PROphpLesson2 PROphpLesson3 PROphpfunction PROphpfunctionArray PROphpfunctionMisc PROphpfunctionString PROsql PROvb PROvbFunction PROvbString PROvbdbmtn PROvbonepoint PROwebapp PROwin1POINT PROwinSYSTEM PROwinYOROZU PROwindows ProjectBoard RealPHP ScriptAPP ScriptMaster VBRealtime Vsfuncs a1root access accreq adsi ajax amazon argus asp aspSample aspVarious aspdotnet aw2kinst cappvariety centura ckeyword classStyle cmaterial cmbin cmdbapp cmenum cmlang cmlistbox cmstd cmstdseed cmtxt cs daz3d db dbCommon dbaccess dnettool dos download flex2 flex3 flex4 framemtn framereq freeWorld freesoft gimp ginpro giodownload google hdml home hta htmlDom ie9svg install java javaSwing javascript jetsql jquery jsp jspTest jspVarious lightbox listasp listmsapi listmsie listmsiis listmsnt listmspatch listmsscript listmsvb listmsvc memo ms msde mysql netbeans oraPlsql oracle oracleWiper oraclehelper orafunc other panoramio pear perl personal pgdojo pgdojo_cal pgdojo_holiday pgdojo_idx pgdojo_ref pgdojo_req php phpVarious phpguide plsql postgres ps r205 realC realwebapp regex rgaki ruby rule sboard sc scprint scquest sdb sdbquest seesaa setup sh_Imagick sh_canvas sh_dotnet sh_google sh_tool sh_web shadowbox shgm shjquery shvbs shweb sjscript skadai skywalker smalltech sperl sqlq src systemdoc tcpip tegaki three toolbox twitter typeface usb useXML vb vbdb vbsfunc vbsguide vbsrc vpc wcsignup webanymind webappgen webclass webparts webtool webwsh win8 winofsql wmi work wp youtube