Tool Bar Menu | ../ |
[Tool Bar Ver 1.1]
[Tool Bar Ver 1.0]
[Tool Bar Menu (98/07/12)]
ie4¿¡¼ ToolBar Ver1.1, 1.0ÀÇ ¹®Á¦¼öÁ¤(1999/12/08) |
<body>
<script language="JScript" src="ieToolBarVer11.js"></script>
<div id=nn4toolBar style="position:absolute; left:0; top:0; include-source:url('nn4toolBarVer11.htm')"></div>
:
:
ÀÇ ½ÄÀÔ´Ï´Ù. ÆäÀÌÁöÀÇ ¾Æ·¡¿¡ ³Ö¾îÁÖ¸é ¸Å´º°¡ °ãÃļ ³ª¿É´Ï´Ù. ÆäÀÌÁö ¾Æ·¡ ºÎºÐ¿¡ À§ÀÇ ±¸¹®À» ³Ö¾îÁÖ¸é
´Ù½ÃÇѹø ´õ ÀÏÀÏÀÌ javascript·Î ¸Å´ºÀÇ ÁÂÇ¥¸¦ ÁöÁ¤ÇØ ÁÖ¾î¾ß ÇÏÁö¸¸ À§ÀÇ ½Äó·³ <body> Åà ¹Ù·Î ¾Æ·¡¿¡
³Ö¾îÁÖ¸é ¸Å´º°¡ °ãÄ¡Áö ¾Ê½À´Ï´Ù. nn4, ie5¿¡¼´Â ÀÌ·± ¹®Á¦°¡ ¾ø½À´Ï´Ù. ÀÌÀ¯´Â Àúµµ ¸ð¸£°Ú½À´Ï´Ù.
Ver1.0 ÆäÀÌÁö¿¡´Â ÆäÀÌÁö ¾Æ·¡ºÎºÐ¿¡ À§ÀÇ ±¸¹®À» ÁöÁ¤Çß½À´Ï´Ù. ¾Æ·¡ÀÇ ½ÄÀ¸·Î¿ä.
:
:
<script language="JScript" src="ieToolBarVer11.js"></script>
<div id=nn4toolBar style="position:absolute; left:0; top:0; include-source:url('nn4toolBarVer11.htm')"></div>
</body>
</html>
±×·¡¼ ie4·Î Ver1.0À» º¸¸é ¸Å´º°¡ °ãÃļ ³ª¿É´Ï´Ù. Ver1.0À» »ç¿ëÇÒ ¶§¿¡µµ ÆäÀÌÁö ÀºÎºÐ¿¡ ³Ö¾îÁÖ¼¼¿ä.
Ver1.1À» ¼³¸íÇÑ ÆäÀÌÁö¿¡´Â <body> Åà ¹Ù·Î ¾Æ·¡¿¡ ³Ö¾îÁÖ¾úÁö¸¸ Ver1.0À» ¼³¸íÇÑ ÆäÀÌÁö´Â
¼öÁ¤ÇÏÁö ¾Ê¾Ò½À´Ï´Ù.
ie4¿¡¼ ¹®Á¦°¡ ³ª´Â°ÍÀº ÆäÀÌÁö Ãâ·ÂÁß¿¡ css-p ·¹À̾îÀÇ ÁÂÇ¥¸¦ javascript·Î ÁöÁ¤½Ã ÁöÁ¤ÇÏ´Â ½Ã°£ÀÌ ÇÊ¿äÇÑ °Í°°½À´Ï´Ù. ±×·¡¼ ÆäÀÌÁö °¡Àå À§¿¡ ÁöÁ¤ÇÏ¸é ÆäÀÌÁöÀÇ ´Ù¸¥ html À» Ãâ·ÂÇÏ´Â ½Ã°£µ¿¾È Á¤»óÀûÀ¸·Î ÁÂÇ¥¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °Í °°½À´Ï´Ù. ±×·¡¼ ´Ù¸¥ ¹æ¹ýÀº ¾î¼¸é °¡Àå È®½ÇÇÑ ¹æ¹ýÀÔ´Ï´Ù. ÁÂÇ¥¸¦ Javascript·Î ÁöÁ¤ÇÏÁö ¾Ê°í css position ÀÇ ÁÂÇ¥¸¦ Á¤È®È÷ ÁöÁ¤Çϰí javascript·Î´Â ÁöÁ¤ÇÏÁö ¾Ê´Â °ÍÀÔ´Ï´Ù. À̰ÍÀº ¾Æ·¡ÀÇ ½ÄÀÔ´Ï´Ù.
/***************************************************
Tool Bar Version 1.1 (99/10/08)
Yongsuk Lee (spacekan@chollian.net)
(http://user.chollian.net/~spacekan/)
****************************************************/
menuStyle = ''
+ '<style>'
+ '.noLine { text-decoration:none; font-weight:bold; color:black}'
+ '#M1, #M2, #M3, #M4 { ' // »óÀ§ ¸Å´º
+ 'position:absolute; top:0px; left:0px; width:50px; border:outset 2px white; '
+ 'background-color: lightblue; font-size: 9pt; '
+ 'font-weight:bold; padding:2px; text-align: center; }'
+ '#M1 { width:150px; left:0px; }'
+ '#M2 { width:120px; left:150px; }'
+ '#M3 { width:120px; left:270px; }'
+ '#M4 { width:50px; left:390px; }'
+ '#S1, #S2, #S3, #S4 { ' // ÇÏÀ§ ¸Å´º
+ 'position:absolute; top:35px; left:300; width:100; visibility:hidden; border:outset 2px white; '
+ 'background-color: lightblue; font-size: 9pt; line-height:12pt; padding:10px; }'
+ '#S1 {width:200; left:0px;}'
+ '#S2 {width:170; left:150px; }'
+ '#S3 {width:170; left:270px; }'
+ '#S4 {width:100; left:390px; }'
+ '</style>';
menuLayout = ''
+ '<span id=M1>Tool Bar Ver 1.0</span>'
+ '<span id=M2>NN4 »ç¿ë¹ý</span>'
+ '<span id=M3>IE4 »ç¿ë¹ý</span>'
+ '<span id=M4>¹®Á¦Á¡</span>';
subMenuLayout = ''
+ '<div id=S1>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="toolBar10.htm"<Tool Bar Ver 1.0</a<<br<'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="toolBarWork.htm"<ToolBar Ver 1.0 µ¿ÀÛ ¹æ½Ä</a<<br<'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="toolBar10Base.htm"<±âº» ÆäÀÌÁö</a<<br<'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="../toolBar.htm"<../</a<<br>'
+ '</div>'
+ '<div id=S2>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="nn4MakeToolBar.htm">Tool Bar ¸¸µé±â</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="nn4Pos.htm">¹èÄ¡Çϱâ</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="nn4Html.htm">style°ú html ÀÛ¼ºÇϱâ</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="nn4Script.htm">script ¼öÁ¤Çϱâ</a><br>'
+ '</div>'
+ '<div id=S3>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="ie4MakeToolBar.htm">Tool Bar ¸¸µé±â</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="ie4Pos.htm">¹èÄ¡Çϱâ</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="ie4Html.htm">style°ú html ÀÛ¼ºÇϱâ</a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="ie4Script.htm">script ¼öÁ¤Çϱâ</a><br>'
+ '</div>'
+ '<div id=S4>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="nn4Prob.htm"><img src="../images/n4.gif" border=0><img src="../images/n4.gif" border=0><img src="../images/n4.gif" border=0></a><br>'
+ '<a class=noLine onmouseover="this.style.color=\'red\'" onmouseout="this.style.color=\'black\'" href="ie4Prob.htm"><img src="../images/e4.gif" border=0><img src="../images/e4.gif" border=0><img src="../images/e4.gif" border=0></a><br>'
+ '</div>';
function menuOver() {
if( this.son != subLayerOn && subLayerOn) subLayerOn.style.visibility="hidden"
this.style.color = "red"
this.son.style.visibility="visible"
}
function menuOut() {
subLayerOn = this.son;
this.style.color = "black"
}
function subOn() {
clearTimeout(sub_ID)
}
function subOut() {
sub_ID = setTimeout("subLayerOn.style.visibility='hidden'", 1)
}
function displayMenu() {
if(!document.all) return
var menuLayer, subLayer
var firstPos = 0
for(var i=1; i<5; i++) {
menuLayer = document.all["M"+i]
subLayer = document.all["S"+i]
menuLayer.onmouseover=menuOver
menuLayer.onmouseout=menuOut
menuLayer.son=subLayer
subLayer.onmouseover = subOn
subLayer.onmouseout = subOut
// menuLayer.style.posLeft = firstPos
// menuLayer.style.posTop = document.body.scrollTop
// firstPos += menuLayer.offsetWidth
// subLayer.style.pixelTop = menuLayer.style.pixelTop + menuLayer.offsetHeight -1
// subLayer.style.pixelLeft = menuLayer.style.pixelLeft
}
}
function fixMenu() {
var menuLayer, subLayer
var topPos = document.body.scrollTop
for(var i=1; i<5; i++) {
menuLayer = document.all["M"+i]
subLayer = document.all["S"+i]
menuLayer.style.pixelTop = topPos
subLayer.style.pixelTop = topPos + menuLayer.offsetHeight
}
}
subLayerOn=sub_ID=null
document.write(menuStyle)
document.write(menuLayout)
document.write(subMenuLayout)
displayMenu()
window.onscroll = fixMenu
À¸·Î ÁöÁ¤ÇÕ´Ï´Ù. ¸ÕÀú Á¤È®ÇÑ ÁÂÇ¥¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¾Æ·¡ÀÔ´Ï´Ù.
+ '#M1, #M2, #M3, #M4 { ' // »óÀ§ ¸Å´º
+ 'position:absolute; top:0px; left:0px; width:50px; border:outset 2px white; '
+ 'background-color: lightblue; font-size: 9pt; '
+ 'font-weight:bold; padding:2px; text-align: center; }'
+ '#M1 { width:150px; left:0px; }'
+ '#M2 { width:120px; left:150px; }'
+ '#M3 { width:120px; left:270px; }'
+ '#M4 { width:50px; left:390px; }'
+ '#S1, #S2, #S3, #S4 { ' // ÇÏÀ§ ¸Å´º
+ 'position:absolute; top:35px; left:300; width:100; visibility:hidden; border:outset 2px white; '
+ 'background-color: lightblue; font-size: 9pt; line-height:12pt; padding:10px; }'
+ '#S1 {width:200; left:0px;}'
+ '#S2 {width:170; left:150px; }'
+ '#S3 {width:170; left:270px; }'
+ '#S4 {width:100; left:390px; }'
+ '</style>';
À¸·Î ±½Àº ±ÛÀÚµéÀÇ ÁÂÇ¥·Î À§Ä¡½Ãų °÷À» ÁöÁ¤ÇØ ÁÝ´Ï´Ù. ±×¸®°í ¾Æ·¡ÀÇ Javascript ·Î ÁöÁ¤ÇÏ´Â ±¸¹®Àº
Çʿ䰡 ¾øÀ¸¹Ç·Î Áö¿öÁÖ¸é µË´Ï´Ù.
// menuLayer.style.posLeft = firstPos // menuLayer.style.posTop = document.body.scrollTop // firstPos += menuLayer.offsetWidth // subLayer.style.pixelTop = menuLayer.style.pixelTop + menuLayer.offsetHeight -1 // subLayer.style.pixelLeft = menuLayer.style.pixelLeftÀ§ÀÇ JavaScript°¡ ÇÏ´Â ¿ªÈ°Àº ±ÛÀÚ·Î ±¸¼ºÇÑ ·¹À̾îÀÇ Å©±â¸¦ 1 pixelÀÇ Å©±â°í ³õÄ¡Áö ¾Ê°í Á¤È®ÇÑ ·¹ÀÌÀúÀÇ Å©±â·Î ¹èÄ¡ÇÕ´Ï´Ù. ±ÛÀÚ·Î ±¸¼ºÇÑ ·¹À̾îÀÇ Å©±â´Â À̹ÌÁö°¡ ¾Æ´Ï±â ¶§¹®¿¡ Á¤È®ÇÑ Å©±â¸¦ ¾Ë ¼ö°¡ ¾ø¾î¼ ±× Å©±â¸¦ ÀÐ°í ¹èÄ¡¸¦ ½ÃŰ´Â °ÍÀÔ´Ï´Ù. ±×·¡¼ Æí¸®ÇÕ´Ï´Ù. ÇÏÁö¸¸ Àý´ë Å©±âÀÇ font-size¸¦ ÁöÁ¤ÇÑ ±ÛÀÚ´Â ±× Å©±â°¡ ÀÏÁ¤Çϱ⠶§¹®¿¡ ¿©·¯¹ø ÁÂÇ¥¸¦ ÁöÁ¤ÇÏ¸é ±»ÀÌ Javascript·Î Å©±â¸¦ ÀÐÁö ¾Ê¾Æµµ ¾Ë¸ÂÀº ÁÂÇ¥·Î ·¹À̾îµéÀ» ¹èÄ¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ¹æ¹ýÀ» »ç¿ëÇÏ¿© ÀÛ¼ºÇÑ °ÍÀº ÆäÀÌÁö ¾Æ·¡³ª À§ ¾Æ¹«µ¥³ª µÎ¾îµµ ¸Å´º°¡ °ãÄ¡Áö ¾Ê°í Àß ³ª¿Ô½À´Ï´Ù.
--
ÁøÀÛ ¾Ë¾Ò´Â ¹®Á¦Àε¥ ³«¼ÆÇ¿¡ ¼öÁ¤ ¿äûÀÌ µé¾î ¿Í¼¾ß ¼öÁ¤À» Çϳ׿ä. ÀúÀÇ °ÔÀ¸¸§ÀÌ
¹®Á¦ÀÔ´Ï´Ù. ¶Ç Çϳª ÀÖ´Ù¸é ÀÌ·± ¹®Á¦°¡ ¾øÀ¸¸é ¾Æ¹«µµ ³«¼ÆÇÀ̳ª ¸ÞÀÏ·Î ¾Ë·ÁÁÖÁö ¾Ê±â ¶§¹®ÀÔ´Ï´Ù.
±×¾ß¸»·Î ÀÌ°Ô ÇÊ¿äÇÑ °ÍÀÎÁö, ¾µ¸ð ÀÖ´Â °ÍÀÎÁö, Çʿ䵵 ¾ø´Âµ¥ ±¦È÷ ¸¸µéÀº °ÍÀÎÁö ¾Ë
¼ö°¡ ¾ø½À´Ï´Ù. ¾ðÁ¦³ª »õ·Î¿î ±â´ÉÀ̳ª ÁÁÀº ¿¹Á¦ °Å¸®¸¦ ¸ÞÀÏ·Î ¹ÞÀ» ¼ö ÀÖ´ÂÁö.. ¾î¼¸é À̰ÍÀÌ Àú¸¦
´õ °ÔÀ»·¯ Áö°Ô ÇÏÁö¾Ê³ª »ý°¢ÇØ º¾´Ï´Ù. ¼³¸¶ À̰͵µ ³ªÀÇ Âø°¢ÀÎÁöµµ ¸ð¸£°Ú´Ù´Â »ý°¢ÀÌ µì´Ï´Ù.
¾Æ¸¶ ºü»ß¿ëÀÌ °¨¿Á µ¶¹æ¿¡¼ ÀڱⰡ ¸»Çϰí ÀڱⰡ ´ë´äÇÒ ¶§ÀÇ ±âºÐÀÌ ÀÌ·¨À» °Í °°±º¿ä.. -_-
¼¼»óÀÇ
°¨¿ÁÀº ¿ì¸®°¡ ¸¸µé¾î °¡°í ÀÖ´Â °ÍÀÌ ¾Æ´Ò±î¿ä..? ŸÀο¡ ´ëÇÑ ¹«°ü½É, ¾î¶² »ç¹°¿¡ ´ëÇÑ ¹«°¨°¢ÀÌ ÀÚ½ÅÀ»
°¨¿Á¿¡ °¡µÎ°í ±× °¨¿ÁÀº ŸÀο¡°Ôµµ Àü¿°µÇ°ÚÁÒ. ±×¸®°í ±× °¨¿ÁÀ» ¾ø¿¤ ¼ö ÀÖ´Â °Íµµ ¾Æ¸¶ ¿ì¸®ÀÏ °Í °°±º¿ä.
°¨¿Á ¿¹±âÇÏ´Ï Ã¢¿øÀÌ »ý°¢ÀÌ ³ª´Â±º¿ä.. Çѵ¿¾È ¿¹ ¶§¹®¿¡ ±æ°Å¸® ½ÅÈ£µî ¾Õ¿¡ ÀÖÀ¸¸é °æÂûÂ÷°¡ ²À ³» ¾Õ¿¡¼
¼¸´Ù°¡ °¡¼ ¹«Ã´ ½Å°æÀÌ ¾²¿´´Â ±â¾ïÀÌ ³ª³×¿ä.. â¿øÀÌ ÀÖ´Â ¿· ¹æ¿¡ µé¾î°¡¾ß ÇÒ ³ðµéÀÌ ³Î·È´Âµ¥..
Âü.. °¨¿Á ¿¹±â´Â "¹ÚÀαÇ" ¸¸Èº¸¸é ¾ÆÁÖ Àç¹ÌÀÖ°Ô ³ª¿É´Ï´Ù.. ¹ú½á ¿©·¯±Ç ³ª¿Ô½À´Ï´Ù. ÀÚĪ ±ô»§ Àü¹®
¸¸È°¡¶ó°í ÇÏ´õ±º¿ä.. È÷È÷.. ¿¹..? ¿¹.. ±×¸¸ ÇÏÁÒ.. ÂÁ.. -_-