jQuery & JavaScript*
Popup창 띄우는 Function
회사원Z
2009. 1. 16. 10:47
function controlmyticon(storeno){
var w = "400";
var h = "400";
var winl = (screen.width - w)/2; ;
var wint = (screen.height - h)/2; ;
var myname = 'controlmyticon';
var mypage = '';
mypage = 'smsemoticon.asp?temp=temp&storeno='+storeno;
winprops = 'height='+h+',width='+w+',top='+wint+',scrollbars=yes,left='+winl
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
(screen.width - w)/2 : 창 위치를 중간으로