항상 화면의 중간에 새창 띠우기
인터넷정보2007. 10. 17. 17:57
항상 화면 중앙에 새창 띠우기
미리보기 : http://oxtag.com/html/ex/new_win_center.html
미리보기 : http://oxtag.com/html/ex/new_win_center.html
아래 소스를 헤드안에 넣으세요. <SCRIPT LANGUAGE="JavaScript"> <!-- function launchCenter(url, name, height, width) { var str = "height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - width) / 2; var yc = (ah - height) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } return window.open(url, name, str); } var win = launchCenter('../filter.html', 'center', 220, 440); // --> </SCRIPT> |
'인터넷정보' 카테고리의 다른 글
공지창 쿠키 이용해 하루에 한번만.... (0) | 2007.10.17 |
---|---|
윈도우를 살포시 흔들어보자. (0) | 2007.10.17 |
텍스트 다이나믹 애니메이션 (0) | 2007.10.17 |
링크 포커스 한방에 없애기(onfocus=this.blur() 또는 onfocus=blur()) (0) | 2007.10.17 |
새창으로 윈도우 열었을때 F11 클릭시 자동 다운시키기 (0) | 2007.10.17 |
원 클릭으로 클립보드에 복사하기(우측 태그피아 배너) (0) | 2007.10.17 |
textarea 늘리기/줄이기 (0) | 2007.10.17 |
keystroke - 지정한 텍스트 타이핑시 연결된 URL로 이동 (0) | 2007.10.17 |
fade in/out (0) | 2007.10.17 |
페이지 로딩될때 준비한 메시지 로딩시까지 보여주기 - 로딩바 (0) | 2007.10.17 |