쇼핑몰: 오늘 본 상품 스크립트 및 스타일 수정

This commit is contained in:
whitedot
2013-11-29 10:12:26 +09:00
parent 3de713fbf4
commit 6ae6519ce6
3 changed files with 8 additions and 27 deletions

View File

@ -45,6 +45,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
.cke_sc_def dd {width:30%}
/* 상단 레이아웃 */
#hd {min-width:1000px}
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_pop {z-index:1000;position:relative;margin:0 auto;width:1000px;height:0}
@ -89,7 +90,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
/* 오늘 본 상품 */
#stv {z-index:1001;float:right;position:relative;width:88px}
#stv_list {position:fixed !important;position:absolute;width:88px;border:1px solid #e9e9e9;background:#fff}
#stv_list {position:absolute;width:88px;border:1px solid #e9e9e9;background:#fff}
#stv_list h2 {padding:10px 0 8px;background:#f2f5f9;text-align:center;letter-spacing:-0.1em}
#stv_pg {display:block;margin:5px 0 0}
#stv_list p {padding:20px 0;text-align:center}
@ -169,7 +170,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
#text_size button {padding:0 10px;height:30px;border:1px solid #cfded8;border-bottom:0;background:#000;color:#fff;cursor:pointer}
/* 하단 레이아웃 */
#ft {clear:both;padding:0 0 40px;border-top:1px solid #e9e9e9}
#ft {clear:both;padding:0 0 40px;min-width:1000px;border-top:1px solid #e9e9e9}
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ft div {position:relative;margin:0 auto;padding:0 0 0 200px;width:750px}
#ft_logo {position:absolute;top:20px;left:0}
@ -254,7 +255,6 @@ button.btn_frmline2 {font-size:1em;cursor:pointer}
.tbl_head01 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
.tbl_head01 td {padding:8px 5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
.tbl_head01 a {}
.tbl_head01 .empty_table {padding:50px 0;text-align:center}
.tbl_head02 {margin:0 0 10px}
.tbl_head02 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
@ -265,7 +265,6 @@ button.btn_frmline2 {font-size:1em;cursor:pointer}
.tbl_head02 tbody th {border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
.tbl_head02 td {padding:5px 3px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.4em;word-break:break-all}
.tbl_head02 a {}
.tbl_head02 .empty_table {padding:50px 0;text-align:center}
/* 폼 테이블 */
.tbl_frm01 {margin:0 0 20px}
@ -274,10 +273,6 @@ button.btn_frmline2 {font-size:1em;cursor:pointer}
.tbl_frm01 td {padding:7px 10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:transparent}
.tbl_frm01 textarea, .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
.tbl_frm01 textarea {width:98%;height:100px}
/*
.tbl_frm01 #captcha {margin:0;padding:0;border:0;background:transparent}
.tbl_frm01 #captcha input {margin-left:5px;text-align:center}
*/
.tbl_frm01 a {text-decoration:none}
.tbl_frm01 .frm_info {display:block;padding:0 0 5px;line-height:1.4em}
.tbl_frm01 .frm_address {display:block;margin-top:5px}
@ -285,6 +280,10 @@ button.btn_frmline2 {font-size:1em;cursor:pointer}
fieldset .frm_input {padding:2px 2px 3px;border:1px solid #b8c9c2;background:#f7f7f7;color:#000;vertical-align:middle}
/* 자료 없는 목록 */
.empty_table {padding:50px 0 !important;text-align:center}
.empty_list {padding:20px 0 !important;text-align:center}
/* 필수입력 */
.required, textarea.required {background:url('../img/wrest.gif') #f7f7f7 top right no-repeat !important}

View File

@ -20,7 +20,7 @@ $(function(){
//스크롤이벤트가 발생하면
$(window).scroll(function(){
yPosition = $win.scrollTop() - 223;
yPosition = $win.scrollTop() - 123;
if (yPosition < 0)
{
yPosition = 0;

View File

@ -92,23 +92,5 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
</ul>
</div>
<script>
// 위치 고정
var currentPosition = parseInt($("#stv_list").css("top"));
$(window).scroll(function() {
var position = $(window).scrollTop(); // 현재 스크롤바의 위치값을 반환합니다.
if(position > 233){
if($.browser.msie && $.browser.version <= 6){
} else {
$("#stv_list").css('top', '20px');
}
}else{
$('#stv_list').attr('style','');
}
});
</script>
<!--[if lte IE 6]>
<script src="<?php echo G5_JS_URL ?>/scroll_oldie.js"></script>
<![endif]-->
<!-- } 오늘 본 상품 끝 -->