클릭시 팝업창 띄우기

2012. 4. 12. 13:58 Web/javascript


<script language="JavaScript">
<!--
function pop_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
//-->
</script>


-----------------------------------------------------------------------------------------
<a href="javascript:pop_open_window('win', '#', 0, 528, 520, 0, 0, 0, 0, 0)">

'Web > javascript' 카테고리의 다른 글

asp mobile session 연결하기  (0) 2012.05.08
페이지 링크  (0) 2012.04.12
팝업 스크립트  (0) 2012.03.29
버튼 클릭시 레이어 팝업 띄우기  (0) 2012.03.23
서브네비  (2) 2012.03.14
Copyright © HuckleberryM All Rights Reserved | JB All In One Designed by CMSFactory.NET