새창없이 창띄우기
페이지 정보
작성자 서방님 댓글 0건 조회 136회 작성일 06-11-17 09:55본문
<html>
<head>
<title>sample</title>
<script>
function Content(div,s)
{
var a = eval("document.all.info_" + div);
if(s)
{
a.style.top = 0;
a.style.left = 0;
a.style.display = "";
tg.location.href = "http://google.co.kr";
}
else
{
a.style.display = "none";
tg.location.href = "about:blank";
}
}
</script>
</head>
<body style='margin:0;'>
<a onclick="Content('1',true);" style='cursor:hand;'>구글을 열자.</a>
<div id="info_1" style="position:absolute; display:none; width:100%; height:100%;">
<div style='position:absolute; top:50%; left:50%; margin-top:-15em; margin-left:-15em; background-color:#ffffff;'>
<iframe name="tg" src='#' frameborder='0' width='400' height='500' scrolling='no'></iframe>
</div>
<table cellpadding='0' cellspacing='0' border='0' style='width:100%; height:100%; background-color:#000000; filter:Alpha(opacity=30); opacity:0.3; -moz-opacity:0.3;' onclick="Content('1',false);">
<tr>
<td></td>
</tr>
</table>
</div>
</body>
</html>
댓글목록
등록된 댓글이 없습니다.