사이드뷰 #236 처리
This commit is contained in:
@ -485,10 +485,10 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#494949;color:#f
|
|||||||
#bo_vc_warea .bo_vc_submit {position:absolute;top:0;right:-90px !important;right:0;width:75px;height:57px;border:1px solid #666;background:#494949;color:#fff;letter-spacing:-0.1em}
|
#bo_vc_warea .bo_vc_submit {position:absolute;top:0;right:-90px !important;right:0;width:75px;height:57px;border:1px solid #666;background:#494949;color:#fff;letter-spacing:-0.1em}
|
||||||
|
|
||||||
/* 사이드뷰 */
|
/* 사이드뷰 */
|
||||||
.sv {display:inline-block;position:relative;font-weight:normal}
|
.sv_wrap {display:inline-block;position:relative;font-weight:normal}
|
||||||
.sv .sv_wrap {z-index:1000;display:none;margin-top:5px;border:1px solid #666;background:#484848}
|
.sv_wrap .sv {z-index:1000;display:none;margin-top:5px;border:1px solid #666;background:#484848}
|
||||||
.sv_nojs .sv_wrap {display:block}
|
.sv_nojs .sv {display:block}
|
||||||
.sv .sv_wrap a {display:inline-block;padding:3px;width:94px;border-bottom:1px solid #555;color:#fff !important}
|
.sv_wrap .sv a {display:inline-block;padding:3px;width:94px;border-bottom:1px solid #555;color:#fff !important}
|
||||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important;background:#ddd}
|
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important;background:#ddd}
|
||||||
.sv_member,
|
.sv_member,
|
||||||
.sv_guest {font-weight:bold}
|
.sv_guest {font-weight:bold}
|
||||||
|
|||||||
16
js/common.js
16
js/common.js
@ -568,8 +568,8 @@ $(function(){
|
|||||||
// 사이드뷰
|
// 사이드뷰
|
||||||
var sv_hide = false;
|
var sv_hide = false;
|
||||||
$('.sv_member, .sv_guest').click(function() {
|
$('.sv_member, .sv_guest').click(function() {
|
||||||
$('.sv_wrap').removeClass('sv_on');
|
$('.sv').removeClass('sv_on');
|
||||||
$(this).closest('.sv').find('.sv_wrap').addClass('sv_on');
|
$(this).closest('.sv_wrap').find('.sv').addClass('sv_on');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.sv, .sv_wrap').hover(
|
$('.sv, .sv_wrap').hover(
|
||||||
@ -583,27 +583,27 @@ $(function(){
|
|||||||
|
|
||||||
$('.sv_member, .sv_guest').focusin(function() {
|
$('.sv_member, .sv_guest').focusin(function() {
|
||||||
sv_hide = false;
|
sv_hide = false;
|
||||||
$('.sv_wrap').removeClass('sv_on');
|
$('.sv').removeClass('sv_on');
|
||||||
$(this).closest('.sv').find('.sv_wrap').addClass('sv_on');
|
$(this).closest('.sv_wrap').find('.sv').addClass('sv_on');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.sv_wrap a').focusin(function() {
|
$('.sv a').focusin(function() {
|
||||||
sv_hide = false;
|
sv_hide = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.sv_wrap a').focusout(function() {
|
$('.sv a').focusout(function() {
|
||||||
sv_hide = true;
|
sv_hide = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).click(function() {
|
$(document).click(function() {
|
||||||
if(sv_hide) {
|
if(sv_hide) {
|
||||||
$('.sv_wrap').removeClass('sv_on');
|
$('.sv').removeClass('sv_on');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).focusin(function() {
|
$(document).focusin(function() {
|
||||||
if(sv_hide) {
|
if(sv_hide) {
|
||||||
$('.sv_wrap').removeClass('sv_on');
|
$('.sv').removeClass('sv_on');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -987,9 +987,9 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
|||||||
$email = get_text($email);
|
$email = get_text($email);
|
||||||
$homepage = get_text($homepage);
|
$homepage = get_text($homepage);
|
||||||
|
|
||||||
$str = "<strong class=\"sv\">\n";
|
$str = "<span class=\"sv_wrap\">\n";
|
||||||
$str .= $tmp_name."\n";
|
$str .= $tmp_name."\n";
|
||||||
$str2 = "<span class=\"sv_wrap\">\n";
|
$str2 = "<span class=\"sv\">\n";
|
||||||
if($mb_id)
|
if($mb_id)
|
||||||
$str2 .= "<a href=\"".G4_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
$str2 .= "<a href=\"".G4_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">쪽지보내기</a>\n";
|
||||||
if($email)
|
if($email)
|
||||||
@ -1012,7 +1012,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='')
|
|||||||
}
|
}
|
||||||
$str2 .= "</span>\n";
|
$str2 .= "</span>\n";
|
||||||
$str .= $str2."\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
$str .= $str2."\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
|
||||||
$str .= "</strong>";
|
$str .= "</span>";
|
||||||
|
|
||||||
return $str;
|
return $str;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user