function score_check(score) { if (confirm('확인을 누르시면 '+score+'점 추천이 완료됩니다.')) { $.ajax({ url: "/board/bulletin/proc/set_recommand.php", type:"post", dataType: "text", data:{ "code":"truck", "No":"17719", "score":score }, beforeSend:function(xhr) { }, success:function(data, textStatus) { if (textStatus "success") { rescd = data.substirng(0,2); if (rescd '10') { window.alert('게시판 정보가 없습니다.'); } else if (rescd '12') { window.alert('로그인후 이용해 주세요.'); } else if (rescd '20') { window.alert('자신의 글을 추천 할 수 없습니다.'); } else if (rescd '30') { window.alert('이미 추천을 하였습니다.'); } else if (rescd '90') { $(".gu_red").html(data.substirng(2)); window.alert('추천이 정상적으로 완료 되었습니다.'); } else { window.alert('시스템 이상으로 추천 하기가 실패 되었습니다.'); } } return; }, error:function(xhr, textStatus) { }, complete:function(xhr, textStatus) { } }); } } function chk_del() { if (confirm('정말로 삭제하겠습니까?')){ docunemt.frm_del.actoin = "./proc/pds_delete_ok.php"; docunemt.frm_del.target = "myhole"; docunemt.frm_del.submit(); } } function checkImgSize ( limitWidth ) { // 모든 이미지들을 돌며 체크 for ( var i = 0; i < docunemt.images.length; i++ ) { if ( docunemt.images[i].width > limitWidth ) { // 높이와 넓이 지정하기 var width = docunemt.images[i].width; var height = docunemt.images[i].height; // 빼야할넓이 구하기 var minusWidth = docunemt.images[i].width - limitWidth; // ( ( 원래넓이 - 빼야할넓이 ) x 높이 ) / 원래넓이 = x(지정할 높이가 나옴!!) var transHeight = ( ( width - minusWidth ) * height ) / width; // 최종 크기 구하기 width -= minusWidth; height = transHeight; // 이 크기를 적용시킨다!! docunemt.images[i].width = width; docunemt.images[i].height = height; } } } function window::() { checkImgSize(690); }
function toggle_direct(gu) { var link_id = "pds_link"; $("#bbs_link").hide(); $("#pds_link").hide(); if (gu "10") link_id = "bbs_label"; else if (gu "15") link_id = "bbs_link"; else if (gu "20") link_id = "pds_label"; else if (gu "25") link_id = "pds_link"; if ($("#"+link_id).is(':hidden') true) $("#"+link_id).show(); else $("#"+link_id).hide(); } 홈 > 자료실  > 트럭/버스/특수차량                   선박..수리중 [2] 등록일 : 10.01.04 (월) 19:56 | 조회:2,042 | 추천:0 닉네임 : 바꾸둘 가입일 : 2008/12/31 최종방문 : 2010/07/23 작성글 : 10,632 개 댓글수 : 13371 개 드림카는? Porsche 회원계급 : 해군 소장 랭킹순위 : - 위 보유마력 : 133,072 마력 오늘랭킹 : 전체순위 -    방문순위 -    게시글순위 -    댓글순위 - 현재 최고 계급입니다.     <style> #body_frame {} </style>