해상도를 자동조절하는 머시기없을까요?? 정보
그누보드 해상도를 자동조절하는 머시기없을까요??본문
그누에대한 질문은 아닙니다..죄송하구요.
스크롤바를따라다니는 스크립적용을할려고합니다...
근데..레이어를 고정하는방식은 많이있는것같은데..
사용자의 해상도에따라서 자동조절할수있는 방법은..잘 못찾겠게요..
혹시..나 해서 올려봅니다..
유사한팁이라도 있으면...도움을 주싶시요..
스크롤바를따라다니는 스크립적용을할려고합니다...
근데..레이어를 고정하는방식은 많이있는것같은데..
사용자의 해상도에따라서 자동조절할수있는 방법은..잘 못찾겠게요..
혹시..나 해서 올려봅니다..
유사한팁이라도 있으면...도움을 주싶시요..
댓글 전체
좋은스크립트를 알려주신 짱이님께..감사드립니다..~@@
<html>
<title>모니터 해상도별 페이지 이동</title>
<head>
<script language="JavaScript">
<!--
function win_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="win_resolution('640*480일때 경로', '800*600일때 경로', '1024*768일때 경로', '기타일때 경로');">
....................................
</body>
</html>
<title>모니터 해상도별 페이지 이동</title>
<head>
<script language="JavaScript">
<!--
function win_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="win_resolution('640*480일때 경로', '800*600일때 경로', '1024*768일때 경로', '기타일때 경로');">
....................................
</body>
</html>