전국 음식 골목
var hotPlace = {
data: {
"49" :
{
id:"49",
name:"종로",
cnt:"23",
themes:"237"
}
, "43" :
{
id:"43",
name:"신촌,이대",
cnt:"40",
themes:"237"
}
, "39" :
{
id:"39",
name:"대학로",
cnt:"49",
themes:"237"
}
, "42" :
{
id:"42",
name:"서울시청",
cnt:"20",
themes:"237"
}
, "50" :
{
id:"50",
name:"삼청동",
cnt:"42",
themes:"237"
}
, "152" :
{
id:"152",
name:"제주도 ",
cnt:"37",
themes:"237"
}
, "55" :
{
id:"55",
name:"신사역",
cnt:"23",
themes:"237"
}
, "59" :
{
id:"59",
name:"여의도",
cnt:"47",
themes:"237"
}
, "45" :
{
id:"45",
name:"동부이촌동",
cnt:"21",
themes:"237"
}
, "145" :
{
id:"145",
name:"전주",
cnt:"17",
themes:"237"
}
, "44" :
{
id:"44",
name:"이태원",
cnt:"48",
themes:"237"
}
, "54" :
{
id:"54",
name:"강남역",
cnt:"27",
themes:"237"
}
, "67" :
{
id:"67",
name:"부산 남포동",
cnt:"10",
themes:"237"
}
, "70" :
{
id:"70",
name:"대구 동성로",
cnt:"31",
themes:"237"
}
, "51" :
{
id:"51",
name:"홍대",
cnt:"64",
themes:"237"
}
, "57" :
{
id:"57",
name:"압구정동",
cnt:"54",
themes:"237"
}
, "65" :
{
id:"65",
name:"분당 정자동",
cnt:"41",
themes:"237"
}
, "48" :
{
id:"48",
name:"부암동",
cnt:"13",
themes:"237"
}
, "40" :
{
id:"40",
name:"건대입구",
cnt:"14",
themes:"237"
}
, "41" :
{
id:"41",
name:"광화문",
cnt:"30",
themes:"237"
}
, "46" :
{
id:"46",
name:"인사동",
cnt:"34",
themes:"237"
}
, "47" :
{
id:"47",
name:"명동",
cnt:"11",
themes:"237"
}
, "52" :
{
id:"52",
name:"가로수길",
cnt:"26",
themes:"237"
}
, "53" :
{
id:"53",
name:"서래마을",
cnt:"38",
themes:"237"
}
, "56" :
{
id:"56",
name:"논현역",
cnt:"8",
themes:"237"
}
, "60" :
{
id:"60",
name:"목동",
cnt:"19",
themes:"237"
}
, "61" :
{
id:"61",
name:"청담동",
cnt:"60",
themes:"237"
}
, "62" :
{
id:"62",
name:"삼성동",
cnt:"17",
themes:"237"
}
, "63" :
{
id:"63",
name:"사당",
cnt:"16",
themes:"237"
}
, "64" :
{
id:"64",
name:"신천",
cnt:"10",
themes:"237"
}
, "66" :
{
id:"66",
name:"부산 서면",
cnt:"20",
themes:"237"
}
, "68" :
{
id:"68",
name:"부산 해운대",
cnt:"25",
themes:"237"
}
, "69" :
{
id:"69",
name:"부산 광안리",
cnt:"15",
themes:"237"
}
, "71" :
{
id:"71",
name:"광주 충장로",
cnt:"3",
themes:"237"
}
, "73" :
{
id:"73",
name:"을지로",
cnt:"6",
themes:"237"
}
, "74" :
{
id:"74",
name:"남대문",
cnt:"4",
themes:"237"
}
, "75" :
{
id:"75",
name:"충무로",
cnt:"4",
themes:"237"
}
},
getXml : function() {
var str = "";
for(var i in hotPlace.data) {
str += ""+hotPlace.data[i].name+""+hotPlace.data[i].id+"";
}
str += "";
return str;
},
callback : function(themeId) {
var ajax = new daum.Ajax({
url : "/api/SectionTopThemeAPI.do",
method : "POST",
paramString : "dvsn=H&themeid="+themeId,
onsuccess : hotPlace.draw.bind(this, themeId)
});
ajax.request();
daum.$$("#hotPlaceTotalLink")[0].href = "/theme/TopText.do?tcateid=1&themecateid=237&themeid="+themeId;
daum.$$("#hotPlaceTotalLink span")[0].innerHTML = hotPlace.data[themeId].name;
daum.$$("#hotPlaceTotalLink strong")[0].innerHTML = hotPlace.data[themeId].cnt;
},
getCropImage : function(url){
var cropUrl = url.replace("/image/", "/C98x109/");
return cropUrl;
},
draw : function(themeId, req) {
var data = daum.Ajax.jsonToObject(req.responseText);
for (var i=0,cnt=data.placelist.length;i
');
html.push('');
daum.$$("#hotPlaceList li")[i].innerHTML = html.join("");
}
}
};
var hotPlacePaging = new Life.ListBarPaging({
panel : daum.$('hotPlacePaging'),
//target : daum.$T("button",daum.$('hotPlacePaging')),
onCss : "current" /* removeClassName이 잘 동작하지 않아서 on으로 하려다가 current로 수정 */
})
var hotPlaceListBar = new Life.Flash.ListBar("hotPlaceListBar", {
paging : "hotPlacePaging",
flashvars : {
"themaFunc" : "hotPlace.callback",
"tdata" : hotPlace.getXml()
}
});
var foodStreet = {
data : {
"1" :
{
id:"1",
name:"북성동 차이나타운",
desc:"대한민국 자장면의 고향, 인천역에서 나와 작달막한 언덕에 자리잡은 차이나타운. ",
linkurl:"",
cnt:"11",
imgurl:"http://cfile71.uf.daum.net/image/2074CE134AC414A11B5018",
themes:"237"
}
, "2" :
{
id:"2",
name:"무교동 낙지 거리",
desc:"콩나물과 함께 얼얼하게 매운 낚지를 맛볼 수 있는 추억의 거리",
linkurl:"",
cnt:"4",
imgurl:"http://cfile72.uf.daum.net/image/161DE8104AC414B531EDB1",
themes:"237"
}
, "3" :
{
id:"3",
name:"경희대 파전 골목",
desc:"지하철 회기역 1번 출구 경희대 방향. 돈없고 술당기는 사람들을 위한 파전 골목 ",
linkurl:"",
cnt:"6",
imgurl:"http://cfile173.uf.daum.net/image/2046A4144AC416BB0B84A0",
themes:"237"
}
, "4" :
{
id:"4",
name:"왕십리 곱창 골목",
desc:"20년전 동대문 곱창가게들이 이사와서 형성한 곳. 연탄불위 고소한 맛을 즐겨보세요",
linkurl:"",
cnt:"13",
imgurl:"http://cfile75.uf.daum.net/image/1454BF114AC4176B35BDB8",
themes:"237"
}
, "5" :
{
id:"5",
name:"장충동 족발 골목",
desc:"최소 30년 이상 된 가게가 몰려있어 족발의 진수를 맛볼 수 있는 곳으로 와보세요 ",
linkurl:"",
cnt:"9",
imgurl:"http://cfile173.uf.daum.net/image/134E4F114AC4184E76EF68",
themes:"237"
}
, "6" :
{
id:"6",
name:"인천 인현동 삼치구이",
desc:"인천 중구 인현동 학생문화회관 뒷길의 삼치거리. 어머니 손맛을 느껴보세요~ ",
linkurl:"",
cnt:"7",
imgurl:"http://cfile172.uf.daum.net/image/1332F5274ACAE97B1D4C75",
themes:"237"
}
, "7" :
{
id:"7",
name:"인천 화평동 냉면거리",
desc:"세숫대야 냉면으로 더 알려진 화평동. 육수 2배의 푸짐한 맛을 느껴보세요~ ",
linkurl:"",
cnt:"8",
imgurl:"http://cfile73.uf.daum.net/image/1429CF264ACAEB3B53EA0D",
themes:"237"
}
, "8" :
{
id:"8",
name:"대전 대흥동 칼국수 골목",
desc:"수십년 역사의 내공있는 칼국수 촌. 칼칼한 국물에 듬뿍 얹은 쑥갓이 맛을 더합니다. ",
linkurl:"",
cnt:"7",
imgurl:"http://cfile171.uf.daum.net/image/164FCF114AC414C424A277",
themes:"237"
}
, "9" :
{
id:"9",
name:"안동 찜닭 골목",
desc:"한양 ''안동네''에서 먹던 추억의 맛. 안동 구시장 안 찜닭 골목 한번 와보세요~ ",
linkurl:"",
cnt:"14",
imgurl:"http://cfile74.uf.daum.net/image/1162CD264ACAE731BD1B34",
themes:"237"
}
, "10" :
{
id:"10",
name:"남원 추어탕 거리",
desc:"지리산 맑은 계곡의 미꾸라지와 산채를 더한 남원의 자랑. 추어탕거리를 소개합니다. ",
linkurl:"",
cnt:"19",
imgurl:"http://cfile172.uf.daum.net/image/19550A254ACAE70713912B",
themes:"237"
}
, "11" :
{
id:"11",
name:"나주 장어구이",
desc:"바다와 강을 오가는 장어의 고장 구진포에서 느끼는 나주 장어의 참 맛 ",
linkurl:"",
cnt:"10",
imgurl:"http://cfile175.uf.daum.net/image/1661E9244ACAE991075AD6",
themes:"237"
}
, "12" :
{
id:"12",
name:"강릉 초당 순두부 마을",
desc:"바닷물로 간을 맞춰 허엽의 호 초당으로 불리게 된 순두부 마을을 소개합니다.",
linkurl:"",
cnt:"14",
imgurl:"http://cfile72.uf.daum.net/image/136A2D284ACAE9A43B2503",
themes:"237"
}
, "13" :
{
id:"13",
name:"춘천 닭갈비 골목",
desc:"60년대 안주용 닭불고기에서 유래된 오리지널 명동 닭갈비 골목을 소개합니다. ",
linkurl:"",
cnt:"17",
imgurl:"http://cfile74.uf.daum.net/image/1110E6124AC414D624A0FD",
themes:"237"
}
, "14" :
{
id:"14",
name:"영덕 대게 마을",
desc:"게로 배를 한번 채워 볼까? 영덕의 빼놓을수 없는 아이콘. 대게의 참맛을 느껴보자~",
linkurl:"",
cnt:"16",
imgurl:"http://cfile174.uf.daum.net/image/13051F284ACAE9B40AC7EB",
themes:"237"
}
, "15" :
{
id:"15",
name:"마산 아구찜",
desc:"절로 침이 고이는 마산 아구찜. 매콤함 양념의 오동동 골목을 파헤쳐 보자 ",
linkurl:"",
cnt:"12",
imgurl:"http://cfile171.uf.daum.net/image/1443D0254ACAE9C636F009",
themes:"237"
}
, "16" :
{
id:"16",
name:"의정부 부대찌개",
desc:"출출할땐 의정부로~ 송탄 존슨탕을 뛰어넘는 부대찌개의 원조집을 소개합니다. ",
linkurl:"",
cnt:"13",
imgurl:"http://cfile72.uf.daum.net/image/151949104AC414EE4AC61B",
themes:"237"
}
, "17" :
{
id:"17",
name:"통영 충무김밥 골목",
desc:"갑오징어무침과 한입크기의 김밥. 60년 전통의 원조 충무김밥 골목을 들여다 보자 ",
linkurl:"",
cnt:"8",
imgurl:"http://cfile72.uf.daum.net/image/19215B274ACAE9D936B646",
themes:"237"
}
, "18" :
{
id:"18",
name:"고창 풍천 장어구이",
desc:"바람을 몰고 온다는 풍천장어의 담백하고 구수한 맛. 장어의 참맛을 즐겨보세요~",
linkurl:"",
cnt:"13",
imgurl:"http://cfile73.uf.daum.net/image/13469F244ACAE9E63013A3",
themes:"237"
}
, "19" :
{
id:"19",
name:"하동 재첩국",
desc:"섬진강의 재첩국집이 몰려있는 골목. 재첩의 시원한 국물 맛의 매력에 빠져보자",
linkurl:"",
cnt:"11",
imgurl:"http://cfile73.uf.daum.net/image/2039B0264ACAE9F626D433",
themes:"237"
}
, "20" :
{
id:"20",
name:"광양 불고기",
desc:"연한 등심을 먹기 직전 양념해 참숯불에 굽는 전라도 광양시 불고기를 만나보세요~",
linkurl:"",
cnt:"10",
imgurl:"http://cfile74.uf.daum.net/image/2009B5124AC415051D3180",
themes:"237"
}
, "21" :
{
id:"21",
name:"전남 나주곰탕",
desc:"남도의 육류문화에서 정착된 깊은 맛이 살아 숨쉬는 나주 곰탕집 총집합. ",
linkurl:"",
cnt:"9",
imgurl:"http://cfile73.uf.daum.net/image/2008C4124AC415172AD101",
themes:"237"
}
, "22" :
{
id:"22",
name:"담양 대통밥",
desc:"대나무 속에 밤, 대추 등 견과류를 넣어 찌는 밥. 전남 담양의 대통밥을 소개합니다. ",
linkurl:"",
cnt:"10",
imgurl:"http://cfile175.uf.daum.net/image/13180B104AC415242B515E",
themes:"237"
}
, "23" :
{
id:"23",
name:"영광 굴비 마을",
desc:"해풍에 3개월 잘 말린 굴비가 지천으로 있는 영광 법성포 굴비촌을 소개합니다. ",
linkurl:"",
cnt:"19",
imgurl:"http://cfile172.uf.daum.net/image/1214FB274ACAEA0C4EBC08",
themes:"237"
}
, "24" :
{
id:"24",
name:"이천 쌀밥 정식",
desc:"찰지기로 소문난 이천쌀에 반찬도 한가득한 쌀밥정식. 이천에 가면 놓치지 마세요~ ",
linkurl:"",
cnt:"21",
imgurl:"http://cfile172.uf.daum.net/image/152A3B104AC4123005D789",
themes:"237"
}
, "25" :
{
id:"25",
name:"포천 이동갈비",
desc:"2배의 양으로 인기몰이한 포천 이동 갈비. 많은 원조집에서 진정한 맛집은? ",
linkurl:"",
cnt:"11",
imgurl:"http://cfile172.uf.daum.net/image/1920D8104AC4153A27262F",
themes:"237"
}
, "26" :
{
id:"26",
name:"양평 옥천냉면",
desc:"메밀과 감자로 만들어 면발이 굵고 쫄깃한 황해도식 냉면의 맛을 경험해 보자~ ",
linkurl:"",
cnt:"11",
imgurl:"http://cfile71.uf.daum.net/image/130930124AC415714AF3C5",
themes:"237"
}
, "27" :
{
id:"27",
name:"파주 황복회",
desc:"민물에서 잡히는 파주 황복. 죽음과도 바꾼다는 그맛. 황복회 맛집을 소개합니다~ ",
linkurl:"",
cnt:"25",
imgurl:"http://cfile174.uf.daum.net/image/18051F284ACAEB4F0CAE4F",
themes:"237"
}
, "28" :
{
id:"28",
name:"김해 불암동 장어거리",
desc:"부산과 김해의 경계인 김해교를 건너 자리잡은 불암동 장어거리를 만나보세요~ ",
linkurl:"",
cnt:"16",
imgurl:"http://cfile174.uf.daum.net/image/112A0B274ACAEB5B437433",
themes:"237"
}
},
getXml : function() {
var str = "";
for(var i in foodStreet.data) {
str += ""+foodStreet.data[i].name+""+foodStreet.data[i].id+"";
}
str += "";
return str;
},
callback : function(themeId) {
var ajax = new daum.Ajax({
url : "/api/SectionTopThemeAPI.do?dvsn=S&themeid=" + themeId,
onsuccess : foodStreet.draw.bind(this, themeId)
});
ajax.request();
var linkObj = daum.$$("#streetInfo .maininfo a");
linkObj.each(function(link){
link.href = foodStreet.data[themeId].linkurl;
});
daum.$$("#streetInfo .thumb img")[0].src = (foodStreet.data[themeId].imgurl) ? foodStreet.data[themeId].imgurl : "http://localimg.daum-img.net/life/images/common/noimg_134_104.gif";
daum.$$("#streetInfo .info h4 a")[0].innerHTML = foodStreet.data[themeId].name;
daum.$$("#streetInfo .info p a")[0].innerHTML = foodStreet.data[themeId].desc;
daum.$$("#streetInfo .subinfo h5")[0].innerHTML = foodStreet.data[themeId].name+ "추천 이곳!";
daum.$$("#streetInfo .subinfo ul")[0].innerHTML = "";
daum.$$("#foodStreetTotalLink strong")[0].innerHTML = foodStreet.data[themeId].cnt;
var linkurl = "/theme/TopText.do?tcateid=1&themecateid="+foodStreet.data[themeId].themes+"&themeid="+themeId;
daum.$$("#streetInfo .thumb")[0].href = linkurl;
daum.$$("#foodStreetTotalLink")[0].href = linkurl;
daum.$$("#streetInfo .info h4 a")[0].href = linkurl;
daum.$$("#streetInfo .info p a")[0].href = linkurl;
},
draw : function(themeId, req) {
var data = daum.Ajax.jsonToObject(req.responseText);
var html = [];
for (var i=0,cnt=data.placelist.length;i- '+data.placelist[i].placename+'
');
}else{
html.push('- '+data.placelist[i].placename+'');
}
}
daum.$$("#streetInfo .subinfo ul")[0].innerHTML = html.join("");
}
}
var streetPaging = new Life.ListBarPaging({
panel : daum.$('streetPaging'),
//target : daum.$T("button",daum.$('streetPaging')),
onCss : "current" /* removeClassName이 잘 동작하지 않아서 on으로 하려다가 current로 수정 */
})
var foodStreetListBar = new Life.Flash.ListBar("foodStreetListBar", {
paging : "streetPaging",
flashvars : {
"themaFunc" : "foodStreet.callback",
"tdata" : foodStreet.getXml()
}
});
첫댓글 잘보고 갑니다. 감사합니다.
잘보고갑니다