너무 야함... 보지 마세요...^^ 댓글 : 0 조회 : 2212 추천 : 0 비추천 : 0 2009.02.13 12:24 0 0 Lv.1 갑작바람 실버 500 (10%) 등록된 서명이 없습니다. 03.12 엽기 사진들... 03.06 컴퓨터 폐인 레벨!!! (당신은 몇등급?? ) 03.06 포루노 태입 03.05 5빼기 3 은??????????????????? 03.03 쥐새끼 때려잡기!!!!!!!!! <script language=javascript type=text/javascript> // function showList(curObj, targetObj){ var listUL = document.getElementById(targetObj); if(listUL.style.display == 'none'){ listUL.style.display = 'block'; } else { listUL.style.display = 'none'; } } 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 + ')'; } // </script> 0 0