새창없이 창띄우기 > script

본문 바로가기
사이트 내 전체검색

script

새창없이 창띄우기

페이지 정보

작성자 서방님 댓글 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>

댓글목록

등록된 댓글이 없습니다.

Total 846건 47 페이지
게시물 검색

회원로그인

접속자집계

오늘
23
어제
302
최대
1,347
전체
155,084
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.