사이트 내 전체검색
해상도별로 다른 페이지 보여주기
로빈아빠
https://cmd.kr/javascript/93 URL이 복사되었습니다.

본문

<html>

<head>
<script language="JavaScript">
<!--
function na_redirect_by_resolution(url_640x480, url_800x600, url_1024x768, other)
{
  var url_640x480; 
  var url_800x600; 
  var url_1024x768;
  if (screen.width==640||screen.height==480)
    window.location.replace(url_640x480)   
  else if (screen.width == 800 ||screen.height == 600)
    window.location.replace(url_800x600);
  else if (screen.width == 1024||screen.height == 768) 
    window.location.replace(url_1024x768);
  else
    window.location.replace(other);
}

// -->
</script>
</head>

<body OnLoad="na_redirect_by_resolution('640*480일때 보여질 경로주소', '800*600일때 보여질 경로주소', '1024*768일때 보여질 경로주소', '기타일때 보여질 경로주소');">

</body>

</html>

출처 : http://qdata.co.kr/bo/bbs/board.php?bo_table=jt&wr_id=24

댓글목록

등록된 댓글이 없습니다.

831 (1/17P)

Search

Copyright © Cmd 명령어 3.149.249.127