µ¥¸ð¸¦ ¹ÝµíÀÌ È®ÀÎÇÏ¼Å¾ß ÇÕ´Ï´Ù.
¾Æ·¡ÀÚ¹Ù½ºÅ©¸³Æ®´Â ¸Þ´º¹ÙÀÇ ¼³°èµµ°°Àº°Ì´Ï´Ù. °¢°¢ ÁÖ¸¦ ´Þ¾Æ³ùÀ¸´Ï È®ÀÎÇÏ½Ã°í ¾²½Ã¸é µË´Ï´Ù.
<html> <head> <title>ÇØÇÇCGI</title> </head> <script>
var delay = 3; // ¸Þ´º ½ºÇǵå(³·À»¼ö·Ï ºü¸§) var m_length = 20; // ¸Þ´º °£°Ý var sel_l_length = 30; // ¼±ÅÃÇÑ ¸Þ´º¿Í ÀÌÀü ¸Þ´º °£°Ý var sel_r_length = 60; // ¼±ÅÃÇÑ ¸Þ´º¿Í ´ÙÀ½ ¸Þ´º °£°Ý
var m_sel = 0; // ¸Þ´º ¼±Åà »óÅ var m_max = 0; // ¸ÞÀθ޴º °¹¼ö var sm_alpha = 0; // ¼ºê¸Þ´º Åõ¸íµµ var id = new Array(); // ¸ÞÀθ޴º ID var sid = new Array(); // ¼ºê¸Þ´º ID var m_top = 0; // ¸ÞÀθ޴º y À§Ä¡ function on_load(){ while(document.getElementById("menu"+(m_max+1)) != null){ m_max++; id[m_max] = document.getElementById("menu"+m_max); sid[m_max] = document.getElementById("smenu"+m_max); }; m_top = id[1].offsetTop; m_act(); } function m_over(m){ m_sel = m; for(i=1;i<=m_max;i++){ if(sid[i] != null){ if(m_sel == i){ id[i].style.fontWeight = 'bold'; sid[i].style.display = ""; sm_alpha = 0; if ((navigator.appName.indexOf('Microsoft')+1)) { sid[i].filters.alpha.opacity = sm_alpha; }else{ sid[i].style.opacity = (sm_alpha/100); } sid[i].style.top = id[i].offsetTop + id[i].offsetHeight + 40; }else{ id[i].style.fontWeight = ''; sid[i].style.display = "none"; } } } } function m_act(){ var goy = 0; for(i=1;i<=m_max;i++){
// ¸ÞÀθ޴º Á¿ì À̵¿ if(i>1) temp = id[i-1].offsetWidth + id[i-1].offsetLeft; if(i==1){ gox=id[i].offsetLeft; }else if(m_sel == i){ gox = temp + sel_l_length; }else if(m_sel+1 == i){ gox =temp + sel_r_length; }else{ gox = temp + m_length; } id[i].style.left = Math.ceil(id[i].offsetLeft - (id[i].offsetLeft - (gox))/delay)+"px";
// ¸ÞÀθ޴º »óÇÏ À̵¿ if(m_sel == i){ id[i].style.top = Math.ceil(id[i].offsetTop - (id[i].offsetTop - (m_top + 7))/delay)+"px"; }else if(m_sel!=0){ id[i].style.top = Math.ceil(id[i].offsetTop - (id[i].offsetTop - (m_top - 5))/delay)+"px"; }
// ¼ºê¸Þ´º if(m_sel == i && sid[i] != null){ // ¼ºê¸Þ´º Åõ¸íµµ if(sm_alpha < 100){ sm_alpha += 5; if ((navigator.appName.indexOf('Microsoft')+1)) { sid[i].filters.alpha.opacity = sm_alpha; }else{ sid[i].style.opacity = (sm_alpha/100); } } // ¼ºê¸Þ´º ¾Æ·¡¼ºÎÅÍ À§·Î ³ªÅ¸³² goy = id[i].offsetTop + id[i].offsetHeight; sid[i].style.top = (sid[i].offsetTop - (sid[i].offsetTop - goy)/delay)+"px"; } } setTimeout('m_act()',20); }
</script> <style> .sm_a{color: #666666; text-decoration:none; padding:0px 3px 0px 2px} .sm_a:hover {color: #FFFFFF; text-decoration:none; background:#666666; padding:0px 3px 0px 2px} .smenu{top:50px; position:absolute; filter:alpha(opacity=0); color:#DDDDDD} .mmenu{top:30px; position:absolute; cursor:pointer; padding-right:2px; color:#666666} </style> <body onload='on_load()'> °¢°¢ÀÇ ´ë ¸Þ´º¸¦ Ŭ¸¯Çغ¸¼¼¿ä.. <table width=100% style=position:relative><td> <div class=mmenu style='left:200px;' id=menu1 onClick='m_over(1)'> ABOUT US<br> </div> <div id='smenu1' class=smenu style='left:200px; display:none'><a href='' class=sm_a>menu1</a> | <a href='' class=sm_a>menu2</a> | <a href='' class=sm_a>menu3</a></div> <div class=mmenu style='left:280px;' id=menu2 onClick='m_over(2)'> PRODUCT<br> </div> <div id='smenu2' class=smenu style='left:250px; display:none'><a href='' class=sm_a>menu4</a> | <a href='' class=sm_a>menu5</a> | <a href='' class=sm_a>menu6</a></div> <div class=mmenu style='left:360px;' id=menu3 onClick='m_over(3)'> STORY<br> </div> <div id='smenu3' class=smenu style='left:310px; display:none'><a href='' class=sm_a>menu7</a> | <a href='' class=sm_a>menu8</a> | <a href='' class=sm_a>menu9</a></div> </td></table>
</body> </html>
|