사용자: cheditor5.1 전체화면 모드 대응을 위한 hd z-index css/js 수정

This commit is contained in:
whitedot
2014-03-28 11:15:32 +09:00
parent 4df8f09549
commit e377355ef1
2 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,8 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff} .hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
/* 상단 레이아웃 */ /* 상단 레이아웃 */
#hd {z-index:10;position:relative;min-width:970px;background:#fff} #hd {z-index:4;position:relative;min-width:970px;background:#fff}
.hd_zindex {z-index:10 !important}
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden} #hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1} #hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1}
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""} #hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}

View File

@ -18,6 +18,7 @@ $(function(){
var $gnb = $(".gnb_1dli > a"); var $gnb = $(".gnb_1dli > a");
$gnb.mouseover(function() { $gnb.mouseover(function() {
if(mouse_event) { if(mouse_event) {
$("#hd").addClass("hd_zindex");
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
$(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); $(this).parent().addClass("gnb_1dli_over gnb_1dli_on");
menu_rearrange($(this).parent()); menu_rearrange($(this).parent());
@ -38,6 +39,7 @@ $(function(){
}); });
$gnb.focusin(function() { $gnb.focusin(function() {
$("#hd").addClass("hd_zindex");
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
$(this).parent().addClass("gnb_1dli_over gnb_1dli_on"); $(this).parent().addClass("gnb_1dli_over gnb_1dli_on");
menu_rearrange($(this).parent()); menu_rearrange($(this).parent());
@ -71,6 +73,7 @@ $(function(){
}); });
function submenu_hide() { function submenu_hide() {
$("#hd").removeClass("hd_zindex");
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
} }