ActiveX 설치 여부를 검사하는 스크립트
작성일 15-07-15 13:08
페이지 정보
작성자서방님 조회 181회 댓글 0건본문
/********************************************************************************
* ActiveX 설치 여부 체크
********************************************************************************/
<script type="text/javascript">
<!--
function activex_error() {
// alert("설치가 되지 않았습니다");
window.print();
}
//-->
</script>
<object id="factory" style="display:none" viewastext classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="/smsx.cab#Version=6,3,439,30" onError="activex_error();"> </object>
<script type="text/javascript">
function printArea() {
factory.printing.header = ""; // 머릿말 설정
factory.printing.footer = ""; // 꼬릿말 설정
factory.printing.portrait = true; // true:세로출력, false:가로출력
factory.printing.leftMargin = 0.0; // 좌측여백
factory.printing.topMargin = 0.0; // 위 여백
factory.printing.rightMargin = 0.0; // 우측여백
factory.printing.bottomMargin = 0.0; // 아래여백
factory.printing.Print(false, window); // 출력하기 (true:대화창 오픈, false:대화창 없음, window:윈도우 전체출력 or 프레임명을 넣어서 프레임 출력)
window.close(); // 창닫기
}
printArea();
</script>
댓글목록
등록된 댓글이 없습니다.