웹프로그래밍

Global It Leader!!


jQuery


 
 

팝업창 화면 가운데 띄우기

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 3,399회 작성일 17-09-05 15:43

본문

 function center(){
  var x,y;

  if(window.innerHeight){ // IE 외 모든 브라우저
   x = (screen.width - window.innerWidth) / 2;
   y = (screen.height - window.innerHeight) / 2;
  }else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict 모드
   x = (screen.width - document.documentElement.clientWidth) / 2;
   y = (screen.height - document.documentElement.clientHeight) / 2;
  }else if (document.body) { // 다른 IE 브라우저
   x = (screen.width - document.body.clientWidth) / 2;
   y = (screen.height - document.body.clientHeight) / 2;
  }
  window.moveTo(x,y);
 }

댓글목록

등록된 댓글이 없습니다.

전체 149
게시물 검색
jQuery 목록
번호 제목 글쓴이 조회 날짜
149 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 92 12-27
148 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 202 11-08
147 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 221 07-31
146 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 220 06-20
145 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 210 06-20
144 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 215 06-05
143 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 215 06-05
142 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 704 07-06
141 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 894 01-05
140 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 998 12-07
139 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1515 03-31
138 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1522 03-28
137 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1522 03-27
136 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2237 03-27
135 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1484 03-27
134 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1566 03-27
133 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1880 03-26
132 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1515 03-26
131 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1711 03-26
130 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3261 03-26