사용자의 해상도에 따라 각기 다른 페이지로 리다이렉트 시키기
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url640x480 = "http://www.yoursite.com/640x480";
var url800x600 = "http://www.yoursite.com/800x600";
var url1024x768 = "http://www.yoursite.com/1024x768";
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= url640x480;
}
// End -->
</script>
<BODY BGCOLOR="#FFFFFF">
<center>
<form>
<input type=button value="Enter!" onClick="redirectPage()">
</form>
</center><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<!-- Begin
function redirectPage() {
var url640x480 = "http://www.yoursite.com/640x480";
var url800x600 = "http://www.yoursite.com/800x600";
var url1024x768 = "http://www.yoursite.com/1024x768";
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= url640x480;
}
// End -->
</script>
<BODY BGCOLOR="#FFFFFF">
<center>
<form>
<input type=button value="Enter!" onClick="redirectPage()">
</form>
</center><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 356 | 기타 |
|
19년 전 | 4379 | |
| 355 | 기타 | 19년 전 | 4643 | ||
| 354 | MySQL | 19년 전 | 4863 | ||
| 353 | 기타 | 19년 전 | 4965 | ||
| 352 | JavaScript |
|
19년 전 | 4750 | |
| 351 | 기타 |
|
19년 전 | 4717 | |
| 350 | JavaScript | 19년 전 | 4008 | ||
| 349 | 기타 | 19년 전 | 3350 | ||
| 348 | 기타 | 19년 전 | 4284 | ||
| 347 | 기타 | 19년 전 | 4035 | ||
| 346 | JavaScript | 19년 전 | 5342 | ||
| 345 | MySQL | 19년 전 | 4870 | ||
| 344 | 기타 | 19년 전 | 6532 | ||
| 343 | JavaScript | 19년 전 | 6225 | ||
| 342 | MySQL | 19년 전 | 5340 | ||
| 341 | 기타 | 19년 전 | 5047 | ||
| 340 | JavaScript | 19년 전 | 4268 | ||
| 339 | MySQL | 19년 전 | 5373 | ||
| 338 | 기타 | 19년 전 | 5802 | ||
| 337 | PHP | 19년 전 | 4981 | ||
| 336 | 기타 | 19년 전 | 5058 | ||
| 335 | PHP | 20년 전 | 6284 | ||
| 334 | JavaScript |
hwatta
|
20년 전 | 3854 | |
| 333 | 정규표현식 | 20년 전 | 6422 | ||
| 332 | Linux | 20년 전 | 5272 | ||
| 331 | 기타 | 20년 전 | 4331 | ||
| 330 | 기타 |
sdesign1s
|
20년 전 | 3560 | |
| 329 | 기타 | 20년 전 | 4465 | ||
| 328 | MySQL | 20년 전 | 4544 | ||
| 327 | MySQL | 20년 전 | 3924 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기