 |
|
|  |
|
 ȨÆäÀÌÁö |
20³â Àü |
<HTML>
<HEAD>
<TITLE>Çػ󵵺° À¥ÆäÀÌÁö Å×½ºÆ®</TITLE>
<!-- <head>ÅÂ±× ¾È¿¡ ´ÙÀ½ ½ºÅ©¸³Æ®¸¦ »ðÀÔÇÑ´Ù. -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
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('Please enter a valid Width');
frm.customw.value = "";
frm.customw.focus();
return false;
}
}
if(h == null) {
h = frm.customh.value;
if(h == "" || !Number(h) || h < 100) {
alert('Please enter a valid Height');
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 + "\n";
if(navigator.appName.indexOf("Netscape") != -1) {
frm.innerDim.value += "Window Inner Width: " + testWin.innerWidth + "\n";
frm.innerDim.value += "Window Inner Height: " + testWin.innerHeight + "\n\n";
}
else {
frm.innerDim.value += "ÇØ»óµµ ¿¡¼ 25x166¸¦ »©¸é ½ÇÁ¦¹®¼ Å©±â°¡ ³ª¿É´Ï´Ù.\n"; //
frm.innerDim.value += "ÇØ»óµµ ½ÇÁ¦¹®¼\n"; //
frm.innerDim.value += "640x480 -> 615x314\n";
frm.innerDim.value += "800x600 -> 775x434\n";
frm.innerDim.value += "1024x768 -> 999x602\n";
frm.innerDim.value += "1280x1024 -> 1255x999\n\n";
this.focus();
}
this.focus();
}
// End -->
</script>
</HEAD>
<body>
<!-- <body>¿Í </body>»çÀÌ¿¡ ´ÙÀ½À» »ðÀÔÇÑ´Ù -->
<form>
<CENTER>
Çػ󵵺° À¥ÆäÀÌÁö Å×½ºÆ®
<p>URL: <input type=text name="testURL" SIZE="49" value="http://www.daum.net">
<br><br>
Width: <input type=text name="customw" SIZE="4">
Height: <input type=text name="customh" SIZE="4">
<input type=button value="Test" onClick="resTest()">
<br>
<br>
<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')">
<input type=button value="1280 x 1024" onClick="resTest('1280','1024')">
<br><br>
<TEXTAREA NAME="innerDim" rows="10" cols="53" wrap="physical">
À¥ÆäÀÌÁö Á¦À۽à Çػ󵵿¡ µû¶ó ´Ù¸£°Ô º¸ÀÌÁÒ..
±×¶§ Çػ󵵺°·Î À¥ÆäÀÌÁö¸¦ Å×½ºÆ®ÇÒ¼ö ÀÖ´Â ¼Ò½ºÀÔ´Ï´Ù.</TEXTAREA></p>
</form>
</CENTER>
</BODY>
</HTML> |
|
̵̧ : 293 |
̵̧
¸ñ·Ï
|
|
|  |
|