고

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

<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건
+
제목 글쓴이 날짜 조회
05-08-01 조회 4,029
05-07-24 조회 5,402
05-07-16 조회 5,505
bbbking
05-07-08 조회 3,336
bbbking
05-07-08 조회 3,132
bbbking
05-07-08 조회 8,770
05-07-01 조회 3,319
05-06-30 조회 4,697
05-06-24 조회 5,166
05-06-24 조회 3,401
05-06-21 조회 6,805
05-06-17 조회 4,634
05-06-15 조회 5,444
05-05-04 조회 3,688
05-04-11 조회 4,787
05-04-04 조회 5,201
05-04-02 조회 3,592
05-03-30 조회 3,294
05-03-15 조회 3,447
05-03-15 조회 3,126
05-03-14 조회 2,607
05-03-13 조회 2,817
05-03-13 조회 2,962
05-03-13 조회 2,794
05-03-13 조회 3,034
05-03-13 조회 4,628
05-03-13 조회 3,171
05-03-13 조회 2,598
05-03-13 조회 2,624
05-03-13 조회 2,485
05-03-13 조회 3,659
05-03-13 조회 2,694
05-03-13 조회 2,703
05-03-13 조회 3,215
05-03-13 조회 3,485
05-03-13 조회 3,076
05-03-13 조회 3,027
05-03-13 조회 3,707
05-03-13 조회 2,647
05-03-13 조회 4,154
05-03-13 조회 2,869
05-03-13 조회 3,225
05-03-13 조회 2,698
05-03-13 조회 3,880
05-03-13 조회 2,564
05-03-12 조회 4,898
05-02-04 조회 3,479
04-12-13 조회 7,104
04-12-01 조회 3,381
04-11-30 조회 3,451
04-11-30 조회 2,788
04-11-30 조회 2,690
04-11-30 조회 4,092
04-11-29 조회 3,828
04-11-28 조회 3,764
04-11-28 조회 4,123
04-11-28 조회 3,547
04-11-28 조회 3,044
04-11-28 조회 3,583
04-11-24 조회 3,254
04-11-23 조회 3,040
04-11-17 조회 3,045
04-11-12 조회 3,329
04-11-12 조회 2,675
04-11-10 조회 3,904
04-08-23 조회 4,421
04-08-09 조회 5,068
04-08-08 조회 4,806
04-08-05 조회 6,597
03-09-26 조회 5,257