웹마스터 팁

하나 더 쓸께요 ^^;;
전에는 운엉체제별로 달라지는걸 알려드렸는데
이번엔,, 프레임 쓰시는 분들이,, 상당히 걸기적 거리는 해상도 문제에 대해서
풀어볼께요 ;; (제가 써놓고두 무슨 말인지)
어쨋거나,, 소스를 먼저 보시죠
----------------------------------------------------------------------------
<html>

<head>
<title>해상도별 이동시키기</title>
<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 bgcolor="white" text="black" link="blue" vlink="purple" alink="red" OnLoad="na_redirect_by_resolution('640*480', '800*600', '1024*768', '기타');">

<p>
<!-- 내용들어갈 자리-->
</p>
</body>

</html>
----------------------------------------------------------------------------
여기서도,, 별 다른건 수정하실것 없구요
OnLoad="na_redirect_by_resolution('640*480', '800*600', '1024*768', '기타');
이 부분을 수정해 주세요
해상도 써 놓은곳에 이동할 절대경로나 상대경로를 적어주시면 됩니다.
기타에다가는,, 암거나,, 쓰시는 분들이 알아서 ;; ㅎㅎ

그럼 유용하게 쓰세요~

ps 중복이라면 지울께요 ;;