/*********************************************** °¡°Ý´ë ½½¶óÀÌµå ½ºÅ©¸³Æ® Á¤ÀÇ ************************************************/ /////////////////////////////////////////////////////////////////// //// ½½¶óÀ̵å¿ë º¯¼ö ¼±¾ð var slider; var slider_disabled = false; var start_price, end_price, gap_price, org_gap_price, selected_sprice, selected_eprice, selected_price, price_type, step_etc_start_price, step_etc_end_price; var org_top, org_left, barLocation, liststr, strSearch; var selected_track_left, selected_track_right; var junit; var tlen; var s_price = new Array(); var s_price_tempstring; /////////////////////////////////////////////////////////////////// // Çʵ尪 ¼³Á¤ function setSearchValue(formObj, strValue) { formObj.value = strValue; } // Çʵ尪 Á¶È¸ function getSearchValue(formObj) { return formObj.value; } function clickOneStepPrice( price_range ) { selected_price = price_range; liststr = ""; searchPrice(); } function priceGroupOver( idx ) { document.getElementById('priceGroupBoxTDTOP_' + idx ).style.backgroundColor = "#7493D2"; document.getElementById('priceGroupBoxTD1_' + idx ).style.display = "none"; document.getElementById('priceGroupBoxTD1Over_' + idx ).style.display = ""; document.getElementById('priceGroupBoxTD2_' + idx ).style.display = "none"; document.getElementById('priceGroupBoxTD2Over_' + idx ).style.display = ""; } function priceGroupOut( idx ) { document.getElementById('priceGroupBoxTDTOP_' + idx ).style.backgroundColor = ""; document.getElementById('priceGroupBoxTD1_' + idx ).style.display = ""; document.getElementById('priceGroupBoxTD1Over_' + idx ).style.display = "none"; document.getElementById('priceGroupBoxTD2_' + idx ).style.display = ""; document.getElementById('priceGroupBoxTD2Over_' + idx ).style.display = "none"; } function priceGroupBarOver( idx ) { document.getElementById('priceGroupBarTDTOP_' + idx ).style.backgroundColor = "#7493D2"; document.getElementById('priceGroupBarTD1_' + idx ).style.display = "none"; document.getElementById('priceGroupBarTD1Over_' + idx ).style.display = ""; } function priceGroupBarOut( idx ) { document.getElementById('priceGroupBarTDTOP_' + idx ).style.backgroundColor = ""; document.getElementById('priceGroupBarTD1_' + idx ).style.display = ""; document.getElementById('priceGroupBarTD1Over_' + idx ).style.display = "none"; } var IsToggle = true; function togglePriceGroup() { if ( document.getElementById('priceGroupBox').style.display == 'none' ) { document.getElementById('priceGroupImg').src = 'http://image.gmarket.co.kr/challenge/neo_category/search/2009/03/09/btn_view_detail_04.gif'; document.getElementById('priceGroupBar').style.display = 'none'; document.getElementById('priceGroupBox').style.display = ''; if(!IsToggle) { IsToggle = true; } } else { document.getElementById('priceGroupImg').src = 'http://image.gmarket.co.kr/challenge/neo_category/search/2009/03/09/btn_view_sum.gif'; document.getElementById('priceGroupBar').style.display = ''; document.getElementById('priceGroupBox').style.display = 'none'; if(IsToggle) { _slider(); init_slider(); gmkt.onload(_slider); gmkt.onresize( init_slider ); window.setInterval("init_slider();",200); IsToggle = false; } } } function searchPrice() { var f = document.srch_form1; try { f.price_list.value = liststr; f.price.value = selected_price; f.page.value = 1; // f.ptype.value = 2; f.prev_search.value = strSearch; ajaxSubmit(); } catch(err) { alert("Àá½Ã ÈÄ¿¡ ´Ù½Ã ½ÃµµÇϼ¼¿ä.1" + err); } } function searchBoxPrice( price_str ) { var f = document.srch_form1; try { f.price_list.value = liststr; f.price.value = price_str; f.page.value = 1; // f.ptype.value = "1"; f.prev_search.value = strSearch; ajaxSubmit(); } catch(err) { alert("Àá½Ã ÈÄ¿¡ ´Ù½Ã ½ÃµµÇϼ¼¿ä.2" + err); } } function inputPrice() { var f = document.list_form; if ( f.leftPrice.value.length == 0 || f.rightPrice.value.length == 0 ) { alert('°Ë»öÇÒ °¡°Ý ¹üÀ§¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.'); } else if ( isNaN(f.leftPrice.value) || isNaN(f.rightPrice.value) ) { alert('°Ë»öÇÑ °¡°Ý ¹üÀ§¸¦ ¼ýÀÚ·Î ÀÔ·ÂÇØ ÁÖ¼¼¿ä.'); } else if ( f.leftPrice.value*1 > f.rightPrice.value*1 ) { alert('°Ë»ö¹üÀ§¸¦ ´Ù½Ã ¼³Á¤ÇØ ÁÖ¼¼¿ä.'); } else { selected_price =f.leftPrice.value + "~" + f.rightPrice.value; liststr = ""; searchPrice(); } } function clickPrice( price_range ) { selected_price = price_range; liststr = ""; searchPrice(); } function clickFirstPrice() { selected_price = step_etc_start_price; liststr = ""; searchPrice(); } function clickLastPrice() { selected_price = step_etc_end_price; liststr = ""; searchPrice(); } function getPriceString( price ) { if (price >= 100000000) return Math.floor(price/100000000) + "¾ï¿ø" else if (price >= 10000) return Math.floor(price/10000) + "¸¸¿ø" else if (price >= 1000) return Math.floor(price/1000) + "õ¿ø" else if ( price <= 1) return "¹«·á" else return price + "¿ø" } function formatCurrency( price ) { var i, j,idx, str; price = price + ""; if (price.length == 0 ) return ""; idx = price.length % 3; j = 0 ; str=""; if ( price <= 1) return "0" for ( i = 0 ; i< price.length; i++ ) { if ( i != 0 && i % 3 == idx ) str += ( "," + price.substr(i,1) ); else str += price.substr(i,1); } return str; } function init_slider() { if (!document.getElementById("track-Right")) { return ; } var i,j; var leftLocation, rightLocation, margin_left; barLocation=Position.cumulativeOffset($('sliderTrack')); org_top = barLocation[1]; org_left = barLocation[0]; if ( selected_track_left == 1 ) $('track-Left').src="http://image.gmarket.co.kr/challenge/neo_food_market/price_new/etc_bg_ov.gif"; if ( selected_track_right == 1 ) $('track-Right').src="http://image.gmarket.co.kr/challenge/neo_food_market/price_new/etc_bg_ov.gif"; tlen = parseInt(tlen); // Ajax Àüȯ¿¡ µû¶ó ÇØ´ç °ªÀ» ¹®ÀÚ¿­·Î ÀνÄÇÏ´Â ¹®Á¦·Î ÀÎÇÏ¿© parseInt¸¦ ÀÌ¿ëÇÑ ¼ýÀÚ ¿¬»ê ó¸® (By, Namkung Man) if ( price_type == 1 ) { $('track-Left').style.top = org_top; $('track-Left').style.left = org_left - 61; $('track-Left').style.display = "inline"; $('track-Right').style.top = org_top - 10; $('track-Right').style.left = org_left + tlen + 1; $('track-Right').style.display = "inline"; $('addTrack').style.display = "inline"; $('step_start_price').innerHTML = formatCurrency(org_start_price); $('step_start').style.top = org_top + 6 + "px" ; $('step_start').style.left = org_left - 61 - 10 + "px" ; $('step_start').style.display = "inline"; $('step_end_price').innerHTML = formatCurrency(org_end_price); $('step_end').style.top = org_top + 6 + "px" ; $('step_end').style.left = org_left + 61 + tlen - 10 + "px"; $('step_end').style.display = "inline"; } else if ( price_type == 3 ){ $('track-Left').style.top = org_top; $('track-Left').style.left = org_left; $('track-Left').style.display = "inline"; $('addTrack').style.display = "inline"; $('step_start_price').innerHTML = formatCurrency(org_start_price); $('step_start').style.top = (org_top + 6) + "px" ; $('step_start').style.left = (org_left - 61 - 10) + "px" ; $('step_start').style.display = "inline"; } else if ( price_type == 4 ){ $('track-Right').style.top = org_top; $('track-Right').style.left = org_left + tlen + 1; $('track-Right').style.display = "inline"; $('addTrack').style.display = "inline"; $('step_end_price').innerHTML = formatCurrency(org_end_price); $('step_end').style.top = (org_top + 6) + "px" ; $('step_end').style.left = (org_left + 61 + tlen - 10) + "px"; $('step_end').style.display = "inline"; } else { $('step_start').style.display = "none"; $('step_end').style.display = "none"; } for (var i=0; i < s_price.length ; i++ ) { if ( ( price_type == 2 || price_type == 3 ) && ( i == s_price.length-1 ) ) document.getElementById('step_price'+i).innerHTML = formatCurrency(s_price[i]); else if ( ( price_type == 2 || price_type == 4 ) && ( i == 0 ) ) if ( org_gap_price == 0 && i == 0 ) document.getElementById('step_price'+i).innerHTML = formatCurrency(s_price[i+1]); else document.getElementById('step_price'+i).innerHTML = formatCurrency(s_price[i]); else document.getElementById('step_price'+i).innerHTML = getPriceString(s_price[i]); document.getElementById('step'+i).style.top = org_top - 4 + "px"; if ( i == 0 ) margin_left = -11; else margin_left = 0; document.getElementById('step'+i).style.left = org_left + margin_left + 10 + Math.round( ((tlen-11)/gap_price) * (s_price[i]-start_price) ) + "px"; document.getElementById('step'+i).style.display = "inline"; } leftLocation=Position.cumulativeOffset($('sliderLeft')); rightLocation=Position.cumulativeOffset($('sliderRight')); $('left_value').style.top=leftLocation[1]+11+"px"; $('left_value').style.left=leftLocation[0]-50+"px"; $('right_value').style.top=leftLocation[1]+11+"px"; $('right_value').style.left=rightLocation[0]+"px"; $('left_value').style.display = "inline"; $('right_value').style.display = "inline"; } function setPriceFocus() { if ( select_price_str.length > 0 ) location.href = "#PRICE_FOCUS"; } function slideValue(v) { var leftLocation, rightLocation; var lprice, rprice; leftLocation=Position.cumulativeOffset($('sliderLeft')); rightLocation=Position.cumulativeOffset($('sliderRight')); lprice = ( Math.round(v[0]*gap_price) == s_price[0] ) ? Math.round(v[0]*gap_price) : Math.round(Math.round(v[0]*gap_price/junit)*junit); if ( Math.round(v[1]*gap_price) == s_price[0] || Math.round(v[1]*gap_price) == s_price[s_price.length-1] ) rprice = Math.round(v[1]*gap_price); else rprice = Math.round(Math.round(v[1]*gap_price/junit)*junit); if ( isNaN( lprice ) == true ) lprice = start_price; if ( isNaN( rprice ) == true ) rprice = end_price; if ( org_gap_price == 0 ) $('left_price').innerHTML = formatCurrency(rprice); else $('left_price').innerHTML = formatCurrency(lprice); $('right_price').innerHTML = formatCurrency(rprice); $('left_value').style.top=leftLocation[1]+11+"px"; $('left_value').style.left=leftLocation[0]-50+"px"; $('right_value').style.top=rightLocation[1]+11+"px"; $('right_value').style.left=rightLocation[0]+"px"; selected_price = lprice + "~" + rprice; } function setValue(v) { var leftLocation, rightLocation; var lprice, rprice; slider.setValue(parseFloat(v[0]), 0 ); slider.setValue(parseFloat(v[1]), 1 ); leftLocation=Position.cumulativeOffset($('sliderLeft')); rightLocation=Position.cumulativeOffset($('sliderRight')); lprice = ( Math.round(v[0]*gap_price) == s_price[0] ) ? Math.round(v[0]*gap_price) : Math.round(Math.round(v[0]*gap_price/junit)*junit); if ( Math.round(v[1]*gap_price) == s_price[0] || Math.round(v[1]*gap_price) == s_price[s_price.length-1] ) rprice = Math.round(v[1]*gap_price); else rprice = Math.round(Math.round(v[1]*gap_price/junit)*junit); if ( isNaN( lprice ) == true ) lprice = start_price; if ( isNaN( rprice ) == true ) rprice = end_price; $('left_price').innerHTML = formatCurrency(lprice); $('right_price').innerHTML = formatCurrency(rprice); $('left_value').style.top=leftLocation[1]+11+"px"; $('left_value').style.left=leftLocation[0]-50+"px"; $('right_value').style.top=rightLocation[1]+11+"px"; $('right_value').style.left=rightLocation[0]+"px"; selected_price = lprice + "~" + rprice; searchPrice(); } function clickValue(v) { var click_price = Math.round((v*gap_price)/tlen); click_price = Math.round( click_price + parseInt(start_price), 2); var range_s, range_e; for ( var i = 0 ;i < s_price.length-1; i++ ) { if ( click_price >= s_price[i] && click_price <= s_price[i+1] ) { range_s = s_price[i]/gap_price; range_e = s_price[i+1]/gap_price; setValue( [range_s, range_e] ); break; } } } _slider = function() { slider = new Control.Slider(['sliderLeft','sliderRight'],'sliderTrack',{ sliderValue:[selected_sprice/gap_price,selected_eprice/gap_price], range:$R(start_price/gap_price,end_price/gap_price), restricted:true, disabled:slider_disabled, spans:['track-selected'], onClick: clickValue, onSlide: slideValue } ); init_slider(); slideValue([selected_sprice/gap_price,selected_eprice/gap_price]); } // ½½¶óÀ̵å¿ë º¯¼ö¿¡ µ¥ÀÌÅ͸¦ ÀúÀåÇÏ´Â ÇÔ¼ö. // ½½¶óÀÌµå ½ÃÀÛ ÀÌÀü¿¡ Ç×»ó ÀÌ ÇÔ¼ö¸¦ È£Ãâ ÇÒ ¼ö ÀÖ¾î¾ß ÇÑ´Ù. // ±âÁ¸ÀÇ ASP º¯¼ö¸¦ Á÷Á¢ Àû¿ëÇÏ´Â ¹æ¹ýÀ¸·Î´Â 󸮰¡ ºÒ°¡´ÉÇÏ¿©, hidden field¿¡ ¿ì¼± µ¥ÀÌÅ͸¦ º¸°üÇÏ¿© // ½½¶óÀ̵带 Àû¿ëÇÏ´Â ½ÃÁ¡¿¡ hidden fieldÀÇ °ªÀ» ·ÎµåÇÏ¿© Àû¿ë. function fnInitData() { try { document.srch_form1.price_list.value = $("ps_strPriceList").value; document.srch_form1.one_step_price_list.value = $("ps_strOneStepPriceList").value; document.srch_form1.one_step_goods_list.value = $("ps_strOneStepGoodsList").value; document.srch_form1.ptype.value = $("ps_strPtype").value; document.srch_form1.prev_search.value = $("ps_strSearch").value; junit=$("ps_junit").value; tlen=$("ps_tlen").value; strSearch = $("ps_strSearch").value; liststr = $("ps_liststr").value; org_start_price=$("ps_org_start_price").value; org_end_price=$("ps_org_end_price").value; start_price = $("ps_start_price").value; end_price = $("ps_end_price").value; selected_sprice = $("ps_selected_sprice").value; selected_eprice = $("ps_selected_eprice").value; step_etc_start_price = $("ps_step_etc_start_price").value; step_etc_end_price = $("ps_step_etc_end_price").value; selected_track_left = $("ps_selected_track_left").value; selected_track_right = $("ps_selected_track_right").value; price_type = $("ps_price_type").value; select_price_str = $("ps_select_price_str").value; s_price_tempstring = $("ps_s_price").value; s_price = s_price_tempstring.split("/"); org_gap_price = end_price - start_price; if ( end_price - start_price == 0 ) { slider_disabled = true; start_price = 0; selected_sprice = 0; s_price[0] = 0; } gap_price = end_price - start_price+1; } catch(ex) { return; } } /***************************************************************************** Ajax 󸮸¦ À§ÇÑ Çʼö Ç׸ñ ******************************************************************************/ function fnMakeParameter(obj) { return xmlCall(obj); } function xmlCall(id) { var oExe = new ObjectHandler(); oExe.form = document.srch_form1.id; oExe.objForm(); oExe.params(); return oExe.xmlSend; } function ObjectHandler() { this.form; this.objForm = ObjectForm; this.xmlSend = ""; this.params = CreateParams; } // ÇØ´ç Æû ¾Ë¾Æ³»±â function ObjectForm() { var intCnt = document.forms.length; for (var i=0;i < intCnt;i++ ){ if (document.forms[i].id == this.form) { return this.objForm = document.forms[i]; } } } // ÇØ´ç ÆûÀÇ ¿¤¸®¸ÕÆ® ¸ðµÎ¸¦ get ¹æ½ÄÀ¸·Î Á¶Àý function CreateParams() { var intCnt = this.objForm.length; var regExp = /[&]/; for (var y=0;y < intCnt;y++ ) { if (this.objForm[y].name != "") { this.xmlSend += "&" + this.objForm[y].name + "=" + this.objForm[y].value; } } this.xmlSend = this.xmlSend.replace(regExp,""); } // History.back callback handler function handleHistoryChange(newLocation, historyData) { if(historyData != null) { toggleLoadingImage(); window.setTimeout("HistoryBackSearch.postInit('"+unescape(historyData)+"', '/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp');", 200); } else { if(IsIE()) { history.back(-1); } else { if (newLocation != "") { toggleLoadingImage(); window.setTimeout("HistoryBackSearch.postInit('"+unescape(newLocation)+"', '/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp');", 200); } else { toggleLoadingImage(); window.setTimeout("HistoryBackSearch.postInit('', '/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp');", 200); } } } } // Hash Data¸¦ °¡Á®¿ÀÀÚ function fnGetHashParameter(param) { var retVal = ""; var arrKeys = param.split("$"); var param; for(var i = 0; i < arrKeys.length ; i++) { if ( i > 0 ) retVal += "&"; retVal += arrKeys[i].replace("<", "="); } return retVal; } // Hash Data¸¦ »ý¼ºÇÏÀÚ. function fnSetHashParameter(param) { var retVal = ""; var arrKeys = param.split("&"); var param; for(var i = 0; i < arrKeys.length ; i++) { if ( i > 0 ) retVal += "$"; retVal += arrKeys[i].replace("=", "<"); } return retVal; } //------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------ // °Ë»ö Ajax È£Ãâ Object var search = { init : function(params) { var request = new Ajax.Request ( "/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp", { method: 'post' , evalScript : false, asynchronous : false, contentType : 'application/x-www-form-urlencoded' , encoding : 'UTF-8' , parameters: encodeURI(encodeURI(encodeURI(params))) , onSuccess : function(oRequest) { document.getElementById("_divListContent").innerHTML = oRequest.responseText; fnSetHashData(); fnPageInit(); // ÆäÀÌÁö »ç¿ë JS º¯¼ö ÃʱâÈ­ document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; }, onException : fnHttpRequestException , onFailure : fnHttpRequestFail } ); //SerializeHash(params); ;}, postInit : function(params, uri) { if(document.getElementById("_divDebug")) { document.getElementById("_divDebug").innerHTML = uri + "?" + params; } try { var request = new Ajax.Updater ( "_divListContent" , "/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp" , { method: 'post' , evalScript:true, asynchronous: false, contentType: 'application/x-www-form-urlencoded' , encoding : 'UTF-8' , parameters: encodeURI(encodeURI(encodeURI(params))) , onComplete:CategorySmallUpdateFinal, onException : fnHttpRequestException , onFailure : fnHttpRequestFail } ); SerializeHash(params); } catch(e) { alert(e); } ;} }; var HistoryBackSearch = { postInit : function(params, uri) { if(document.getElementById("_divDebug")) { document.getElementById("_divDebug").innerHTML = uri + "?" + params; } var request = new Ajax.Updater ( "_divListContent" , "/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp" , { method: 'post' , evalScript:true, asynchronous: false, contentType: 'application/x-www-form-urlencoded' , encoding : 'UTF-8' , parameters: encodeURI(encodeURI(encodeURI(params))) , onComplete:function(oRequest) { fnPageInit(); document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; document.body.scrollTop = 0; }, onException : fnHttpRequestException , onFailure : fnHttpRequestFail } ); SerializeHash(params); ;} }; //------------------------------------------------------------------------------------------ function fnMakeRandomString() { var d = new Date(); var s = d.getFullYear() +""+ fnDigitToString(d.getMonth()) + fnDigitToString(d.getDate())+fnDigitToString(d.getHours()) + fnDigitToString(d.getMinutes())+fnDigitToString(d.getSeconds()); return s; } function fnDigitToString(val) { var retVal = ""; if(parseInt(val) < 10) { retVal = "0" + val; } else { retVal = val; } return retVal; } function fnSetHashData() { var parameters = fnMakeParameter(document.srch_form1.id); dhtmlHistory.add(escape(parameters), escape(parameters)); } // HashµÈ ÆĶó¹ÌÅÍ °ª°ú ½ÇÁ¦ Form °´Ã¼ÀÇ ÀúÀå°ªÀ» µ¿±âÈ­ÇÑ´Ù. function SerializeHash(params) { try { var currentHash = location.hash.replace("#", ""); currentHash = currentHash.replace("param=", ""); var arrKeys = params.split("&"); var param; var objectName, objectValue; var formIndex = 0; for(var i = 0; i < document.forms.length; i++) { if(document.forms[i].id == document.srch_form1.id) { formIndex = i; } } var chkValue = 0; for(var j = 0; j < document.forms[formIndex].length; j++) { chkValue = 0; for(var k = 0; k < arrKeys.length ; k++) { param = arrKeys[k].split("="); if(param.length > 1) { objectName = param[0]; objectValue = param[1]; if (document.forms[formIndex][j].name == "gdsc_cd") { chkValue = 1; break; } if(document.forms[formIndex][j].name == objectName) { document.forms[formIndex][j].value = objectValue;; chkValue = 1; break; } } } if(chkValue != 1) { document.forms[formIndex][j].value = ""; } } } catch(e) { alert(e); } } // ·Îµù À̹ÌÁö ³ëÃâ Á¦¾î function toggleLoadingImage() { if (document.getElementById("_divLoadingImageFrm")) { var objBody = document.body; if ( document.getElementById("_divLoadingImageFrm").style.display == "none") { document.getElementById("_divLoadingImageFrm").style.width = objBody.clientWidth; document.getElementById("_divLodingLayer").style.width = objBody.clientWidth; document.getElementById("_divLoadingImageFrm").style.height = objBody.scrollHeight + ( objBody.offsetHeight - objBody.clientHeight); document.getElementById("_divLoadingImageFrm").style.top = 0; document.getElementById("_divLoadingImageFrm").style.left = 0; // À̹ÌÁö À§Ä¡ Á¶Á¤ var imgHeight = (Math.floor(objBody.clientHeight/2) - 20) + objBody.scrollTop; document.getElementById("_divLodingLayer").style.top = imgHeight; document.getElementById("_divLoadingImageFrm").style.display = "block"; document.getElementById("_divLodingLayer").style.display = "block"; } else { // document.getElementById("_divLoadingImageFrm").style.display = "none"; // document.getElementById("_divLodingLayer").style.display = "none"; } } } function fnHttpRequestFail() { alert("Àá½Ã ÈÄ ´Ù½Ã ½ÃµµÇÏ¿© Áֽñ⠹ٶø´Ï´Ù."); document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; } function fnHttpRequestException() { alert("Àá½Ã ÈÄ ´Ù½Ã ½ÃµµÇÏ¿© Áֽñ⠹ٶø´Ï´Ù."); document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; } // HTTPRequest À̺¥Æ® ¿Ï·á¿¡ µû¸¥ ó¸® ·ÎÁ÷ Á¤ÀÇ function CategorySmallUpdateFinal(oRequest) { fnPageInit(); fnSetHashData(); document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; // if (document.getElementById("PRICE_FOCUS")) { // document.body.scrollTop = document.getElementById("PRICE_FOCUS").offsetHeight; // } else { // document.body.scrollTop = 0; // } if (document.getElementById("GoodsListTop")) { document.body.scrollTop = document.getElementById("GoodsListTop").offsetTop; } else { document.body.scrollTop = 0; } } /// Ajax Submit function ajaxSubmit() { toggleLoadingImage(); var params = fnMakeParameter(document.srch_form1.id); // IE °è¿­ÀÏ °æ¿ì if (IsIE()) { window.setTimeout("search.postInit('"+params+"', '/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp');", 200); } else { if(window.opera) { window.setTimeout("search.postInit('"+params+"', '/challenge/neo_brandshop/ajax_list/xBrand_market_ajax_list.asp');", 200); } fnSetHashData(); } } // ÆäÀÌÁö Ãʱ⠼³Á¤ function fnPageInit() { if(document.getElementById("ss_goods_totalResultSize")) { if(document.getElementById("ss_goods_totalResultSize").value > 0) { if (document.getElementById("ss_PriceSlideDisplay").value == "1") { fnInitData(); // ½½¶óÀÌµå º¯¼ö ÀçÁ¤ÀÇ if (document.getElementById("ps_strPtype").value == "2" || document.getElementById("ps_strPtype").value == "") { _slider(); // ½½¶óÀ̵å ó¸® init_slider(); gmkt.onresize( init_slider ); window.setInterval("init_slider();",200); } } } } } function fnPageInitialize() { document.getElementById("_divLoadingImageFrm").style.display = "none"; document.getElementById("_divLodingLayer").style.display = "none"; if (IsIE()) { var params = fnMakeParameter(document.srch_form1.id); var hash = location.hash.replace("#", ""); if( hash != "" ) { window.setTimeout("search.init('"+unescape(hash)+"');", 200); } else { // window.setTimeout("search.init('"+params+"');", 200); } //// History ó¸® (dhtmlHistory framework »ç¿ë) dhtmlHistory.initialize(); dhtmlHistory.addListener(handleHistoryChange); fnSetHashData(); fnPageInit(); // ÆäÀÌÁö »ç¿ë JS º¯¼ö ÃʱâÈ­ } else { //// History ó¸® (dhtmlHistory framework »ç¿ë) dhtmlHistory.initialize(); if(window.opera) { fnSetHashData(); } dhtmlHistory.addListener(handleHistoryChange); fnPageInit(); } } gmkt.onload(fnPageInitialize); function IsIE() { if(navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("Safari") != -1 ) { return true; } else { return false; } } function fnGetTargetUrl() { return fnMakeParameter(document.srch_form1.id); } function fnSliderPauseEvent() { try { //slider.pauseEvent(); slider.dispose(); } catch(E) { //alert(E); } } function fnSliderResumeEvent() { try { slider.resumeEvent(); } catch(E) { //alert(E); } }