사이트 내 전체검색
홈페이지 만들때 유용한 해상도 테스터
https://cmd.kr/javascript/230 URL이 복사되었습니다.

본문

<SCRIPT LANGUAGE="JavaScript">
var testWin;
function resTest(w,h) {
frm = document.forms[0];
urlF = frm.testURL.value;
if(urlF == "" || urlF == "http://") {
alert('URL을 적어주세요.');
frm.testURL.focus();
return false;
}

if(w == null) {
w = frm.customw.value;
if(w == "" || !Number(w) || w < 100) {
alert('가로 크기를 적어주세요.');
frm.customw.value = "";
frm.customw.focus();
return false;
}
}
if(h == null) {
h = frm.customh.value;
if(h == "" || !Number(h) || h < 100) {
alert('세로 크기를 적어주세요.');
frm.customh.value = "";
frm.customh.focus();
return false;
}
}
properties = "width=" + w;
properties += ",height=" + h;
properties += ",scrollbars=1,toolbar=1,location=1";
properties += ",directories=1,status=1,menubar=1";
properties += ",resizable=1,left=0,top=0";
if(testWin && !testWin.closed) {
testWin.close();
}
testWin = window.open(urlF,"TestRes",properties);
if(navigator.appName.indexOf("Netscape") != -1) {
testWin.outerWidth = w;
testWin.outerHeight = h;
}
frm.innerDim.value = "팝업 윈도우 크기 : " + w + "x" + h + "";
if(navigator.appName.indexOf("Netscape") != -1) {
}
this.focus();
}
//-->
</script>

<title>홈페이지 만들때 유용한 해상도 테스터</title>
<form>
<table border="0">
<tr>
<td align="center">
URL: <input type=text name="testURL" SIZE="25" value="http://">
</td>
</tr>
<tr>
<td align="center">
Width: <input type=text name="customw" SIZE="3">
Height: <input type=text name="customh" SIZE="3">
<input type=button value="Test" onClick="resTest()">
</td>
</tr>
<tr>
<td align="center">
<input type=button value="640 x 480" onClick="resTest('640','480')">
<input type=button value="800 x 600" onClick="resTest('800','600')">
<input type=button value="1024 x 768" onClick="resTest('1024','768')">
</td>
</tr>
<tr>
<td align="center">
<TEXTAREA NAME="innerDim" rows="2" cols="30" wrap="physical">
팝업 크기를 선택하여 주십시오.

출처 : http://www.aircon1004.com/data/bbs/board.php?bo_table=pds1&wr_id=42

댓글목록

등록된 댓글이 없습니다.

831 (11/17P)

Search

Copyright © Cmd 명령어 18.119.172.243