웹마스터 팁

<script cond="$layout_info->static!='Y'" type="text/javascript">
jQuery(function($){
$('#lnb').css({position:'fixed'});
$(window).scroll(function(){
if($(this).scrollTop() > $('#hd').height()-33) {
$('#hd').css('paddingTop',36).find('#gnb_wrp').css({position:'fixed',top:0,width:$('#xe').width()});
$('#hidden_logo:hidden').fadeIn();
} else {
$('#hd').css('paddingTop',0).find('#gnb_wrp').css({position:'static',width:'auto'});
$('#hidden_logo').hide();
};
});
});
</script>
<!--@end-->

layouts/sketchbook5/layout.html 파일에서 위 부분을 찾으신 다음,

14번째/15번째줄 사이에(</script>와 <!--@end--> 사이)

<script cond="$layout_info->static!='Y' && $logged_info->is_admin=='Y'" type="text/javascript">
jQuery(function($){
$('#lnb').css({position:'fixed'});
$(window).scroll(function(){
if($(this).scrollTop() > $('#hd').height()-33) {
$('#hd').css('paddingTop',36).find('#gnb_wrp').css({position:'fixed',top:30,width:$('#xe').width()});
$('#hidden_logo:hidden').fadeIn();
} else {
$('#hd').css('paddingTop',0).find('#gnb_wrp').css({position:'static',width:'auto'});
$('#hidden_logo').hide();
};
});
});
</script>

이 소스코드를 추가해 주시면 됩니다.

관리자바가 활성화 되어있을경우

adminbarok.PNG

이렇게 아래로 스크롤해도 메뉴가 관리자바에 가려지지 않게 됩니다!


단 관리자바 숨기기 애드온 사용시 오작동합니다.

제목 글쓴이 날짜
[1.5.0.2 beta] Err : "./system_message.html" template file does not exists. [1] paulryu03 2011.10.01
1.5.0.2베타 초기설치시 Err : "./system_message.html" template file does not exists. [1] 인스크랩 2011.10.02
호스팅환경 말고!! 서버 환경에서 msg_make_directory_failed (쉬운설치) 해결 방법, (+아이콘 샵 아이콘 표시가 안될 경우) 파이어레듵 2013.03.28
소스 수정할 때, utf-8로 한글 적는 방법. $lang 때문에 애먹는 분들에게 드리는 초간단 팁... utf-8 <-> euc-kr 변환방법 [2] 최르토스 2013.01.30
Xe 1.5에서 파일첨부 안될때 해결방법 [19] file 황비 2012.01.17
admin_bar.html 오류 해결팁? [1] 윤성희R 2013.03.27
v1.5를 위한 팝업 모듈과 팝업 오프너 애드온 [55] file 우진홈 2012.02.06
Sketchbook5 모바일 게시판에 파일 업로드 기능 추가 하기 [14] file hhgyu 2012.11.28
날짜 부분에 시간도 같이 표시하기 [1] file 소백산 2009.02.05
Sketchbook5 레이아웃과 관리자메뉴 충돌 해결 [2] file YJSoft 2013.03.20
팝업모듈 사용시 슬라이드js와 충돌문제 [2] 꿈틀잉 2013.03.21
요약 책갈피 경량판 sns 링크 버튼 디자인 보완 [1] file 웹플러스7 2013.03.21
글 순서 바꾸기 임시방편 [6] 장운주 2008.04.18
네이버 신디케이션(syndication)이 standby로 바뀌는 문제 대처 방안 [4] Define 2012.01.19
회원정보 페이지에 작성 댓글 보기 추가하기 [7] file 늘푸른이 2012.07.12
[애드온]글 , 댓글 삭제시 휴지통으로 보내기 [13] file 민채아빠 2013.01.16
팝업 모듈에서, 사이트 전체에 팝업 띄우는 방법 모르시는 분들을 위해 ^^; [2] sejin7940 2013.03.13
지식인 모듈 기본스킨에서 카테고리 선택 안 해도 질문이 등록되는 버그 수정법 sejin7940 2013.03.12
데이타베이스 복제를 하면 속도가 8%정도 빨라짐 가을풍경 2013.03.03
회원가입시 유저가 비공개 설정하기 [1] file 모앱 2013.03.03