var flashVersion = parent.swfobject.getFlashPlayerVersion();
if(typeof flashVersion != "undefined" && typeof flashVersion.major != "undefined" && flashVersion.major >= 10 && typeof ExifViewer != "undefined"){
var getTxImages = function () {
var result, txImages, images, i, len, img;
result = [];
images = [];
txImages = document.body.getElementsByTagName("img");
len = txImages.length;
for (i = 0; i < len; i += 1) {
img = txImages[i];
if (/tx\-daum\-image|txc\-image/.test(img.className)) {
images.push(img);
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/0159C03F516631D219"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/1741FC415166326F1B"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/165463435166328103"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/24657942516632931C"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/13316344516632A628"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/2260E542516632B51E"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/2005E13E516632C434"){
result.push(img);
images.splice(i, i);
break;
}
}
for(var i = 0, len = images.length; i < len; i++){
img = images[i];
if(img.src == "https://t1.daumcdn.net/cfile/blog/1571A845516632DA0A"){
result.push(img);
images.splice(i, i);
break;
}
}
return result;
};
var txImages = getTxImages();
ExifViewer.load({
serviceName: "blog",
images: txImages,
showAllItem: false,
imageViewer: {
templateValue: {
blogid: encodeURIComponent(BLOGID),
articleurl: encodeURIComponent("http://blog.daum.net/01000go/1567718")
},
photoList: {
photoListProtocol: "blogphotolistselect",
photoListDataFromUrl: "http://blog.daum.net/_blog/api/PhotoListSelectImageViewer.do?blogid={blogid}&articleurl={articleurl}&imageurl={imageurl}"
},
groupList: {
groupListProtocol: "blogcatelist",
groupListDataFromUrl: "http://blog.daum.net/_blog/api/CategoryList.do?blogid={blogid}"
},
data: {
count: txImages.length,
getViewingUrl: function (index) {
return txImages[index].src;
}
}
}
});
}
출처 : 서초 베데스다 치유센타
메모 :