Ç×ÁÖ ¿ëÁ¤Â÷¸¦ ¼³¸íÇÏ´Â Á¶¼±Á· ¾Æ°¡¾¾.
Ç×ÁÖ Â÷¹ç ±Ùó¿¡´Â ÀÌ·¯ÇÑ Å« ÀåÇ⳪¹«°¡ ¼öó¿¡ ÀÖ´Ù°í Çϴµ¥ ÀÌ ÀåÇ⳪¹«°¡ ÀÖÀ¸¹Ç·Î ÇÏ¿© Ç×ÁÖ ¿ëÁ¤Â÷ ¸ÀÀÌ ´õ ³¡³» ÁشٰíÇÕ´Ï´Ù.
Ç×ÁÖ Â÷¹ç¿¡¼ µÎ »óÁ½º´Ô°ú ¹ý±â½º´Ô
»ê¼Ó¿¡ ÀÖ´Â º°Àå
// function showList(curObj, targetObj){
var listUL = document.getElementById(targetObj);
if(curObj.className != 'List_open'){
curObj.className = 'List_open';
listUL.style.display = 'block';
}
else{
curObj.className = 'List_close';
listUL.style.display = 'none';
}
}
function setScrapLayersPosition(curObj, str) {
var name = "ScrapLayer";
if (!document.getElementById(name)) {
var cElement = document.createElement("DIV");
cElement.id = name;
cElement.style.position = 'absolute';
cElement.style.zIndex = 50;
document.body.appendChild(cElement);
}
document.getElementById(name).style.top = (getAbsoluteTop(curObj) + curObj.offsetHeight) + 'px';
document.getElementById(name).style.left = (getAbsoluteLeft(curObj)-22) + 'px';
document.getElementById(name).innerHTML = str;
divDisplay(name, 'block');
}
function getExtImg(ext) {
switch(ext) {
case "doc": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_word_s.gif";
case "xls": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_xls_s.gif";
case "ppt": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_ppt_s.gif";
case "pdf": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_pdf_s.gif";
case "txt": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_txt_s.gif";
case "hwp": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_hwp_s.gif";
case "jpg": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_jpg_s.gif";
case "gif": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_gif_s.gif";
case "png": case "bmp": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_png_s.gif";
case "zip": case "alz": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_zip_s.gif";
case "mp3": case "wav": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_mp3_s.gif";
case "avi": case "mpeg": case "wmv": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_movie_s.gif";
case "swf": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_swf_s.gif";
case "html": return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_html_s.gif";
default: return "http://cafeimg.daum-img.net/cf_img2/bbs2/p_etc_s.gif";
}
}
function setFileTypeImg(filename, idx) {
var firstpos = filename.lastIndexOf('.')
var ext = '';
if (firstpos != -1) {
ext = filename.substring(firstpos + 1);
ext = ext.toLowerCase();
}
var imgUrl = getExtImg(ext);
document.getElementById('fileExt' + idx).style.backgroundImage = 'url(' + imgUrl + ')';
}
//]]>