프로그래밍
유틸리티
기타자료
시험자료
유용한사이트
대화
여행
 
 
 
 프로그래밍(Programming)
 유틸리티(Utility)
 기타자료(ETC)
 시험자료(Exam)
 유용한사이트(Site)

 
 대화(Community)
 여행(Travel)

 
 회원가입
 로그인
 접속자 75

 
프로그래밍(Programming)

[스크립트] 해상도에 따른 페이지 열기(팝업)

페이지 정보

작성자 관리자 작성일15-06-24 21:48 조회3,134회 댓글0건



  • 이전글
  • 다음글
  • 목록

본문

<html>

<head>

<title>..</title>

<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">

<script language="JavaScript">

<!--

function redirectPage() {

var url800x600 = "main1.html"; //800*600 에서 열릴문서

var url1024x768 = "main2.html"; //1024*768 에서 열릴문서

var url1152x864 = "main3.html"; //1152*864 에서 열릴문서



if ((screen.width == 800) && (screen.height == 600))

window.location.href= url800x600;

else if ((screen.width == 1024) && (screen.height == 768))

window.location.href= url1024x768;

else if ((screen.width == 1152) && (screen.height == 864))

window.location.href= url1152x864;

else window.location.href= url800x600;

}

//-->

</script>

</head>

<body Onload="redirectPage()"> 

</body>

</html>

댓글목록

등록된 댓글이 없습니다.

  • 이전글
  • 다음글
  • 목록
 

 
코스트프리소개
제휴안내
이용약관
개인정보 취급방침
이메일주소 무단수집거부
Copyright ⓒ 2009-2015 Costfree.co.kr All Rights Reserved.
오늘 518    어제 1,764    최대 2,939    전체 904,859