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);
}
}
return result;
};
var txImages = getTxImages();
ExifViewer.load({
serviceName: "blog",
images: txImages,
showAllItem: false,
imageViewer: {
templateValue: {
blogid: encodeURIComponent(BLOGID),
articleurl: encodeURIComponent("http://blog.daum.net/qortndhkd/14530")
},
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;
}
}
}
});
}
출처 : 【우수카페】신비한 약초세상
메모 :