<style type="text/css">
#floater_right {
RIGHT:0px; POSITION: absolute; BOTTOM:1px;VISIBILITY: visible; WIDTH: 150px; Z-INDEX: 2
}
#right_top_div {
float: right;
width:54px;
background: #fff;
}
</style>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style992 {
font-family: "돋움";
font-size: 10px;
color: #5a5a5a;
}
.style993 {
color: #ff004e;
font-size: 10px;
font-weight: bold;
}
.style994 {
font-family: "돋움";
font-size: 11px;
color: #5a5a5a;
}
.style995 {color: #333333;
font-size: 10px;
font-weight: bold;}
.style996 {
color: #099113;
font-size: 10px;
line-height: 95%;
font-weight: bold;
}
.style997 {
font-size: 10px;
color: #1787d1;
}
-->
</style>
<script language='JavaScript'>
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
function heartBeat() {
if(IE) {
diffY = document.body.scrollTop;
diffX = 0;
}
if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
if(diffY != lastScrollY) {
percent = .1 * (diffY - lastScrollY);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_right.style.pixelTop += percent;
if(NS) document.floater_right.top += percent;
lastScrollY = lastScrollY + percent;
}
if(diffX != lastScrollX) {
percent = .1 * (diffX - lastScrollX);
if(percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
if(IE) document.all.floater_right.style.pixelLeft += percent;
if(NS) document.floater_right.top += percent;
lastScrollY = lastScrollY + percent;
}
}
if(NS || IE) action = window.setInterval("heartBeat()",1);
</script>
<script>
function right_close() {
document.getElementById('floater_right').style.display = "none";
document.getElementById('bottomRight999').style.display = "none";
document.getElementById('right_top_div').style.display = "block";
setCookie("layer_onoff", "close" , 1);
}
function right_open() {
document.getElementById('right_top_div').style.display = "none";
document.getElementById('floater_right').style.display = "block";
document.getElementById('bottomRight999').style.display = "block";
setCookie("layer_onoff", "open" , 1);
}
</script>
<script language=javascript>
<!--
var downLayerId;
var dropDegree = 100; //스크롤 속도
var doDirect;
var DirectTerm = 900000; //스크롤 지연시간
var curDropIdx = 0;
function DirectDown()
{
clearInterval(doDirect);
clearInterval(downLayerId);
for(i = curDropIdx ;i < document.all["DropHit"].length + curDropIdx;i++){
document.all["DropHit"][i%document.all["DropHit"].length].style.posLeft = document.all["DropHit"][i%document.all["DropHit"].length].style.posWidth * (-1*((i-curDropIdx)%document.all["DropHit"].length));
}
var temp = 'setInterval("DownLayer()",20)';
downLayerId = eval(temp);
direction = "down";
}
function DownLayer()
{
if(document.all["DropHit"][curDropIdx].style.posLeft < document.all["DropHit"][curDropIdx].style.posWidth){
for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){
document.all["DropHit"][j%document.all["DropHit"].length].style.posLeft += dropDegree;
}
}else{
clearInterval(downLayerId);
for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){
document.all["DropHit"][j%document.all["DropHit"].length].style.posLeft = document.all["DropHit"][j%document.all["DropHit"].length].style.posWidth *((-1*((j-curDropIdx)%document.all["DropHit"].length))+1);
}
curDropIdx = (curDropIdx + 1) ;
curDropIdx = curDropIdx > document.all["DropHit"].length-1 ? curDropIdx%document.all["DropHit"].length:curDropIdx;
var temp = 'setInterval("DirectDown()",DirectTerm)';
doDirect = eval(temp);
}
}
function DirectUp()
{
clearInterval(doDirect);
clearInterval(downLayerId);
var tempIdx = 0;
var obj = document.getElementsByName('DropHit');
//alert(obj.length);
if(NS) {
for(i = 0;i<document.getElementsByName("DropHit").length;i++){
tempIdx = (document.all["DropHit"].length + curDropIdx - i) %document.all["DropHit"].length;
document.all["DropHit"][tempIdx].style.posLeft = i*document.all["DropHit"][tempIdx].style.posWidth;
}
var temp = 'setInterval("UpLayer()",20)';
downLayerId = eval(temp);
direction = "up";
} else {
for(i = 0;i<document.all["DropHit"].length;i++){
tempIdx = (document.all["DropHit"].length + curDropIdx - i) %document.all["DropHit"].length;
document.all["DropHit"][tempIdx].style.posLeft = i*document.all["DropHit"][tempIdx].style.posWidth;
}
var temp = 'setInterval("UpLayer()",20)';
downLayerId = eval(temp);
direction = "up";
}
}
function UpLayer()
{
var tempIdx = 0;
if(document.all["DropHit"][curDropIdx].style.posLeft < document.all["DropHit"][curDropIdx].style.posWidth && document.all["DropHit"][curDropIdx].style.posLeft > document.all["DropHit"][curDropIdx].style.posWidth * (-1)){
for(j = 0 ;j < document.all["DropHit"].length;j++){
tempIdx = (document.all["DropHit"].length + curDropIdx - j) %document.all["DropHit"].length;
document.all["DropHit"][tempIdx].style.posLeft -= dropDegree;
}
}else{
clearInterval(downLayerId);
for(j = 0;j<document.all["DropHit"].length;j++){
tempIdx = (document.all["DropHit"].length + curDropIdx - j) % document.all["DropHit"].length;
document.all["DropHit"][tempIdx].style.posLeft = (j-1)*(document.all["DropHit"][tempIdx].style.posWidth);
}
curDropIdx = (curDropIdx - 1) ;
curDropIdx = curDropIdx < 0 ? document.all["DropHit"].length-1:curDropIdx;
var temp = 'setInterval("DirectUp()",DirectTerm)';
doDirect = eval(temp);
}
}
//-->
</script>
<script>
function resetPosition() {
if(IE) {
bottomRight999.style.pixelTop = document.body.scrollTop + ( document.body.clientHeight - 30 ) ;
right_top_div.style.pixelTop = document.body.scrollTop ;
} else {
bottomRight999.style.top = document.body.scrollTop + ( document.body.clientHeight - 28 ) +"px" ;
right_top_div.style.top = document.body.scrollTop + 20 + "px";
}
}
function resetPosition_t() {
if(IE) {
} else {
bottomRight999.style.top = document.body.clientHeight - 28 +"px" ;
}
}
</script>
<?
if($_COOKIE[layer_onoff] == "close")
$layer_onoff = "right_close();";
else
$layer_onoff = "right_open();";
?>
<body onLoad="resetPosition(); resetPosition_t(); <?=$layer_onoff?> " onScroll="resetPosition(); resetPosition_t();" onResize="resetPosition();">
<!-- 오른쪽 상단 고정 레이어 -->
<div id="right_top_div" style="width:54px; position:absolute; right:3px; top:0px; z-index:30; display:none;">
<script>Flash_Border_Drop('/quick_closed.swf', '54', '79')</script>
</div>
<!-- 오른쪽 상단 고정 레이어 끝-->
<div id="floater_right" style="RIGHT:0px; TOP:0px; BOTTOM:1px; VISIBILITY: visible; z-index:40; widht=100%; display:none;">
<table width="12" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="100%" height="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td ><a href="#" onclick="right_close();"><img src="/prog/img/165/quick_bt_closed_side.gif" border="0" /></a></td>
</tr>
</table>
</td>
<td>
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="123"><img src="/prog/img/150/quick_title_001.gif" width="123" height="32" /></td>
<td width="27"><img src="/prog/img/150/quick_bt_closed.gif" alt="MyShopping닫기" width="27" height="32" border="0" onclick="right_close();" /></td>
</tr>
</table></td>
</tr>
<?
//값을 배열에 넣어서 출력 시키기
$sql_date = date("Y-m-d");
if($fcLogon) {
$fcLogon_chk = split("//",$fcLogon);
$right_event_where = " AND cook_id = '$fcLogon_chk[0]'";
}
$query_right_cnt = "
SELECT count(*) as cnt FROM cookie_tmp
WHERE date_format(cook_reg_date,'%Y-%m-%d')='$sql_date' AND
cook_ip = '$REMOTE_ADDR' $right_event_where
ORDER BY cook_reg_date DESC
";
$result_right_cnt = mysql_query($query_right_cnt);
$row_right_cnt = mysql_fetch_array($result_right_cnt);
//내가 본상품이 없을경우 MD상품을 출력해 준다.
if($row_right_cnt[cnt] > 0 ) {
$sql_right_event_scroll_sql = "
SELECT * FROM cookie_tmp
WHERE date_format(cook_reg_date,'%Y-%m-%d')='$sql_date' AND
cook_ip = '$REMOTE_ADDR' $right_event_where
ORDER BY cook_reg_date DESC
";
//상품을 배열에 넣을려고 판수와 총 숫자 계산
$one_arr_len = round($row_right_cnt[cnt]/4);
$len_ck = $row_right_cnt[cnt]%4;
if( $len_ck > 1) {
$one_arr_len = $one_arr_len + 1; // $one_arr_len 총 판수
}
//타이틀 이미지
$title_img = "quick_title_history";
$md_link = "<td><a href='#top' onclick='cookie_del();'><img src='/prog/img/150/quick_bt_del.gif' alt='삭제' width='15' height='16' border='0' /></a></td>";
} else { // MD 상품 처리하기
$sql_right_event_scroll_sql = "
SELECT * FROM cookie_tmp
WHERE cook_id = 'MD'
ORDER BY cook_ip asc
";
// 값 고정시키기 총 data가 10개 이기에 고정시킨다.
$len_ch = 5;
$one_arr_len = 4;
//타이틀 이미지
$title_img = "quick_title_md";
$md_link = "<td width='5'></td>";
}
$sql_right_event_scroll_result = mysql_query($sql_right_event_scroll_sql);
//echo $sql_right_event_scroll_sql;
$ii=0; $jj=0;
while($row_right_event_scroll = mysql_fetch_array($sql_right_event_scroll_result)) {
$event_right_value_arr[$ii][$jj] = $row_right_event_scroll[cook_p_code]."//".$row_right_event_scroll[cook_p_price];
if($jj == 1) {
$jj=-1;
$ii++;
}
$jj++;
}
?>
<script>
function cookie_del() {
if(confirm('내가본상품을 삭제하시겠습니까?')) {
var form = document.cook_del;
form.target = "NO_SHOW_FRAME";
form.method = "post";
form.action = "/prog/cookie_now_delete.php";
form.submit();
return;
}
return;
}
</script>
<tr>
<td background="/prog/img/165/quick_back.gif"></td>
</tr>
<tr>
<td background="/prog/img/2009/quick_back.gif">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/prog/img/165/<?=$title_img?>.gif" width="100" height="21" /></td>
<td valign="bottom" style="padding:0 5px 0px 0;">
<table border="0" cellspacing="0" cellpadding="0">
<form name="cook_del">
<input type="hidden" name="url_ch" value="<?=$cookie_now_url?>">
<tr>
<td ><a href="javascript:DirectUp()"><img src="/prog/img/quick_bt_re.gif" alt="이전" width="15" height="16" border="0" /></a></td>
<?=$md_link?>
<td ><a href="javascript:DirectDown()"><img src="/prog/img/quick_bt_ff.gif" alt="다음" width="15" height="16" border="0" /></a></td>
</tr>
</form>
</table>
</td>
</tr>
<tr>
<td height="2" colspan="2"></td>
</tr>
<tr>
<td colspan="2">
<div style="left:0px; overflow:hidden; width:150px; position:relative; top:0px; height:85px">
<?
$left_value=0;
for($ji=0; $ji <= $one_arr_len; $ji++) {
?>
<div id=DropHit style="width:150px; height:75px; position:absolute; left:<?=$left_value?>px; top:0px; z-index:1; visibility:visible;">
<table border=0 cellpadding=0 cellspacing=0 width=150>
<tr>
<td>
<table border="0">
<tr>
<?
for($ij=0; $ij <= 1 ; $ij++) {
if($event_right_value_arr[$ji][$ij]) {
$print_arr = split("//",$event_right_value_arr[$ji][$ij]);
$img_right_new_s = strtolower($print_arr[0]);
$img_right_new_s = eregi_replace("-","_",$img_right_new_s);
//이미지 이름 변경처리 이미지 이름이 st_fa000~st_fb099 일때는 가운데 a,b를 제거 한다.
//$img_ch_name = substr($img_right_news_s, 0, 3);
if( (substr($img_right_new_s, 0, 4) == "st_f") and (int)substr($img_right_new_s,-3) < 100 ) {
$img_right_new_s = eregi_replace("a", "", eregi_replace("b", "", $img_right_new_s));
}
?>
<td width="75" height="75" align="center"><a href="/prog/shopping/goods_detail.php?goods_code=<?=$print_arr[0]?>&sub_folder_code="><img src="<?=$img_server_url?>/prog/goods/imgs/<?=$img_right_new_s?>s.jpg" width="60" height="65" border="0"></a><BR><span class="style993"> <?=$print_arr[1]?></span></td>
<?
}
}
?>
</tr>
</table>
</td>
</tr>
</table>
</div>
<?
$left_value=$left_value+150;
}
?>
</div>
</td>
</tr>
</table></td>
</tr>
<tr>
<td background="/prog/img/150/quick_back.gif"></td>
</tr>
<tr>
<td background="/prog/img/150/quick_005.gif"><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/prog/img/150/quick_004.gif" width="150" height="9" /></td>
</tr>
<tr>
<td onclick="javascript:location.href='/event/2010/9950sale/index.php';" style="cursor: hand;"><img src="/prog/img/150/quick_title_event_99.gif" width="150" height="29" /></td>
</tr>
<tr>
<td background="/prog/img/150/quick_005.gif">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td onclick="javascript:location.href='/event/2010/9950sale/index.php';" style="cursor: hand;">
<?
$sql_right_event_9_sql = "select * from event_99 where date_format(reg_date,'%Y-%m-%d')='$sql_date' order by no asc limit 9";
$sql_right_event_9_result = mysql_query($sql_right_event_9_sql);
$main_right_9_cnt = 0;
while($row_right_event_9 = mysql_fetch_array($sql_right_event_9_result)) {
$main_right_9_cnt++;
$tel_main_event_string = explode('-', $row_right_event_9[phone]);
$name_phone = $tel_main_event_string[0]."-*-".$tel_main_event_string[2];
$main_event_time = date("H:i:s",strtotime($row_right_event_9[reg_date]));
?>
<div style="line-height:100%; padding:0 0 0 10px;"><span class="style996"><?=$name_phone?></span> <span class="style997"><?=$main_event_time?></span></div>
<?
}
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="/prog/img/150/quick_banner_event_99.gif" alt="이벤트자세히보기" width="150" height="73" border="0" onclick="javascript:location.href='/event/2010/9950sale/index.php';" style="cursor: hand;" /></td>
</tr>
<tr>
<td><img src="/prog/img/150/quick_006.gif" width="150" height="7" /></td>
</tr>
</table></td>
</tr>
<tr>
<td background="/prog/img/150/quick_back.gif" bgcolor="ebebeb" height="900"> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="bottomRight999" style="position:absolute; bottom:0px; right:0px; z-index:50; display:none;">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="/index.php"><img src="/prog/img/150/quick_bott_bt_home.gif" alt="home" width="55" height="28" border="0" /></a></td>
<td><a href="javascript:history.go(-1);"><img src="/prog/img/150/quick_bott_bt_back.gif" alt="back" width="52" height="28" border="0" /></a></td>
<td><a href="#"><img src="/prog/img/150/quick_bott_bt_top.gif" alt="top" width="43" height="28" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table>
</div>
<iframe name="_HcallIfrm" id="_HcallIfrm" style="width:0;height:0;padding:0;margin:0;overflow:hidden;"></iframe>
<script type="text/javascript">
function _HsendChatform(){
var Msg = "고객이 상담을 요청하였습니다."; //대화요청 메세지
var M = arguments[0] || Msg; if(M.length<1){alert("메세지를 입력하세요.");return;}
var _URL = "http://asp15.http.or.kr/HTTP_MSN/Messenger/admin_call.asp?HTTP_MSN_AUTH_CDKEY=99flower&h_domain="+document.location.hostname+"&Chat_Msg="+escape(M);
document.getElementById("_HcallIfrm").src=_URL;
}
</script>
</body>