묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
자바로 새창 띠우기 을 했는대 크기 가 이상하게 나오니다.
2004.10.09 11:51
개인 홈페이지대 http://woobos.com/
클릭를 하면 새창이 뜨는대 해상도가 1024*768 이면 이상없는대. 높은해상도 로 해서 클릭하면 새로 크기가 768 보다 길게 나옴니다,
참고로 전 sp2 입니다.
소스
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>바람</title>
<style type="text/css">
<!--
.style1 {
font-family: "굴림", "돋움", Seoul, "한강체";
font-size: small;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
</head>
<body style="overflow-y:hidden">
<script language="javascript">
<!--
var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;
function zoomBox(evt,zlink,maxw,maxh,tox,toy)
{
if (arguments.length > 2)
{
zNew=1;
}
scrollH = (window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW = maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH = maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX = tox?tox:0;
toY = (toy?toy:0)+scrollH;
fromX = evt.pageX?evt.pageX:evt.clientX;
fromY = (evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX = toX+evt.screenX-fromX;
adjY = toY+evt.screenY-fromY;
if (document.createElement && document.body.appendChild && !zBox)
{
zBox=document.createElement("div");
zBox.style.position = "absolute";
document.body.appendChild(zBox);
}
else if (document.all && !zBox)
{
document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
zBox=document.all.zBoxDiv;
}
else if (document.layers && !zBox)
{
zBox = new Layer(maxW);
zBox.style=zBox;
}
zLink = zlink;
doZoom();
}
function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers)
{
zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
zBox.document.open();
zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
zBox.document.close();
}
else
{
zBox.style.border = "2px solid #999999";
zBox.style.left = toX+zPct*(fromX-toX);
zBox.style.top = toY+zPct*(fromY-toY);
zBox.style.width = maxW*(1-zPct);
zBox.style.height = maxH*(1-zPct);
}
zBox.style.visibility = "visible";
if (zStep < 10)
{
setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
}
else
{
zBox.style.visibility='hidden';
zStep=0;
if (zLink && !zNew)
{
location.href=zLink.href;
}
else if (zLink && zNew)
{
var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars=no');
zNew=null;
}
}
}
//-->
</script>
<div align="center">
<p> </p>
<table border="0" width="758" background="back.gif">
<tr>
<td width="752" height="407">
<p align="center"><a href='../index2.htm' onclick="zoomBox(event,this,1024,768,100,100);return false"><span style="font-size:10pt;">IN[인]</span></a>
</p>
</td>
</tr>
</table>
</div>
</body>
</html>
클릭를 하면 새창이 뜨는대 해상도가 1024*768 이면 이상없는대. 높은해상도 로 해서 클릭하면 새로 크기가 768 보다 길게 나옴니다,
참고로 전 sp2 입니다.
소스
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>바람</title>
<style type="text/css">
<!--
.style1 {
font-family: "굴림", "돋움", Seoul, "한강체";
font-size: small;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
</head>
<body style="overflow-y:hidden">
<script language="javascript">
<!--
var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;
function zoomBox(evt,zlink,maxw,maxh,tox,toy)
{
if (arguments.length > 2)
{
zNew=1;
}
scrollH = (window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW = maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH = maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX = tox?tox:0;
toY = (toy?toy:0)+scrollH;
fromX = evt.pageX?evt.pageX:evt.clientX;
fromY = (evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX = toX+evt.screenX-fromX;
adjY = toY+evt.screenY-fromY;
if (document.createElement && document.body.appendChild && !zBox)
{
zBox=document.createElement("div");
zBox.style.position = "absolute";
document.body.appendChild(zBox);
}
else if (document.all && !zBox)
{
document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
zBox=document.all.zBoxDiv;
}
else if (document.layers && !zBox)
{
zBox = new Layer(maxW);
zBox.style=zBox;
}
zLink = zlink;
doZoom();
}
function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers)
{
zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
zBox.document.open();
zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
zBox.document.close();
}
else
{
zBox.style.border = "2px solid #999999";
zBox.style.left = toX+zPct*(fromX-toX);
zBox.style.top = toY+zPct*(fromY-toY);
zBox.style.width = maxW*(1-zPct);
zBox.style.height = maxH*(1-zPct);
}
zBox.style.visibility = "visible";
if (zStep < 10)
{
setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
}
else
{
zBox.style.visibility='hidden';
zStep=0;
if (zLink && !zNew)
{
location.href=zLink.href;
}
else if (zLink && zNew)
{
var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars=no');
zNew=null;
}
}
}
//-->
</script>
<div align="center">
<p> </p>
<table border="0" width="758" background="back.gif">
<tr>
<td width="752" height="407">
<p align="center"><a href='../index2.htm' onclick="zoomBox(event,this,1024,768,100,100);return false"><span style="font-size:10pt;">IN[인]</span></a>
</p>
</td>
</tr>
</table>
</div>
</body>
</html>