aw: popup zentrieren

Beitrag lesen

Hallo,

hier mal das PopUp-Script meiner Seite:
PopUp={
 pop:function(path,width,height,scroll,menubar){
  var top = Math.round((screen.height - height) / 2);
  var left = Math.round((screen.width - width) / 2);
  win = window.open(path,"PopUp","width="+width+",height="+height+",top="+top+",left="+left+",scrollbars="+scroll+",menubar="+menubar);
  win.focus();
 }
}

Aufruf mit PopUp.pop(parameter...)

Mit freundlichen Grüßen,
Andreas Waidelich

--
signatures eat bandwidth