고

해상도에따라 다른페이지로 접속

<html>
<HEAD>
<TITLE> </TITLE>
<SCRIPT LANGUAGE="JavaScript">

function redirectPage() {
var url640x480 = "1.html";
var url800x600 = "2.html";
var url1024x768 = "3.html";
var url1280x1024 = "4.html";
if ((screen.width == 640) && (screen.height == 480))
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url1280x1024;
}
// End -->
</script>
</HEAD>
<body onLoad="redirectPage()">
</body>
</html>


사용자 해상도가 640*480이면 1.html
800*600이면 2.html
1024*768이면 3.html
1280*1024이거나 이 외 해상도는 4.html 로 접속하게 됩니다.
여러가지로 응용이 되겠죠?

익스플로러&불여우에서 잘 됩니다.<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|

댓글 2개

index에 추가하면 좋겠네요. 꼭 활용하게 될듯... 감사합니다.^^
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
06-06-08 조회 4,085
06-05-31 조회 3,284
06-05-30 조회 3,742
06-05-29 조회 5,463
06-05-20 조회 6,480
06-05-20 조회 7,850
06-05-13 조회 3,726
06-05-13 조회 3,626
06-05-13 조회 3,360
06-05-13 조회 3,447
06-05-10 조회 3,408
06-05-02 조회 3,209
06-05-01 조회 3,214
06-05-01 조회 3,118
06-05-01 조회 3,026
06-05-01 조회 3,028
06-05-01 조회 3,178
06-05-01 조회 4,338
06-05-01 조회 4,191
06-04-30 조회 4,004
06-04-30 조회 3,675
06-04-29 조회 3,764
06-04-29 조회 3,418
06-04-29 조회 3,475
06-04-29 조회 3,849
06-04-28 조회 3,248
06-04-28 조회 5,109
06-04-28 조회 3,635
06-04-28 조회 4,251
06-04-28 조회 3,382
06-04-27 조회 4,177
06-04-27 조회 3,369
06-04-26 조회 4,247
06-04-26 조회 4,623
06-04-25 조회 6,339
06-04-25 조회 4,240
06-04-20 조회 4,017
06-04-17 조회 5,170
06-04-12 조회 3,529
06-04-11 조회 3,899
06-04-08 조회 4,787
06-03-17 조회 4,052
06-03-15 조회 4,709
06-03-06 조회 5,476
bbbking
05-11-05 조회 6,828
05-09-23 조회 5,142
05-08-25 조회 6,851
05-07-29 조회 5,129
05-07-05 조회 6,536
05-06-28 조회 6,883
05-06-20 조회 4,618