Html & Script

전체창으로 띄우기 2 (작업표시줄표시)

컨텐츠 정보

  • 21,156 조회
  • 1 댓글
  • 6 추천
  • 목록

본문

------------------------------------------------------

<script type=text/javascript>
var win= null;
function NewWindow(mypage,myname,w,h,scroll,toolbar,directories,location,status,menubar,scrollbars,resizable,copyhistory){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
</script>

<a href="http://user.chol.com/~pilasry/frameset/index_main.htm" onclick="NewWindow(this.href,'name','100%','100%','no','no','no','no','no','no','no','no','no');return false" OnMouseOut="na_restore_img_src('image1', 'document')" OnMouseOver="na_change_img_src('image1', 'document', 'http://user.chol.com/~pilasry/photo1.jpg', true, this.style.cursor='hand');"><img src="http://user.chol.com/~pilasry/photo.jpg" width="680" height="466" border="0" name="image1"></a></p>


-------------------------------------------------------

<script language="JavaScript">

function pop(pPage,pName,Opt) {
/*
//var sc_x = screen.availWidth - 10;
//var sc_y = screen.availHeight - 30;

var sc_x = 1000;
var sc_y = 730;

Opt = "width=" + sc_x + ",height="+sc_y+","+ Opt;
alert(Opt);
*/

 popUpWin = window.open(pPage,pName,Opt);

 popUpWin.focus();
 }
//-->
</script>
<BODY>

<a href="javascript:pop('http://daum.net,'nuno','scrollbars=yes,status=no,toolbar=no,top=0,left=0,resizable=no')">여기</a>

관련자료

댓글 1
Today's proverb
장 말을 잘 하는 사람은, 남의 말을 가장 잘 들어 주는 사람이다.