1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<?php include_once($j3_path."/header.sub.php");
if($config['intro_use']=='1'){ // 인트로 사용시 if($id_ccode==''){ if(strpos($_SERVER['SCRIPT_NAME'],"/join.php")>0 || strpos($_SERVER['SCRIPT_NAME'],"/register_form.php")>0 || strpos($_SERVER['SCRIPT_NAME'],"/register_result.php")>0 || strpos($_SERVER['SCRIPT_NAME'],"/orderview.php")>0){
} else { alert('로그인하셔야 사용가능합니다.',$j3_url); exit; } } }
$kword_list = add_search_list_get(6);
skin_module_show("menu",$sample_idx); // 메뉴 스킨을 불러온다. if($configshop['header_fixed']=='1' || $configshop['header_fixed']=='3'){ $header_fixed = "1"; } else { $header_fixed = "0"; } ?> <style> <?php if($header_fixed=='1'){ echo ".wrap { margin-top:{$_COOKIE['hd_height']}px;}"; } ?> </style> <header class="header_class <?php if($header_fixed=='1'){?>fixed ab_top_left width_full bg_white z100<?php }?>"> <?php skin_module_show("header",$sample_idx); // 헤더 스킨을 불러온다. ?> </header> <!-- header.php--> <script> $(function(){ $(".hdgnb_join_class").click(function(){ // 회원가입 링크 document.location.href=j3_shopm_url+'/register_form.php'; });
$(".hdgnb_login_class").click(function(){ // 로그인 링크 document.location.href=j3_shopm_url+'/login.php'; });
$(".hdgnb_logout_class").click(function(){ // 로그아웃 링크 document.location.href=j3_shopp_url+'/logout.php'; });
$(".hdgnb_mypage_class").click(function(){ // 마이페이지 링크 document.location.href=j3_shopm_url+'/mypage.php'; });
$(".hdgnb_faq_class").click(function(){ // FAQ 링크 document.location.href=j3_shopm_url+'/faq.php'; });
$(".hdgnb_11_class").click(function(){ // 1:1문의 링크 document.location.href=j3_shopm_url+'/1n1.php'; });
$(".hdgnb_cart_class").click(function(){ // 장바구니 링크 document.location.href=j3_shopm_url+'/cart.php'; });
$(".hdgnb_order_class").click(function(){ // 주문링크 링크 document.location.href=j3_shopm_url+'/order.php'; });
$(".hdgnb_wish_class").click(function(){ // 위시리스트 링크 document.location.href=j3_shopm_url+'/wish.php'; }); }); </script> <script> $(function(){ //$hd_height = $(".header_class").outerHeight(); if('<?php echo $header_fixed; ?>'=='1'){ $hd_height = header_height_recal(); setsave("hd_height", $hd_height, 31); // 상단 높이를 쿠키에 저장해놓고 각 페이지에서 해당되는 높이는 스타일로 지정한다. $("header").css("height",$hd_height); if('<?php echo $header_fixed;?>'=='1'){ if('<?php echo $_COOKIE['hd_height']?>'==''){ $("#wrap #container").css("margin-top",$hd_height+"px"); // 쿠기 적용전에 처리용으로 사용 } } } else { //$("section").css("width","100%"); 이것을 왜 처음에 넣었는지 모르겠음...이문제로 no fix상태일때 밀림형상이 나타나서 사용안함으로 변경함 } });
function header_height_recal(){ // 헤더에 들어간 div높이를 산정해서 header의 높이를 재 계산한다. #container 상단여백도 조정한다. $height = 0; $("header").find("div").each(function(){ $c_name = $(this).attr("class"); if($c_name!=undefined){ if($c_name.substring(0,15)=='class_skin_idx_'){ $height = $height + $(this).outerHeight(); } } }); return $height; /*$("header").css("height",$height); $("#wrap #container").css("margin-top",$height);*/ } </script>
|