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
|
<?php Global $kword_list; $cur_img_url = $j3_imgm_url."/".$sk['sk_img_path'];
if($skin_css!=''){ echo $skin_css; } else { ?> <style> #m_sch .sch_border{border-radius:10px;border:2px solid #393a3b;} .sch_black{background:#2a2c30} .sch_line25{border:5px solid #2a2c30;} .class_skin_idx_<?php echo $sk_idx;?> { height:70px; } </style> <script> $(function(){ $(".sch_itm_open").click(function(){ if($("#sch_item_box").css("display")=='none'){ $.get("sch_item.php",function(rtn){ $("#sch_item_box").html(rtn).show(); }); } else { $("#sch_item_box").hide(); } }); }); </script> <?php } ?> <div class='class_skin_idx_<?php echo $sk_idx;?>'> <!-- 상단 --> <!-- 상단 : 검색 --> <div class="relative block m15 height40 sch_line25 bg_white"> <form name='total_search_form' id='total_search_form' method='get' action='<?php echo "{$j3_shop_url}/search.php";?>' > <label class="absolute ab_top_right width40 box40 total_search_btn sch_black"><img src="<?php echo $j3_imgm_url;?>/ico_search_w.png" alt="검색" class="box_full"></label> <input id="sch_str" name='skey' type="text" placeholder="종합광고자재쇼핑몰" class="ml10 width_80 height40 none_line"> </form> </div> </div> <script> function total_search(){ $form_obj = $("#total_search_form"); $skey = $form_obj.find("#sch_str").val(); if($skey==''){ alert('검색어를 입력해주세요.'); return; } <?php if($app_id=='europe0515'){ // 유럽상사일경우 검색조건 다르게 처리될수 있도록 처리 ?> if($skey.length<6){ alert('6자리 이상 규격번호를 입력하시기 바랍니다.'); return; } <?php } ?> document.total_search_form.submit(); }
$(function(){ $(".total_search_btn").click(function(){ total_search(); }); $("#sch_str").keypress(function(){ if(event.keyCode=='13') { total_search(); } });
$(".tab_nav a").click(function () { var tab_id = $(this).attr("value"); $(".tab_cont").hide(); $("#item_tab"+tab_id).show(); });
if(''!=''){ show_next_tab(''); }
$(".tab_nav a").click(function(){ $(".tab_nav a").removeClass("on"); $(this).addClass("on").css("border-bottom","1px solid #fff"); });
$(".close_sch_item").click(function(){ $(".sch_itm_open").click(); });
$(".recent_search_class li:last").removeClass('gray_line_b'); // 최근검색어 마지막 li에 클래스 빼준다.
$(".sch_itm_open").hide(); }); function show_next_tab(v){ $(".tab_cont").hide(); $("#item_tab"+v).show(); $("html,body").animate({scrollTop:0},100); } </script>
|