|
서비스 약관/정책 | 개인정보취급방침 | 권리침해신고 | 뮤직 고객센터 | 뮤직 문의하기
Copyright (c) Daum Communications. All rights reserved.'+options.join('')+'
'); bt.getParent().insertBefore(layer, bt); daum.addEvent(bt,'click',toggleLayer); daum.addEvent(document, 'click', setOption); layer = bt = options = null; function toggleLayer(e){ var ev = e || window.event; if(ev.stopPropagation){ev.stopPropagation();} else {ev.returnValue = false; ev.cancelBubble = true;} daum.Element.toggle(els.daumSearchOptionLayer); } function setOption(e){ var ev = e || window.event, target = ev.target || ev.srcElement, key; closeLayer(); if(!!target.href && target.href.indexOf(glue)!= -1 ){ key = target.href.substr(target.href.indexOf(glue)+glue.length); daum.$(els.daumSearchOpti[안내]태그제한으로등록되지않습니다-xx[안내]태그제한으로등록되지않습니다-xx[안내]태그제한으로등록되지않습니다-xxonSelect).value = key; daum.$(els.daumSearchOption).innerHTML = (target.innerText || target.text).escapeHTML(); daum.$(els.queryText).focus(); setSearchCategory( key, sug1 ); } } function closeLayer(){ var layer = daum.$E(els.daumSearchOptionLayer); if(layer.visible()){layer.hide();} } function setSearchCategory( cate, sug ){ var requestUrl = null; switch(cate) { case "artist" : {requestUrl = "/music_arti2_cfsuggest";break;} case "album" : {requestUrl = "/music_album2_cfsuggest";break;} default : {requestUrl = "/music_all2_cfsuggest";break;} } sug.setRequestUrl( requestUrl ); sug.reRequest(); } })(); document.domain = "daum.net"; daum.suggest.Service.init(); var proxyHtmlLoadYn = "N"; daum.addEvent( daum.$$("#daumSearch > .searchbar")[0], 'click', function(){ if( proxyHtmlLoadYn == "Y") return false; var sug1 = daum.suggest.Service.add( "q", "daumHead", "http://suggest.music.daum.net", "/music_all2_cfsuggest", "/suggestProxy.html" ). setUseThumbnail(). setLimit( [10,0] ). setYellowClip( "daumSuggest" ). setEncodeKeyword( "utf_in_out" ). setBeforeSubmitFunc( checkSubmit ). setForm( document.daumSearch ); proxyHtmlLoadYn = "Y"; }); //console.timeEnd("setServiceSearchOption"); //]]>